Skip to content
//OpenStreetMap Data Scraper example\\

Kecamatan and villages of Palu

The kecamatan boundaries of Palu with their outlines, and every named village, suburb and neighbourhood with its kecamatan.

Updated November 24, 2026

What this example returns

The dataset’s “Elements” view shows 14 columns: Type, Name, Building type, Road class, Place type, Admin level, Address, Lat, Lon, Admin area, Filled, Checked, Empty attributes, and OSM link. See every output field.

What each setting does

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

📍 Area (place name) area

Palu, Sulawesi Tengah

City, district or region to read, as OpenStreetMap's place search knows it, e.g. 'Palu, Sulawesi Tengah' or 'Kreuzberg, Berlin'. The Actor uses the place's administrative boundary. Leave empty when you give an OSM relation id or a bounding box.

🧱 Feature types featureTypes

adminBoundaries, places

What to read. Leave empty for all four. Places are the settlements OpenStreetMap marks with a place tag; in many regions villages and neighbourhoods exist only as such points, without a boundary.

Admin levels adminLevels

6

Only boundaries of these OSM admin levels (in Indonesia: 6 = kecamatan, 7 = desa/kelurahan, 9 = RW, 10 = RT). Leave empty for every level below the area's own (boundaries without an admin_level are kept too).

Tag elements with their admin area (level) adminAreaLevel

6

Admin level whose area name is added to every building, road and place (adminArea: the area that holds the element's centre), e.g. 6 for kecamatan in Indonesia or 10 for a German Ortsteil. Works where OpenStreetMap has boundaries of that level. Leave empty to skip.

.json
{
  "area": "Palu, Sulawesi Tengah",
  "featureTypes": [
    "adminBoundaries",
    "places"
  ],
  "adminLevels": [
    "6"
  ],
  "adminAreaLevel": 6
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • OSM elementfrom $0.000204One saved OpenStreetMap element (building, road, admin boundary or place) with its tags and attribute check.

Full pricing

When to use this example

From the OpenStreetMap Data Scraper readme:

What does it mean when a field is empty?

OpenStreetMap has no value for it. That is exactly what emptyAttributes records, so empty fields are part of the result, not an error.

Known limit

adminArea works only where OpenStreetMap has boundaries of the chosen level; an element gets the area that holds its centre point (a long road that crosses several areas gets the one at its centre).

Other ways to run OpenStreetMap Data Scraper

  • Buildings in central Palu50 buildings of central Palu (Sulawesi Tengah) with building type, address, coordinates, all OSM tags and which attributes are empty.
  • Main roads of Palu with outlinesTrunk, primary and secondary roads of central Palu with their line geometry, surface, lanes and kecamatan.

All examples of OpenStreetMap Data Scraper

About OpenStreetMap Data Scraper

Get OpenStreetMap buildings, roads, admin boundaries and places for any city or area: name, type, address, coordinates and every OSM tag, plus which attributes are empty. No login.

Price:
From $0.204 / 1,000 results
Developer:
Corner Ledger
Categories:
Travel, Developer tools

OpenStreetMap Data 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.