Documentation

Cities Catalog

Access the full catalog of cities and locations known to the system. This endpoint returns the raw location records (without alert statistics) and is ideal for building dropdowns, lookup tables, and map layers.

GEThttps://sirenapi.orielhaim.com/data/cities

Returns a paginated list of cities/locations from the internal catalog.

Query Parameters

ParameterTypeDescriptionDefaultRequired
searchstringSearch by city name (partial match, 1-100 chars)-no
zonestringFilter by zone/region name (exact match)-no
limitintegerNumber of cities to return (1-500)100no
offsetintegerNumber of results to skip for pagination0no
includestringComma-separated list of optional fields: translations, coords, countdown, polygons- (none)no

The include Parameter

By default the response only contains id, name, andzone. Additional fields must be explicitly requested via theinclude parameter to minimize response size and database load.

ValueFields AddedUse Case
translationstranslations.name, translations.zoneMulti-language UIs and region labels.
coordslat, lngMap rendering and spatial queries.
countdowncountdownShowing shelter countdown times or safety timers in your UI.

Example Requests

First 100 cities with minimal fields

bash
1GET https://sirenapi.orielhaim.com/data/cities

Response Structure

Always included

FieldTypeDescription
data[].idnumberInternal location identifier
data[].namestringCity name in Hebrew
data[].zonestring | nullZone/region the city belongs to

Optional - requires include

FieldTypeDescriptioninclude
data[].translationsobjectTranslated name & zone (e.g. en, ru, ar)translations
data[].latnumber | nullLatitude coordinatecoords
data[].lngnumber | nullLongitude coordinatecoords
data[].polygongeometry | nullPolygon geometry for the locationpolygons
data[].countdownnumber | nullConfigured countdown time (seconds) for this location, if availablecountdown

Pagination

FieldTypeDescription
pagination.totalnumberTotal number of matching cities
pagination.limitnumberRequested limit
pagination.offsetnumberRequested offset
pagination.hasMorebooleanWhether more results are available