Public API: active POIs within a radius, nearest first (metered)
const url = 'https://api.tareky.com/v1/poi/nearby?lng=1&lat=1&radius=2000&take=100&sortBy=distance';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tareky.com/v1/poi/nearby?lng=1&lat=1&radius=2000&take=100&sortBy=distance' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”JSON, specific to categoryId (the same payload as /poi/in-bounds), e.g. {“accessType”:“PUBLIC”,“minPowerKw”:22} for EV charging. 400 invalid_request when malformed; ignored for a category with no filters.
Header Parameters
Section titled “Header Parameters”Legacy key id (until its sunset)
Responses
Section titled “Responses”object
Matches inside the radius (after filters), before take
object
object
object
object
Mean review rating, 0 when there are no reviews
Weekly schedule: keys mon..sun, each a list of { open, close } in HH:MM, Asia/Baghdad time (UTC+3, no daylight saving). A missing day is unknown, [] is closed that day, null means no hours are on record (the usual case). Compute “open now” on the client.
object
object
object
object
object
object
object
object
Examplegenerated
{ "count": 1, "data": [ { "id": "example", "lng": 1, "lat": 1, "categoryId": "example", "name": { "ar": "example", "en": "example", "ckb": "example" }, "category": { "id": "example", "name": { "ar": "example", "en": "example", "ckb": "example" } }, "avgRating": 1, "reviewCount": 1, "distanceMeters": 1, "openingHours": { "mon": [ { "open": "example", "close": "example" } ], "tue": [ { "open": "example", "close": "example" } ], "wed": [ { "open": "example", "close": "example" } ], "thu": [ { "open": "example", "close": "example" } ], "fri": [ { "open": "example", "close": "example" } ], "sat": [ { "open": "example", "close": "example" } ], "sun": [ { "open": "example", "close": "example" } ] } } ]}Rate limit or monthly quota exceeded; see Retry-After
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}default
Section titled “default”Any other error, in the /v1 error envelope
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}