Query observations (POST)
POST /v2/observation
Fetch statistical observations for variables over entities.
Request Body required
Section titled “Request Body required ”object
Represent a list of entities passed in as plain list or graph expression.
object
Derived-series formulas are not supported: a request that sets this is refused with INVALID_ARGUMENT. The field is kept so the refusal is explicit.
Represent a list of entities passed in as plain list or graph expression.
object
Derived-series formulas are not supported: a request that sets this is refused with INVALID_ARGUMENT. The field is kept so the refusal is explicit.
Date of the observation
- Not specified: all observations are returned
- “LATEST”: latest obseration of each facet is returned
- "
": a speficied valid ISO 8601 date. Observation corresponding to this date is returned.
object
When specified, only observations with provenance in these domains are returned.
Responses
Section titled “ Responses ”A successful response.
object
object
Holds all observations of a particular variable.
object
object
object
Facet are orderred by preference.
object
object
Facet contains the source and measurement information for a statistical observation.
object
Hash of the metadata, this is to be used together with a map from the hash to the full metatdata. This is set in /stat/set/within-place/* APIs.
Same as meta_hash, used in V1 API.
The types of place that the entity is defined as if it is a geographic place This is an experimental field used for usage logging and is not guaranteed to be populated. The absence of values is not a reliable indicator of whether the associated entity is a place.
object
Facet contains the source and measurement information for a statistical observation.
object
default
Section titled “default ”An unexpected error response.