Hivemapper Data APIs (1.3.0)

Download OpenAPI specification:Download

Routes requiring Basic authorization use username:apikey, where username is account username and password is the account's active API Key to use

imagery

Access fresh, high quality geolocated imagery

Access imagery for a specific week

Query imagery contained by a GeoJSON (Multi)Polygon for a given week

Authorizations:
BasicAuth
query Parameters
week
string
Example: week=2023-10-31

YYYY-mm-dd of a day in the week to query

Request Body schema: application/json
required

GeoJSON (Multi)Polygon

type
string

Polygon or MultiPolygon

coordinates
Array of numbers[ items[ items <float64 >[ items <float64 > ] ] ]

Responses

Request samples

Content type
application/json
{
  • "type": "Polygon",
  • "coordinates": [
    ]
}

Response samples

Content type
application/json
{
  • "frames": [
    ],
  • "creditsUsed": 42,
  • "creditsRemaining": 1000000
}

Access latest imagery

Query latest contained by a GeoJSON (Multi)Polygon

Authorizations:
BasicAuth
query Parameters
min_week
string
Example: min_week=2023-10-31

YYYY-mm-dd of a day in the week to use as cutoff

Request Body schema: application/json
required

GeoJSON (Multi)Polygon

Array of objects (ImageryResults)
creditsUsed
integer

Number of credits consumed by query

creditsRemaining
integer

Number of credits remaining

Responses

Request samples

Content type
application/json
{
  • "frames": [
    ],
  • "creditsUsed": 42,
  • "creditsRemaining": 1000000
}

Response samples

Content type
application/json
{
  • "frames": [
    ],
  • "creditsUsed": 42,
  • "creditsRemaining": 1000000
}

mapFeatures

Access high quality geolocated map features

Access map features within a specified area

Query map features contained by a GeoJSON (Multi)Polygon

Authorizations:
BasicAuth
Request Body schema: application/json
required

GeoJSON (Multi)Polygon

type
string

Polygon or MultiPolygon

coordinates
Array of numbers[ items[ items <float64 >[ items <float64 > ] ] ]

Responses

Request samples

Content type
application/json
{
  • "type": "Polygon",
  • "coordinates": [
    ]
}

Response samples

Content type
application/json
{
  • "features": [
    ],
  • "creditsUsed": 42,
  • "creditsRemaining": 1000000
}

devices

Access device metadata

Access dashcam device metadata

Fetch camera intrinsic parameters for dashcams

Responses

Response samples

Content type
application/json
{
  • "device": {
    }
}

account

Access account information

Balance of remaining API credits

Get remaining API Credits balance

Authorizations:
BasicAuth

Responses

Response samples

Content type
application/json
{
  • "balance": 42
}

Access query history

Fetch history of API queries

Authorizations:
BasicAuth
query Parameters
limit
integer
Example: limit=100

Max results to return

skip
integer

Results to skip

Responses

Response samples

Content type
application/json
{
  • "history": [
    ]
}