Public Place Search
GET /v1/places/search · X-API-Key
GET
/v1/places/searchPublic Place Search
Public place and address search (Arabic and English).
- Credential
X-API-Key- Plane
https://api.bardiyamap.com- Billing
- 1 credit per request
- Operation id
searchPlaces
Parameters
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | Free-text query. Arabic and English are both accepted and return the same ranking in either script.1 to 120 chars |
bbox | string | null | no | Bounding box written minLon,minLat,maxLon,maxLat (west, south, east, north). |
category | string | null | no | Restrict to one category name. Category names are stable identifiers, not localized labels.<= 100 chars |
language | string | null | no | Preferred response language for names and categories: ar or en.matches (ar|en) |
latitude | number (double) | null | no | Latitude in decimal degrees, north positive. Send it together with longitude.-90 to 90 / double |
limit | integer | no | Maximum number of results.1 to 50 / default 10 |
longitude | number (double) | null | no | Longitude in decimal degrees, east positive. This is the second element of a GeoJSON pair, not the first.-180 to 180 / double |
radius_m | integer | no | Search radius in metres around the bias point. Ignored when no bias point is supplied.100 to 200000 / default 50000 |
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | null | no | Opaque key that makes a retried POST safe. Reuse the same value for every retry of the same intent; a new value is a new chargeable operation. |
Request example
shell
curl "https://api.bardiyamap.com/v1/places/search?q=coffee&bbox=31.1%2C30.0%2C31.4%2C30.15&category=cafe&language=ar&latitude=30.0444&limit=10&longitude=31.2357&radius_m=50000" \
-H "X-API-Key: $BARDIYA_API_KEY"Response 200 · PlaceSearchResponse
| Field | Type | Required | Notes |
|---|---|---|---|
count | integer | yes | |
language | string | null | no | |
query | string | yes | |
results | PlaceSummary[] | yes |
Errors
| Status | Meaning |
|---|---|
400 | Request is malformed or a parameter is out of range |
401 | Missing or invalid credential |
403 | Credential is valid but lacks the required scope, or the request origin is not allowed |
404 | Resource not found or not visible to this credential's organization |
422 | Validation Error |
429 | Rate limit or quota exceeded; honour `Retry-After` |
503 | The upstream provider is temporarily unavailable |
Error bodies use the shared envelope documented in Errors: { "error": { "code", "message", "details", "request_id" } }.
GET /v1/places/search is part of the Places group. Values on this page are generated from contract version 1.1.0.
