Skip to content
//BPS Indonesia Statistics Scraper example\\

Mean years of schooling by regency (code 16)

Rata-rata lama sekolah 2023-2024 for South Sumatra and all its regencies and cities, picked by the BPS code prefix 16.

Updated November 7, 2026

What this example returns

This example returns up to 25 values.

The dataset’s “Values” view shows 17 columns: Indicator, Region, Region code, Breakdown, Period, Year, Value, Unit, Region list, Subject, BPS site, Last updated, Table page, Table id, Variable id, Decimals, and Table notes. See every output field.

What each setting does

The input this example runs BPS Indonesia Statistics Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Tables tableUrls

415

BPS statistics table pages to read, from www.bps.go.id or any province / regency BPS site (e.g. https://sumsel.bps.go.id/id/statistics-table/2/OTYyIzI=/...html). Dynamic tables only (addresses with /statistics-table/2/). A bare number such as 192 means national table 192 on www.bps.go.id.

Max values maxItems

25

Most values (rows) to save in this run. Empty or 0 = no limit.

Regions regions

16

Keep only these regions: names as the table writes them ("Sumatera Selatan", "Kota Palembang", "Kab. Bogor"; any case, Indonesian or English) or row codes. On www.bps.go.id tables the codes are BPS region codes (1600), and a 2-digit code keeps the province and its regencies / cities (16 = 1600 and 1601-1674);…

From year fromYear

2023

First year to read. Empty = the table's first year.

To year toYear

2024

Last year to read. Empty = the newest year.

.json
{
  "tableUrls": [
    "415"
  ],
  "regions": [
    "16"
  ],
  "fromYear": 2023,
  "toYear": 2024,
  "maxItems": 25
}

What it costs

About $0.043 for 25 values

An estimate: 25 × $0.0017 per value (One statistics value (indicator, region, breakdown, period and year) saved to the dataset). A run is charged for the events it reports, so one that finds fewer values costs less. Platform usage is included in the event price.

Full pricing

When to use this example

From the BPS Indonesia Statistics Scraper readme:

How many values can I get?

As many as the tables hold: every year, region, breakdown and period, unless you set filters or Max values.

Known limit

Some tables list industries, expenditure groups or other categories instead of regions (e.g. GRDP growth by industry): leave Regions empty for them.

Other ways to run BPS Indonesia Statistics Scraper

All examples of BPS Indonesia Statistics Scraper

About BPS Indonesia Statistics Scraper

Download BPS Indonesia (Badan Pusat Statistik) statistics as clean rows: poverty, unemployment, schooling, inflation, GRDP growth and any other dynamic table from bps.go.id and the province sites, by region and year. No login needed.

Price:
$1.70 / 1,000 results
Developer:
Querystone

BPS Indonesia Statistics Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.