Skip to content

Requests

Parameters

Path Parameters

In all requests, {billing_plan} and {account_id} Path Parameters will always be required.
Other Path Parameters in a request will often be obtained from another endpoint response that will be indicated for each case.

Billing Plan

For all calls, it is required to specify the Billing Plan in the endpoint for which the API usage is granted.
Fixed value for {billing_plan} is the following:

  • ondemand

Therefore, each call will have the following pattern:

Template
curl 'https://api.datappeal.io/v4/ondemand/account/{account_id}/…' \
-H 'x-api-key: {x_api_key}' \
-H 'Authorization: Bearer {jwt_bearer}' \

Header and Query Parameters

Nullability

The required Header and Query Parameters will be marked with * before the parameter name, while optional parameters will not be marked.

Dependency

A dependent Header and Query Parameter is marked with to indicate that it can be set only if immediately previous parameter is set.
Text indentation is used to more clearly show the dependency hierarchy.

Deprecation

Deprecated Header and Query Parameters will be strikethrough and marked with :fontawesome-solid-exclamation-circle:, which means that is highly recommended not to use that parameter as it will be removed soon.
Corresponding replacing fields will be marked with :fontawesome-solid-sync-alt:.

Multi-value

Query Parameters marked with can be repeated and set with a different value each time in order to be set with multiple values.

Pagination

When specified in the endpoint documentation, results can be paginated specifying page and page_size Query Parameters, which will always have implicit default values.

Geospatial

In all Locations API requests, a geospatial filter {Location} to identify a location is required.
Geospatial filtering can be achieved using one of the three different Query Parameter sets described below.

Area
Name               Description Type Examples
*country Filter by country. string Administrative Areas
  state Filter by state. string Administrative Areas
    county Filter by county. string Administrative Areas
       city Filter by city. string Administrative Areas
        suburb Filter by suburb. string Administrative Areas
GeometryID
Name Description Type Examples
*geometry_id Filter by a previously saved geometry. string 379c730942e570d586a5520770c0a65d
4442852e86f5ef4cf241a43bac90a6dcfh
Supported values for {geometry_id}

Value obtainable from $.id field of Create Geometry Response Body.

Circle
Name Description Type Examples Default
*lat Latitude of the circle center. decimal 43.770366014832014
*lng Longitude of the circle center. decimal 11.257818620617464
*radius Circle radius length. decimal 40
unit Unit of measure for radius. Possible values are:
km: kilometers
m: meters
mi: miles
decimal km
m
mi
km

Request Body

Similarly to Request Parameters, in Request Body JSON object descriptions, required fields will be marked with * before the field name, while optional fields will not be marked.