Skip to main content

Cities

Hotspots are usually clustered in and around cities. The routes in this section help list all cities with their hotspot counts, or list all hotspots for a specific city


List Hotspot Cities

GET https://api.helium.io/v1/cities

List all known hotspot cities with the total hotspot count for each city. Use a search parameter to filter the list of cities with the given search termThis route is paged with a cursor.

Query Parameters

paramTypeNote
search (optional)stringterm to limit the list of cities with
cursor (optional)stringCursor for page to fetch

City for City ID

GET https://api.helium.io/v1/cities/:city_id

Fetch a city for a given city id.

Path Parameters

paramTypeNote
city_id (requires)stringID of the city to fetch

List Hotspots for a City

GET https://api.helium.io/v1/cities/:city_id/hotspots

Lists all known hotspots for a given city_id. The city_id captures the city, state and country and is included in the city list result.This route is paged with a cursor.

The filter_modes parameter can be used to filter hotspot by how they were added to the blockchain. Supported values are full, dataonly, or light. A comma separated list (no whitespace) can be used to filter for multiple modes.

Path Parameters

paramTypeNote
city_id (required)stringThe id for the city are returned by the cities list

Query Parameters

paramTypeNote
cursor (optional)stringCursor for the page of results to fetch
filter_modes (optional)stringFilter hotspot types