Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ApiRequestOptions

A data type that represents the configuration options for an API data request.

Hierarchy

  • ApiRequestOptions

Index

Properties

Optional action

action: string

Request action.

Optional bounds

bounds: GeoBounds

Coordinate bounds to search within.

endpoint

endpoint: string

Request endpoint (required).

Optional fields

fields: string

A comma-delimited list of response properties for the API to return. This parameter is often used to limit the amount of data returned.

Optional filter

filter: string

Predefined filters for limiting the results. The filter value can be a single, comma-delimited or a semicolon delimited string of filter names.

Optional from

from: string | Date

Either a Date or valid time string from which to return results for.

Optional limit

limit: number

Maximum number of results to return.

Optional place

place: string

Location to request data for. Refer to the list of supported place values.

Optional plimit

plimit: number

Applied only on the periods response property, the total number of periods to return as an integer.

Optional pskip

pskip: number

Applied only on the periods response property, used to skip over a specific number of periods in the data set.

Optional psort

psort: string

Applied only on the periods response property, used to sort results based on certain fields contained within the periods.

Optional query

query: string

Filters results based on certain fields and values in the dataset. Refer to the advanced queries documentation.

Optional radius

radius: string

When requesting the closest results within a circle, the radius determines how far from the specified location to search. A valid unit value must be included in your radius value, e.g., 5mi, 10km, 25miles. If no unit is provided, your value is assumed to be in meters by default.

Optional skip

skip: number

Skips over a specific number of results in the dataset.

Optional sort

sort: string

Sorts results based on certain fields in the dataset. Refer to the sorting documentation.

Optional to

to: string | Date

Either a Date or valid time string up to which to return results for. When used in conjunction with from(), this value be relative to the from value, not relative to the current time.

Generated using TypeDoc