{"openapi":"3.1.0","info":{"title":"Gridatum Places API","version":"1.0.0","description":"Paid requests use `Authorization: Bearer <api_key>` and are charged from the workspace wallet after a successful result (1 USD = 1,000,000 credits). Every gateway response carries `X-Request-Id` and `X-Credits-Charged`. Rate limits apply per workspace."},"servers":[{"url":"https://api.gridatum.com"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A workspace API key (sk_…)."}},"schemas":{"Error":{"type":"object","properties":{"detail":{"type":"string"}},"required":["detail"]}}},"paths":{"/v1/places/search":{"get":{"operationId":"places_search","summary":"Places Search","description":"Find places with Commercial v13 fields, filters, sorting and cursor pagination.\n\nCredits: 11,500 credits per successful request + 345 per returned POI (0 results still pays the base).","tags":["Places"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"q","in":"query","required":false,"description":"Literal text matched against names and addresses; sorts by relevance when set.","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code. Required with `state` or `city`.","schema":{"type":"string"},"example":"SG"},{"name":"state","in":"query","required":false,"description":"Admin1 name, exact (see Geography lookup).","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"Admin2 name, exact.","schema":{"type":"string"}},{"name":"categories","in":"query","required":false,"description":"Comma-separated category IDs, Any/OR: a place matches when any of its `category_ids` is listed.","schema":{"type":"string"},"example":"cafe,bakery"},{"name":"primary_categories","in":"query","required":false,"description":"Comma-separated category IDs, strict: matches `primary_category_id` only.","schema":{"type":"string"}},{"name":"lat","in":"query","required":false,"description":"Latitude of the radius center; `lat`, `lng` and `radius_m` go together.","schema":{"type":"number","minimum":-90,"maximum":90}},{"name":"lng","in":"query","required":false,"description":"Longitude of the radius center.","schema":{"type":"number","minimum":-180,"maximum":180}},{"name":"radius_m","in":"query","required":false,"description":"Radius in meters (greater than 0).","schema":{"type":"number"}},{"name":"poi_validity","in":"query","required":false,"description":"Only places with this validity.","schema":{"type":"string","enum":["valid","uncertain","invalid"]}},{"name":"category_match","in":"query","required":false,"description":"Whether the place has a resolved category.","schema":{"type":"string","enum":["matched","unmatched"]}},{"name":"has_primary_category","in":"query","required":false,"description":"Whether `primary_category_id` is set.","schema":{"type":"boolean"}},{"name":"min_rating","in":"query","required":false,"description":"Minimum `review_rating`.","schema":{"type":"number","minimum":0,"maximum":5}},{"name":"max_rating","in":"query","required":false,"description":"Maximum `review_rating`; not below `min_rating`.","schema":{"type":"number","minimum":0,"maximum":5}},{"name":"min_review_count","in":"query","required":false,"description":"Minimum `review_count`.","schema":{"type":"integer","minimum":0}},{"name":"is_24_hours","in":"query","required":false,"description":"Open 24 hours.","schema":{"type":"boolean"}},{"name":"is_night_service","in":"query","required":false,"description":"Night service.","schema":{"type":"boolean"}},{"name":"has_open_hours","in":"query","required":false,"description":"Has opening hours.","schema":{"type":"boolean"}},{"name":"has_phone","in":"query","required":false,"description":"Has a phone number.","schema":{"type":"boolean"}},{"name":"has_website","in":"query","required":false,"description":"Has a website.","schema":{"type":"boolean"}},{"name":"has_social_media","in":"query","required":false,"description":"Has social-media links.","schema":{"type":"boolean"}},{"name":"has_parent_venue","in":"query","required":false,"description":"Located inside another venue.","schema":{"type":"boolean"}},{"name":"hotel_rating","in":"query","required":false,"description":"Hotel class.","schema":{"type":"integer","minimum":0,"maximum":5}},{"name":"sort","in":"query","required":false,"description":"Default `relevance` with `q`, otherwise `review_count`; `distance` needs `lat`, `lng`, `radius_m`.","schema":{"type":"string","enum":["relevance","distance","rating","review_count"]}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1–1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100},"example":"10"},{"name":"cursor","in":"query","required":false,"description":"Opaque `next_cursor` from the previous page, with the same other parameters. Every page is a separate request, billed on its own.","schema":{"type":"string"}},{"name":"fields","in":"query","required":false,"description":"Comma-separated Commercial v13 fields to return (`place_key` is always included). `user_reviews` only when listed.","schema":{"type":"string"},"example":"title,category,latitude,longitude"}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"items":[{"place_key":"sg-0f3a9c","title":"Kopi Corner","category":"Coffee shop","category_ids":["cafe","coffee_shop"],"city":"Central","state":"Central Singapore","latitude":1.2847,"longitude":103.8514,"review_count":812,"review_rating":4.4,"poi_validity":"valid","primary_category_id":"cafe"}],"next_cursor":"eyJ2IjoxLCJhZnRlciI6Wy4uLl19"}}}},"401":{"description":"Missing, invalid or revoked API key (`WWW-Authenticate: Bearer`). Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Insufficient credits: the wallet cannot cover the operation's base price before the call, or the actual price of the result at debit time (for example a large page). Nothing is charged; top up and retry.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid parameter or combination, or an invalid cursor. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream error or unexpected response. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Upstream timeout. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/places/enriched/search":{"get":{"operationId":"places_enriched_search","summary":"Places Enriched Search","description":"The same search, filters and cursor as Places Search, with the Web, Visitor and (opt-in) Polygon groups of each returned POI.\n\nCredits: The Places Search price. During the Places Enriched Beta the Web, Visitor and Polygon groups add no cost; each response still counts, in `X-Billable-Groups`, the returned POIs with a substantive value per group. Standard Places Core pricing applies.","tags":["Places"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"q","in":"query","required":false,"description":"Literal text matched against names and addresses; sorts by relevance when set.","schema":{"type":"string"}},{"name":"country","in":"query","required":true,"description":"ISO 3166-1 alpha-2 country code.","schema":{"type":"string"},"example":"SG"},{"name":"state","in":"query","required":false,"description":"Admin1 name, exact (see Geography lookup).","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"Admin2 name, exact.","schema":{"type":"string"}},{"name":"categories","in":"query","required":false,"description":"Comma-separated category IDs, Any/OR: a place matches when any of its `category_ids` is listed.","schema":{"type":"string"},"example":"cafe,bakery"},{"name":"primary_categories","in":"query","required":false,"description":"Comma-separated category IDs, strict: matches `primary_category_id` only.","schema":{"type":"string"}},{"name":"lat","in":"query","required":false,"description":"Latitude of the radius center; `lat`, `lng` and `radius_m` go together.","schema":{"type":"number","minimum":-90,"maximum":90}},{"name":"lng","in":"query","required":false,"description":"Longitude of the radius center.","schema":{"type":"number","minimum":-180,"maximum":180}},{"name":"radius_m","in":"query","required":false,"description":"Radius in meters (greater than 0).","schema":{"type":"number"}},{"name":"poi_validity","in":"query","required":false,"description":"Only places with this validity.","schema":{"type":"string","enum":["valid","uncertain","invalid"]}},{"name":"category_match","in":"query","required":false,"description":"Whether the place has a resolved category.","schema":{"type":"string","enum":["matched","unmatched"]}},{"name":"has_primary_category","in":"query","required":false,"description":"Whether `primary_category_id` is set.","schema":{"type":"boolean"}},{"name":"min_rating","in":"query","required":false,"description":"Minimum `review_rating`.","schema":{"type":"number","minimum":0,"maximum":5}},{"name":"max_rating","in":"query","required":false,"description":"Maximum `review_rating`; not below `min_rating`.","schema":{"type":"number","minimum":0,"maximum":5}},{"name":"min_review_count","in":"query","required":false,"description":"Minimum `review_count`.","schema":{"type":"integer","minimum":0}},{"name":"is_24_hours","in":"query","required":false,"description":"Open 24 hours.","schema":{"type":"boolean"}},{"name":"is_night_service","in":"query","required":false,"description":"Night service.","schema":{"type":"boolean"}},{"name":"has_open_hours","in":"query","required":false,"description":"Has opening hours.","schema":{"type":"boolean"}},{"name":"has_phone","in":"query","required":false,"description":"Has a phone number.","schema":{"type":"boolean"}},{"name":"has_website","in":"query","required":false,"description":"Has a website.","schema":{"type":"boolean"}},{"name":"has_social_media","in":"query","required":false,"description":"Has social-media links.","schema":{"type":"boolean"}},{"name":"has_parent_venue","in":"query","required":false,"description":"Located inside another venue.","schema":{"type":"boolean"}},{"name":"hotel_rating","in":"query","required":false,"description":"Hotel class.","schema":{"type":"integer","minimum":0,"maximum":5}},{"name":"sort","in":"query","required":false,"description":"Default `relevance` with `q`, otherwise `review_count`; `distance` needs `lat`, `lng`, `radius_m`.","schema":{"type":"string","enum":["relevance","distance","rating","review_count"]}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1–1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100},"example":"10"},{"name":"cursor","in":"query","required":false,"description":"Opaque `next_cursor` from the previous page, with the same other parameters. Every page is a separate request, billed on its own.","schema":{"type":"string"}},{"name":"fields","in":"query","required":false,"description":"Comma-separated Commercial v13 fields and/or the groups `web`, `visitor`, `polygon`. Unset: every Core field plus Web and Visitor. Set: exactly what it lists; a group it does not list is neither returned nor billed. `user_reviews` is not available here.","schema":{"type":"string"},"example":"title,category,latitude,longitude"},{"name":"include_polygon","in":"query","required":false,"description":"Also return the matched building polygon (GeoJSON), unless `fields` leaves `polygon` out.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"example":{"items":[{"place_key":"sg-0f3a9c","title":"Kopi Corner","category":"Coffee shop","category_ids":["cafe","coffee_shop"],"city":"Central","state":"Central Singapore","latitude":1.2847,"longitude":103.8514,"review_count":812,"review_rating":4.4,"poi_validity":"valid","primary_category_id":"cafe","web":{"estimated_site_area_m2":420.5,"site_area_confidence":0.7,"site_area_source":"web","estimated_building_area_m2":null,"building_area_confidence":null,"building_area_source":null,"estimated_building_footprint_m2":null,"building_footprint_confidence":null,"building_footprint_source":null,"other_enrichment":{"seat_capacity":40},"other_enrichment_confidence":{"seat_capacity":0.6}},"visitor":{"visit_estimates":{"Monday":[{"hour":9,"value":35}]},"visit_estimate_confidence":0.5},"polygon":null}],"next_cursor":null,"source":{"country_code":"SG","dataset_version":"2026-11-01","enrichment_revision":"0002"}}}}},"401":{"description":"Missing, invalid or revoked API key (`WWW-Authenticate: Bearer`). Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Insufficient credits: the wallet cannot cover the operation's base price before the call, or the actual price of the result at debit time (for example a large page). Nothing is charged; top up and retry.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Enriched data is not ready for this country. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid parameter or combination, or an invalid cursor. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream error or unexpected response. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Upstream timeout. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/places/{place_key}":{"get":{"operationId":"places_details","summary":"Place Details","description":"One place by `country` and `place_key`; Core by default, enrichment and polygon on request.\n\nCredits: 455 credits when found; groups returned with `include` add no cost during the Places Enriched Beta. Not found (404): 0.","tags":["Places"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"place_key","in":"path","required":true,"description":"The place key from a search result.","schema":{"type":"string"},"example":"sg-0f3a9c"},{"name":"country","in":"query","required":true,"description":"ISO 3166-1 alpha-2 country code.","schema":{"type":"string"},"example":"SG"},{"name":"fields","in":"query","required":false,"description":"Comma-separated Commercial v13 fields; with `include`, also the groups `web`, `visitor`, `polygon`.","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"`enrichment` (Web and Visitor) and/or `polygon`. Unset: Core only, no enrichment is read.","schema":{"type":"string"},"example":"enrichment,polygon"}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"example":{"place_key":"sg-0f3a9c","title":"Kopi Corner","category":"Coffee shop","category_ids":["cafe","coffee_shop"],"city":"Central","state":"Central Singapore","latitude":1.2847,"longitude":103.8514,"review_count":812,"review_rating":4.4,"poi_validity":"valid","primary_category_id":"cafe"}}}},"401":{"description":"Missing, invalid or revoked API key (`WWW-Authenticate: Bearer`). Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Insufficient credits: the wallet cannot cover the operation's base price before the call, or the actual price of the result at debit time (for example a large page). Nothing is charged; top up and retry.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Country dataset or place not found. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Enriched data is not ready for this country. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid parameter or combination, or an invalid cursor. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream error or unexpected response. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Upstream timeout. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}},"X-Billable-Groups":{"description":"Enriched Search and Details: returned POIs with a substantive value per group, e.g. {\"web\":1,\"visitor\":1,\"polygon\":0}. No group adds cost during the Places Enriched Beta.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/count/area":{"get":{"operationId":"count_area","summary":"Count: Area","description":"Exact published count for one area: all places, or the places in one category (Any membership).\n\nCredits: 1,000 credits per successful request.","tags":["Count"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"country","in":"query","required":true,"description":"ISO 3166-1 alpha-2 country code.","schema":{"type":"string"},"example":"SG"},{"name":"state","in":"query","required":false,"description":"Admin1 name (Admin1 area).","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"Admin2 name; requires `state` (Admin2 area).","schema":{"type":"string"}},{"name":"h3_cell","in":"query","required":false,"description":"One H3 resolution 8 cell (15 hex characters); not combined with `state`/`city`.","schema":{"type":"string"}},{"name":"poi_validity","in":"query","required":false,"description":"Validity bucket; `unknown` is places without an assessment.","schema":{"type":"string","enum":["all","valid","uncertain","invalid","unknown"],"default":"all"}},{"name":"category_id","in":"query","required":false,"description":"Exactly one category ID; counts places whose `category_ids` contain it.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"country":"SG","dataset_version":"2026-11-01","scope":{"level":"admin1","country":"SG","state":"Central Singapore"},"filters":{"poi_validity":"all","category_id":"cafe"},"count":1840,"count_type":"any"}}}},"401":{"description":"Missing, invalid or revoked API key (`WWW-Authenticate: Bearer`). Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Insufficient credits: the wallet cannot cover the operation's base price before the call, or the actual price of the result at debit time (for example a large page). Nothing is charged; top up and retry.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Country dataset or place not found. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid parameter or combination, or an invalid cursor. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream error or unexpected response. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Upstream timeout. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/count/categories":{"get":{"operationId":"count_categories","summary":"Count: Category breakdown","description":"Top primary categories of one area (Primary Count), with Uncategorized and Other.\n\nCredits: 1,000 credits per successful request.","tags":["Count"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"country","in":"query","required":true,"description":"ISO 3166-1 alpha-2 country code.","schema":{"type":"string"},"example":"SG"},{"name":"state","in":"query","required":false,"description":"Admin1 name (Admin1 area).","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"Admin2 name; requires `state` (Admin2 area).","schema":{"type":"string"}},{"name":"h3_cell","in":"query","required":false,"description":"One H3 resolution 8 cell (15 hex characters); not combined with `state`/`city`.","schema":{"type":"string"}},{"name":"poi_validity","in":"query","required":false,"description":"Validity bucket; `unknown` is places without an assessment.","schema":{"type":"string","enum":["all","valid","uncertain","invalid","unknown"],"default":"all"}},{"name":"limit","in":"query","required":false,"description":"Top N categories, 1–100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":10}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"country":"SG","dataset_version":"2026-11-01","scope":{"level":"admin0","country":"SG"},"filters":{"poi_validity":"valid","limit":2},"count_type":"primary","total":98000,"categories":[{"category_id":"restaurant","label":"Restaurant","count":9100},{"category_id":"cafe","label":"Cafe","count":4200}],"uncategorized":3100,"other":81600}}}},"401":{"description":"Missing, invalid or revoked API key (`WWW-Authenticate: Bearer`). Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Insufficient credits: the wallet cannot cover the operation's base price before the call, or the actual price of the result at debit time (for example a large page). Nothing is charged; top up and retry.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Country dataset or place not found. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid parameter or combination, or an invalid cursor. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream error or unexpected response. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Upstream timeout. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/count/areas":{"get":{"operationId":"count_areas","summary":"Count: Area breakdown","description":"Counts of the child areas of a country (Admin1, or H3 R8 cells) or of one Admin1 (Admin2).\n\nCredits: 1,000 credits per successful request; every page is a request.","tags":["Count"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"country","in":"query","required":true,"description":"ISO 3166-1 alpha-2 country code.","schema":{"type":"string"},"example":"SG"},{"name":"mode","in":"query","required":false,"description":"`admin`: Admin1 children (Admin2 with `state`); `h3`: every H3 R8 cell of the country.","schema":{"type":"string","enum":["admin","h3"],"default":"admin"}},{"name":"state","in":"query","required":false,"description":"Admin1 parent for Admin2 children; not with `mode=h3`.","schema":{"type":"string"}},{"name":"category_id","in":"query","required":false,"description":"One category ID (Any membership); unset counts all places.","schema":{"type":"string"}},{"name":"poi_validity","in":"query","required":false,"description":"Validity bucket.","schema":{"type":"string","enum":["all","valid","uncertain","invalid","unknown"],"default":"all"}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1–1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"Opaque `next_cursor` from the previous page, with the same other parameters. Every page is a separate request, billed on its own.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"country":"SG","dataset_version":"2026-11-01","scope":{"mode":"admin","country":"SG"},"filters":{"poi_validity":"all","category_id":null},"count_type":"total","items":[{"state":"Central Singapore","count":52000}],"next_cursor":null}}}},"401":{"description":"Missing, invalid or revoked API key (`WWW-Authenticate: Bearer`). Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Insufficient credits: the wallet cannot cover the operation's base price before the call, or the actual price of the result at debit time (for example a large page). Nothing is charged; top up and retry.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Country dataset or place not found. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid parameter or combination, or an invalid cursor. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream error or unexpected response. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Upstream timeout. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/categories":{"get":{"operationId":"categories","summary":"Category lookup","description":"Category IDs present in the published data, by text match; use them in `categories`.\n\nCredits: Free (fair use). Needs a Bearer API key; counts toward the workspace rate limit.","tags":["Discovery"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"q","in":"query","required":false,"description":"Text to match in the category ID (up to 120 characters).","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Items, 1–100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"country","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code.","schema":{"type":"string"},"example":"SG"},{"name":"after","in":"query","required":false,"description":"Next page: the last category ID of the previous page (IDs are in ascending order).","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"items":[{"id":"cafe","label":"Cafe"},{"id":"coffee_shop","label":"Coffee shop"}]}}}},"401":{"description":"Missing, invalid or revoked API key (`WWW-Authenticate: Bearer`). Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid parameter or combination, or an invalid cursor. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/geographies":{"get":{"operationId":"geographies","summary":"Geography lookup","description":"Admin1/Admin2 names and H3 cells of the published data, exact names only; ambiguous names return every candidate.\n\nCredits: Free (fair use). Needs a Bearer API key; counts toward the workspace rate limit.","tags":["Discovery"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"level","in":"query","required":true,"description":"Area level.","schema":{"type":"string","enum":["admin0","admin1","admin2","h3"]}},{"name":"country","in":"query","required":false,"description":"ISO2 country; required below `admin0`.","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Admin1 parent; only with `level=admin2`.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Name filter (H3: hexadecimal prefix).","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Items, 1–1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"Opaque `next_cursor` from the previous page, with the same other parameters. Every page is a separate request, billed on its own.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"country":"SG","dataset_version":"2026-11-01","items":[{"level":"admin1","country":"SG","state":"Central Singapore"}],"next_cursor":null}}}},"401":{"description":"Missing, invalid or revoked API key (`WWW-Authenticate: Bearer`). Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Country dataset or place not found. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid parameter or combination, or an invalid cursor. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","headers":{"X-Request-Id":{"description":"Server-generated ID of this request; quote it to support.","schema":{"type":"string"}},"X-Credits-Charged":{"description":"Credits actually debited for this request (`0` when nothing was charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/public/countries":{"get":{"operationId":"public_countries","summary":"Available countries","description":"Countries available now, with dataset version, total and validity counts.\n\nCredits: Free, no API key (limited per client address).","tags":["Discovery"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"items":[{"country_code":"SG","dataset_version":"2026-11-01","total_pois":98000,"validity":{"valid":80000,"uncertain":12000},"full_formats":["csv.gz","jsonl.gz"]}]}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/public/countries/{country}":{"get":{"operationId":"public_country","summary":"Country metadata","description":"One available country: version, totals, top categories and field availability.\n\nCredits: Free, no API key (limited per client address).","tags":["Discovery"],"security":[],"parameters":[{"name":"country","in":"path","required":true,"description":"ISO2 country code.","schema":{"type":"string"},"example":"SG"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"country_code":"SG","dataset_version":"2026-11-01"}}}},"404":{"description":"Country dataset or place not found. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/public/coverage":{"get":{"operationId":"public_coverage","summary":"Coverage","description":"Coverage of the available countries.\n\nCredits: Free, no API key (limited per client address).","tags":["Discovery"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"items":[]}}}},"429":{"description":"Workspace rate limit exceeded; retry after `Retry-After` seconds. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}