{"info":{"name":"Gridatum Places API","description":"Set `api_key` to one of your workspace API keys. Paid requests are charged from that workspace's wallet; read `X-Credits-Charged` on each response.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"base_url","value":"https://api.gridatum.com"},{"key":"api_key","value":""}],"item":[{"name":"Places","item":[{"name":"Places Search","request":{"method":"GET","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).","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/places/search?country=SG&categories=cafe,bakery&limit=10&fields=title,category,latitude,longitude","host":["{{base_url}}"],"path":["v1","places","search"],"query":[{"key":"q","value":"","description":"Literal text matched against names and addresses; sorts by relevance when set.","disabled":true},{"key":"country","value":"SG","description":"ISO 3166-1 alpha-2 country code. Required with `state` or `city`.","disabled":false},{"key":"state","value":"","description":"Admin1 name, exact (see Geography lookup).","disabled":true},{"key":"city","value":"","description":"Admin2 name, exact.","disabled":true},{"key":"categories","value":"cafe,bakery","description":"Comma-separated category IDs, Any/OR: a place matches when any of its `category_ids` is listed.","disabled":false},{"key":"primary_categories","value":"","description":"Comma-separated category IDs, strict: matches `primary_category_id` only.","disabled":true},{"key":"lat","value":"","description":"Latitude of the radius center; `lat`, `lng` and `radius_m` go together.","disabled":true},{"key":"lng","value":"","description":"Longitude of the radius center.","disabled":true},{"key":"radius_m","value":"","description":"Radius in meters (greater than 0).","disabled":true},{"key":"poi_validity","value":"","description":"Only places with this validity.","disabled":true},{"key":"category_match","value":"","description":"Whether the place has a resolved category.","disabled":true},{"key":"has_primary_category","value":"","description":"Whether `primary_category_id` is set.","disabled":true},{"key":"min_rating","value":"","description":"Minimum `review_rating`.","disabled":true},{"key":"max_rating","value":"","description":"Maximum `review_rating`; not below `min_rating`.","disabled":true},{"key":"min_review_count","value":"","description":"Minimum `review_count`.","disabled":true},{"key":"is_24_hours","value":"","description":"Open 24 hours.","disabled":true},{"key":"is_night_service","value":"","description":"Night service.","disabled":true},{"key":"has_open_hours","value":"","description":"Has opening hours.","disabled":true},{"key":"has_phone","value":"","description":"Has a phone number.","disabled":true},{"key":"has_website","value":"","description":"Has a website.","disabled":true},{"key":"has_social_media","value":"","description":"Has social-media links.","disabled":true},{"key":"has_parent_venue","value":"","description":"Located inside another venue.","disabled":true},{"key":"hotel_rating","value":"","description":"Hotel class.","disabled":true},{"key":"sort","value":"","description":"Default `relevance` with `q`, otherwise `review_count`; `distance` needs `lat`, `lng`, `radius_m`.","disabled":true},{"key":"limit","value":"10","description":"Items per page, 1–1000.","disabled":false},{"key":"cursor","value":"","description":"Opaque `next_cursor` from the previous page, with the same other parameters. Every page is a separate request, billed on its own.","disabled":true},{"key":"fields","value":"title,category,latitude,longitude","description":"Comma-separated Commercial v13 fields to return (`place_key` is always included). `user_reviews` only when listed.","disabled":false}]}}},{"name":"Places Enriched Search","request":{"method":"GET","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.","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/places/enriched/search?country=SG&categories=cafe,bakery&limit=10&fields=title,category,latitude,longitude","host":["{{base_url}}"],"path":["v1","places","enriched","search"],"query":[{"key":"q","value":"","description":"Literal text matched against names and addresses; sorts by relevance when set.","disabled":true},{"key":"country","value":"SG","description":"ISO 3166-1 alpha-2 country code.","disabled":false},{"key":"state","value":"","description":"Admin1 name, exact (see Geography lookup).","disabled":true},{"key":"city","value":"","description":"Admin2 name, exact.","disabled":true},{"key":"categories","value":"cafe,bakery","description":"Comma-separated category IDs, Any/OR: a place matches when any of its `category_ids` is listed.","disabled":false},{"key":"primary_categories","value":"","description":"Comma-separated category IDs, strict: matches `primary_category_id` only.","disabled":true},{"key":"lat","value":"","description":"Latitude of the radius center; `lat`, `lng` and `radius_m` go together.","disabled":true},{"key":"lng","value":"","description":"Longitude of the radius center.","disabled":true},{"key":"radius_m","value":"","description":"Radius in meters (greater than 0).","disabled":true},{"key":"poi_validity","value":"","description":"Only places with this validity.","disabled":true},{"key":"category_match","value":"","description":"Whether the place has a resolved category.","disabled":true},{"key":"has_primary_category","value":"","description":"Whether `primary_category_id` is set.","disabled":true},{"key":"min_rating","value":"","description":"Minimum `review_rating`.","disabled":true},{"key":"max_rating","value":"","description":"Maximum `review_rating`; not below `min_rating`.","disabled":true},{"key":"min_review_count","value":"","description":"Minimum `review_count`.","disabled":true},{"key":"is_24_hours","value":"","description":"Open 24 hours.","disabled":true},{"key":"is_night_service","value":"","description":"Night service.","disabled":true},{"key":"has_open_hours","value":"","description":"Has opening hours.","disabled":true},{"key":"has_phone","value":"","description":"Has a phone number.","disabled":true},{"key":"has_website","value":"","description":"Has a website.","disabled":true},{"key":"has_social_media","value":"","description":"Has social-media links.","disabled":true},{"key":"has_parent_venue","value":"","description":"Located inside another venue.","disabled":true},{"key":"hotel_rating","value":"","description":"Hotel class.","disabled":true},{"key":"sort","value":"","description":"Default `relevance` with `q`, otherwise `review_count`; `distance` needs `lat`, `lng`, `radius_m`.","disabled":true},{"key":"limit","value":"10","description":"Items per page, 1–1000.","disabled":false},{"key":"cursor","value":"","description":"Opaque `next_cursor` from the previous page, with the same other parameters. Every page is a separate request, billed on its own.","disabled":true},{"key":"fields","value":"title,category,latitude,longitude","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.","disabled":false},{"key":"include_polygon","value":"false","description":"Also return the matched building polygon (GeoJSON), unless `fields` leaves `polygon` out.","disabled":true}]}}},{"name":"Place Details","request":{"method":"GET","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.","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/places/:place_key?country=SG&include=enrichment,polygon","host":["{{base_url}}"],"path":["v1","places",":place_key"],"query":[{"key":"country","value":"SG","description":"ISO 3166-1 alpha-2 country code.","disabled":false},{"key":"fields","value":"","description":"Comma-separated Commercial v13 fields; with `include`, also the groups `web`, `visitor`, `polygon`.","disabled":true},{"key":"include","value":"enrichment,polygon","description":"`enrichment` (Web and Visitor) and/or `polygon`. Unset: Core only, no enrichment is read.","disabled":false}],"variable":[{"key":"place_key","value":"sg-0f3a9c","description":"The place key from a search result."}]}}}]},{"name":"Count","item":[{"name":"Count: Area","request":{"method":"GET","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.","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/count/area?country=SG","host":["{{base_url}}"],"path":["v1","count","area"],"query":[{"key":"country","value":"SG","description":"ISO 3166-1 alpha-2 country code.","disabled":false},{"key":"state","value":"","description":"Admin1 name (Admin1 area).","disabled":true},{"key":"city","value":"","description":"Admin2 name; requires `state` (Admin2 area).","disabled":true},{"key":"h3_cell","value":"","description":"One H3 resolution 8 cell (15 hex characters); not combined with `state`/`city`.","disabled":true},{"key":"poi_validity","value":"all","description":"Validity bucket; `unknown` is places without an assessment.","disabled":true},{"key":"category_id","value":"","description":"Exactly one category ID; counts places whose `category_ids` contain it.","disabled":true}]}}},{"name":"Count: Category breakdown","request":{"method":"GET","description":"Top primary categories of one area (Primary Count), with Uncategorized and Other.\n\nCredits: 1,000 credits per successful request.","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/count/categories?country=SG","host":["{{base_url}}"],"path":["v1","count","categories"],"query":[{"key":"country","value":"SG","description":"ISO 3166-1 alpha-2 country code.","disabled":false},{"key":"state","value":"","description":"Admin1 name (Admin1 area).","disabled":true},{"key":"city","value":"","description":"Admin2 name; requires `state` (Admin2 area).","disabled":true},{"key":"h3_cell","value":"","description":"One H3 resolution 8 cell (15 hex characters); not combined with `state`/`city`.","disabled":true},{"key":"poi_validity","value":"all","description":"Validity bucket; `unknown` is places without an assessment.","disabled":true},{"key":"limit","value":"10","description":"Top N categories, 1–100.","disabled":true}]}}},{"name":"Count: Area breakdown","request":{"method":"GET","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.","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/count/areas?country=SG","host":["{{base_url}}"],"path":["v1","count","areas"],"query":[{"key":"country","value":"SG","description":"ISO 3166-1 alpha-2 country code.","disabled":false},{"key":"mode","value":"admin","description":"`admin`: Admin1 children (Admin2 with `state`); `h3`: every H3 R8 cell of the country.","disabled":true},{"key":"state","value":"","description":"Admin1 parent for Admin2 children; not with `mode=h3`.","disabled":true},{"key":"category_id","value":"","description":"One category ID (Any membership); unset counts all places.","disabled":true},{"key":"poi_validity","value":"all","description":"Validity bucket.","disabled":true},{"key":"limit","value":"100","description":"Rows per page, 1–1000.","disabled":true},{"key":"cursor","value":"","description":"Opaque `next_cursor` from the previous page, with the same other parameters. Every page is a separate request, billed on its own.","disabled":true}]}}}]},{"name":"Discovery","item":[{"name":"Category lookup","request":{"method":"GET","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.","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/categories?country=SG","host":["{{base_url}}"],"path":["v1","categories"],"query":[{"key":"q","value":"","description":"Text to match in the category ID (up to 120 characters).","disabled":true},{"key":"limit","value":"50","description":"Items, 1–100.","disabled":true},{"key":"country","value":"SG","description":"ISO 3166-1 alpha-2 country code.","disabled":false},{"key":"after","value":"","description":"Next page: the last category ID of the previous page (IDs are in ascending order).","disabled":true}]}}},{"name":"Geography lookup","request":{"method":"GET","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.","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/geographies?level=","host":["{{base_url}}"],"path":["v1","geographies"],"query":[{"key":"level","value":"","description":"Area level.","disabled":false},{"key":"country","value":"","description":"ISO2 country; required below `admin0`.","disabled":true},{"key":"state","value":"","description":"Admin1 parent; only with `level=admin2`.","disabled":true},{"key":"q","value":"","description":"Name filter (H3: hexadecimal prefix).","disabled":true},{"key":"limit","value":"100","description":"Items, 1–1000.","disabled":true},{"key":"cursor","value":"","description":"Opaque `next_cursor` from the previous page, with the same other parameters. Every page is a separate request, billed on its own.","disabled":true}]}}},{"name":"Available countries","request":{"method":"GET","description":"Countries available now, with dataset version, total and validity counts.\n\nCredits: Free, no API key (limited per client address).","auth":{"type":"noauth"},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/public/countries","host":["{{base_url}}"],"path":["v1","public","countries"],"query":[]}}},{"name":"Country metadata","request":{"method":"GET","description":"One available country: version, totals, top categories and field availability.\n\nCredits: Free, no API key (limited per client address).","auth":{"type":"noauth"},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/public/countries/:country","host":["{{base_url}}"],"path":["v1","public","countries",":country"],"query":[],"variable":[{"key":"country","value":"SG","description":"ISO2 country code."}]}}},{"name":"Coverage","request":{"method":"GET","description":"Coverage of the available countries.\n\nCredits: Free, no API key (limited per client address).","auth":{"type":"noauth"},"header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"{{base_url}}/v1/public/coverage","host":["{{base_url}}"],"path":["v1","public","coverage"],"query":[]}}}]}]}