{"openapi":"3.1.0","info":{"title":"OpenAQ","description":"OpenAQ API","version":"3.0.0"},"paths":{"/v3/instruments/{instruments_id}":{"get":{"tags":["v3"],"summary":"Get an instrument by ID","description":"Provides a instrument by instrument ID","operationId":"instrument_get_v3_instruments__instruments_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"instruments_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific instruments id","title":"Instruments Id"},"description":"Limit the results to a specific instruments id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstrumentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/instruments":{"get":{"tags":["v3"],"summary":"Get instruments","description":"Provides a list of instruments","operationId":"instruments_get_v3_instruments_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/InstrumentsSortFields"},{"type":"null"}],"description":"The field by which to order results","examples":["order_by=id"],"default":"id","title":"Order By"},"description":"The field by which to order results"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SortOrder"},{"type":"null"}],"description":"Sort results ascending or descending. Default ASC","examples":["sort=desc"],"default":"asc","title":"Sort Order"},"description":"Sort results ascending or descending. Default ASC"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstrumentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/manufacturers/{manufacturers_id}/instruments":{"get":{"tags":["v3"],"summary":"Get instruments by manufacturer ID","description":"Provides a list of instruments for a specific manufacturer","operationId":"get_instruments_by_manufacturer_v3_manufacturers__manufacturers_id__instruments_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"manufacturers_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit results to a specific manufacturer id","title":"Manufacturers Id"},"description":"Limit results to a specific manufacturer id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstrumentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/locations/{locations_id}":{"get":{"tags":["v3"],"summary":"Get a location by ID","description":"Provides a location by location ID","operationId":"location_get_v3_locations__locations_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"locations_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific location by id","title":"Locations Id"},"description":"Limit the results to a specific location by id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/locations":{"get":{"tags":["v3"],"summary":"Get locations","description":"Provides a list of locations","operationId":"locations_get_v3_locations_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"coordinates","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"WGS 84 Coordinate pair in form latitude,longitude. Supports up to 4 decimal points of precision, additional decimal precision will be truncated in the query e.g. 38.9074,-77.0373","examples":["38.907,-77.037"],"title":"Coordinates"},"description":"WGS 84 Coordinate pair in form latitude,longitude. Supports up to 4 decimal points of precision, additional decimal precision will be truncated in the query e.g. 38.9074,-77.0373"},{"name":"radius","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":25000,"exclusiveMinimum":0},{"type":"null"}],"description":"Search radius from coordinates as center in meters. Maximum of 25,000 (25km) defaults to 1000 (1km) e.g. radius=1000","examples":["1000"],"title":"Radius"},"description":"Search radius from coordinates as center in meters. Maximum of 25,000 (25km) defaults to 1000 (1km) e.g. radius=1000"},{"name":"providers_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Limit the results to a specific provider or multiple providers  with a single provider ID or a comma delimited list of IDs","examples":["1","1,2,3"],"title":"Providers Id"},"description":"Limit the results to a specific provider or multiple providers  with a single provider ID or a comma delimited list of IDs"},{"name":"parameters_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"","title":"Parameters Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"},{"name":"owner_contacts_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Limit the results to a specific owner by owner ID with a single owner ID or comma delimited list of IDs","title":"Owner Contacts Id"},"description":"Limit the results to a specific owner by owner ID with a single owner ID or comma delimited list of IDs"},{"name":"manufacturers_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"","title":"Manufacturers Id"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/LocationsSortFields"},{"type":"null"}],"description":"The field by which to order results","examples":["order_by=id"],"default":"id","title":"Order By"},"description":"The field by which to order results"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SortOrder"},{"type":"null"}],"description":"Sort results ascending or descending. Default ASC","examples":["sort=desc"],"default":"asc","title":"Sort Order"},"description":"Sort results ascending or descending. Default ASC"},{"name":"licenses_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"","title":"Licenses Id"}},{"name":"monitor","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Is the location considered a reference monitor?","title":"Monitor"},"description":"Is the location considered a reference monitor?"},{"name":"mobile","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Is the location considered a mobile location?","title":"Mobile"},"description":"Is the location considered a mobile location?"},{"name":"instruments_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"","title":"Instruments Id"}},{"name":"iso","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Limit the results to a specific country using ISO 3166-1 alpha-2 code","examples":["US"],"title":"Iso"},"description":"Limit the results to a specific country using ISO 3166-1 alpha-2 code"},{"name":"countries_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Limit the results to a specific country or countries by country ID as a single country ID or a comma delimited list of IDs","examples":["1","1,2,3"],"title":"Countries Id"},"description":"Limit the results to a specific country or countries by country ID as a single country ID or a comma delimited list of IDs"},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"geospatial bounding box of Min X, min Y, max X, max Y in WGS 84 coordinates. Up to 4 decimal points of precision, addtional decimal precision will be truncated to 4 decimal points precision e.g. -77.037,38.907,-77.0,39.910","examples":["-77.1200,38.7916,-76.9094,38.9955"],"title":"Bbox"},"description":"geospatial bounding box of Min X, min Y, max X, max Y in WGS 84 coordinates. Up to 4 decimal points of precision, addtional decimal precision will be truncated to 4 decimal points precision e.g. -77.037,38.907,-77.0,39.910"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/licenses/{licenses_id}":{"get":{"tags":["v3"],"summary":"Get a license by ID","description":"Provides a license by license ID","operationId":"license_get_v3_licenses__licenses_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"licenses_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific licenses id","title":"Licenses Id"},"description":"Limit the results to a specific licenses id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/licenses":{"get":{"tags":["v3"],"summary":"Get licenses","description":"Provides a list of licenses","operationId":"instruments_get_v3_licenses_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/LicensesSortFields"},{"type":"null"}],"description":"The field by which to order results","examples":["order_by=id"],"default":"id","title":"Order By"},"description":"The field by which to order results"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SortOrder"},{"type":"null"}],"description":"Sort results ascending or descending. Default ASC","examples":["sort=desc"],"default":"asc","title":"Sort Order"},"description":"Sort results ascending or descending. Default ASC"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/parameters/{parameters_id}":{"get":{"tags":["v3"],"summary":"Get a parameter by ID","description":"Provides a parameter by parameter ID","operationId":"parameter_get_v3_parameters__parameters_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"parameters_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific parameters id","title":"Parameters Id"},"description":"Limit the results to a specific parameters id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParametersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/parameters":{"get":{"tags":["v3"],"summary":"Get a parameters","description":"Provides a list of parameters","operationId":"parameters_get_v3_parameters_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ParametersSortFields"},{"type":"null"}],"description":"The field by which to order results","examples":["order_by=id"],"default":"id","title":"Order By"},"description":"The field by which to order results"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SortOrder"},{"type":"null"}],"description":"Sort results ascending or descending. Default ASC","examples":["sort=desc"],"default":"asc","title":"Sort Order"},"description":"Sort results ascending or descending. Default ASC"},{"name":"parameter_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterType"},{"type":"null"}],"description":"Limit the results to a specific parameters type","examples":["pollutant","meteorological"],"title":"Parameter Type"},"description":"Limit the results to a specific parameters type"},{"name":"coordinates","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"WGS 84 Coordinate pair in form latitude,longitude. Supports up to 4 decimal points of precision, additional decimal precision will be truncated in the query e.g. 38.9074,-77.0373","examples":["38.907,-77.037"],"title":"Coordinates"},"description":"WGS 84 Coordinate pair in form latitude,longitude. Supports up to 4 decimal points of precision, additional decimal precision will be truncated in the query e.g. 38.9074,-77.0373"},{"name":"radius","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":25000,"exclusiveMinimum":0},{"type":"null"}],"description":"Search radius from coordinates as center in meters. Maximum of 25,000 (25km) defaults to 1000 (1km) e.g. radius=1000","examples":["1000"],"title":"Radius"},"description":"Search radius from coordinates as center in meters. Maximum of 25,000 (25km) defaults to 1000 (1km) e.g. radius=1000"},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"geospatial bounding box of Min X, min Y, max X, max Y in WGS 84 coordinates. Up to 4 decimal points of precision, addtional decimal precision will be truncated to 4 decimal points precision e.g. -77.037,38.907,-77.0,39.910","examples":["-77.1200,38.7916,-76.9094,38.9955"],"title":"Bbox"},"description":"geospatial bounding box of Min X, min Y, max X, max Y in WGS 84 coordinates. Up to 4 decimal points of precision, addtional decimal precision will be truncated to 4 decimal points precision e.g. -77.037,38.907,-77.0,39.910"},{"name":"iso","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Limit the results to a specific country using ISO 3166-1 alpha-2 code","examples":["US"],"title":"Iso"},"description":"Limit the results to a specific country using ISO 3166-1 alpha-2 code"},{"name":"countries_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Limit the results to a specific country or countries by country ID as a single country ID or a comma delimited list of IDs","examples":["1","1,2,3"],"title":"Countries Id"},"description":"Limit the results to a specific country or countries by country ID as a single country ID or a comma delimited list of IDs"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParametersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/countries/{countries_id}":{"get":{"tags":["v3"],"summary":"Get a country by ID","description":"Provides a country by country ID","operationId":"country_get_v3_countries__countries_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"countries_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Countries Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/countries":{"get":{"tags":["v3"],"summary":"Get countries","description":"Provides a list of countries","operationId":"countries_get_v3_countries_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CountriesSortFields"},{"type":"null"}],"description":"The field by which to order results","examples":["order_by=id"],"default":"id","title":"Order By"},"description":"The field by which to order results"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SortOrder"},{"type":"null"}],"description":"Sort results ascending or descending. Default ASC","examples":["sort=desc"],"default":"asc","title":"Sort Order"},"description":"Sort results ascending or descending. Default ASC"},{"name":"providers_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Limit the results to a specific provider or multiple providers  with a single provider ID or a comma delimited list of IDs","examples":["1","1,2,3"],"title":"Providers Id"},"description":"Limit the results to a specific provider or multiple providers  with a single provider ID or a comma delimited list of IDs"},{"name":"parameters_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"","title":"Parameters Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/manufacturers/{manufacturers_id}":{"get":{"tags":["v3"],"summary":"Get a manufacturer by ID","description":"Provides a manufacturer by manufacturer ID","operationId":"manufacturer_get_v3_manufacturers__manufacturers_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"manufacturers_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific manufacturers id","title":"Manufacturers Id"},"description":"Limit the results to a specific manufacturers id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManufacturersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/manufacturers":{"get":{"tags":["v3"],"summary":"Get manufacturers","description":"Provides a list of manufacturers","operationId":"manufacturers_get_v3_manufacturers_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ManufacturersSortFields"},{"type":"null"}],"description":"The field by which to order results","examples":["order_by=id"],"default":"id","title":"Order By"},"description":"The field by which to order results"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SortOrder"},{"type":"null"}],"description":"Sort results ascending or descending. Default ASC","examples":["sort=desc"],"default":"asc","title":"Sort Order"},"description":"Sort results ascending or descending. Default ASC"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManufacturersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/measurements":{"get":{"tags":["v3"],"summary":"Get measurements by sensor ID","description":"Provides a list of measurements by sensor ID","operationId":"sensor_measurements_get_v3_sensors__sensors_id__measurements_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasurementsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/measurements/hourly":{"get":{"tags":["v3"],"summary":"Get measurements aggregated to hours by sensor ID","description":"Provides a list of measurements aggregated to hourly values         on the fly by sensor ID. For better performance but similar functionality,         `/sensors/{sensors_id}/hours` is the recommended endpoint.","operationId":"sensor_measurements_aggregated_get_hourly_v3_sensors__sensors_id__measurements_hourly_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasurementsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/measurements/daily":{"get":{"tags":["v3"],"summary":"Get measurements aggregated to days by sensor ID","description":"Provides a list of measurements by sensor ID","operationId":"sensor_measurements_aggregated_get_daily_v3_sensors__sensors_id__measurements_daily_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasurementsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/hours":{"get":{"tags":["v3"],"summary":"Get precomputed hourly measurements by sensor ID","description":"Provides a list of hourly measurements by sensor ID. If a sensor         is reporting at a higher frequency than hourly (e.g. one measurement         every 10 minutes), this endpoint returns the precomputed average         measurement value by the hour.","operationId":"sensor_hourly_measurements_get_v3_sensors__sensors_id__hours_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/hours/daily":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from hour to day by sensor ID","description":"Provides a list of daily summaries of hourly data by sensor ID","operationId":"sensor_hourly_measurements_aggregate_to_day_get_v3_sensors__sensors_id__hours_daily_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/hours/monthly":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from hour to month by sensor ID","description":"Provides a list of monthly summaries of hourly data by sensor ID","operationId":"sensor_hourly_measurements_aggregate_to_month_get_v3_sensors__sensors_id__hours_monthly_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/hours/yearly":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from hour to year by sensor ID","description":"Provides a list of yearly summaries of hourly data by sensor ID","operationId":"sensor_hourly_measurements_aggregate_to_year_get_v3_sensors__sensors_id__hours_yearly_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/hours/hourofday":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from hour to hour of day by sensor ID","description":"Provides a list of summaries of hourly data by hour of day value by sensor ID","operationId":"sensor_hourly_measurements_aggregate_to_hod_get_v3_sensors__sensors_id__hours_hourofday_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/hours/dayofweek":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from hour to day of week by sensor ID","description":"Provides a list of summaries of hourly data by day of week by sensor ID","operationId":"sensor_hourly_measurements_aggregate_to_dow_get_v3_sensors__sensors_id__hours_dayofweek_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/hours/monthofyear":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from hour to month of year by sensor ID","description":"Provides a list of summaries of hourly data by month of year by sensor ID","operationId":"sensor_hourly_measurements_aggregate_to_moy_get_v3_sensors__sensors_id__hours_monthofyear_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"From when?"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/days/dayofweek":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from day to day of week by sensor ID","description":"Provides a list of summaries of daily data by day of week by sensor ID","operationId":"sensor_daily_measurements_aggregate_to_dow_get_v3_sensors__sensors_id__days_dayofweek_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date To"},"description":"To when?"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date From"},"description":"From when?"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/days/monthofyear":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from day to month of year by sensor ID","description":"Provides a list of summaries of daily data by month of year by sensor ID","operationId":"sensor_daily_measurements_aggregate_to_moy_get_v3_sensors__sensors_id__days_monthofyear_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date To"},"description":"To when?"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date From"},"description":"From when?"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/days":{"get":{"tags":["v3"],"summary":"Get measurements aggregated to day by sensor ID","description":"Provides a list of daily data by sensor ID","operationId":"sensor_daily_get_v3_sensors__sensors_id__days_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date To"},"description":"To when?"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/days/monthly":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from day to month by sensor ID","description":"Provides a list of monthly summaries of daily data by sensor ID","operationId":"sensor_daily_aggregate_to_month_get_v3_sensors__sensors_id__days_monthly_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date To"},"description":"To when?"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/days/yearly":{"get":{"tags":["v3"],"summary":"Get measurements aggregated from day to year by sensor ID","description":"Provides a list of yearly summaries of daily data by sensor ID","operationId":"sensor_daily_aggregate_to_year_get_v3_sensors__sensors_id__days_yearly_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date To"},"description":"To when?"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}/years":{"get":{"tags":["v3"],"summary":"Get measurements aggregated to year by sensor ID","description":"Provides a list of annual data by sensor ID","operationId":"sensor_yearly_get_v3_sensors__sensors_id__years_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date To"},"description":"To when?"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"From when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Date From"},"description":"From when?"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnualDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/owners/{owners_id}":{"get":{"tags":["v3"],"summary":"Get a owner by ID","description":"Provides a owner by owner ID","operationId":"owner_get_v3_owners__owners_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"owners_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific owner by id","title":"Owners Id"},"description":"Limit the results to a specific owner by id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/owners":{"get":{"tags":["v3"],"summary":"Get owners","description":"Provides a list of owners","operationId":"owners_get_v3_owners_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OwnersSortFields"},{"type":"null"}],"description":"The field by which to order results","examples":["order_by=id"],"default":"id","title":"Order By"},"description":"The field by which to order results"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SortOrder"},{"type":"null"}],"description":"Sort results ascending or descending. Default ASC","examples":["sort=desc"],"default":"asc","title":"Sort Order"},"description":"Sort results ascending or descending. Default ASC"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/providers/{providers_id}":{"get":{"tags":["v3"],"summary":"Get a provider by ID","description":"Provides a provider by provider ID","operationId":"provider_get_v3_providers__providers_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"providers_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific provider by id","title":"Providers Id"},"description":"Limit the results to a specific provider by id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvidersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/providers":{"get":{"tags":["v3"],"summary":"Get providers","description":"Provides a list of providers","operationId":"providers_get_v3_providers_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProvidersSortFields"},{"type":"null"}],"description":"The field by which to order results","examples":["order_by=id"],"default":"id","title":"Order By"},"description":"The field by which to order results"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SortOrder"},{"type":"null"}],"description":"Sort results ascending or descending. Default ASC","examples":["sort=desc"],"default":"asc","title":"Sort Order"},"description":"Sort results ascending or descending. Default ASC"},{"name":"parameters_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"","title":"Parameters Id"}},{"name":"monitor","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Is the location considered a reference monitor?","title":"Monitor"},"description":"Is the location considered a reference monitor?"},{"name":"iso","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Limit the results to a specific country using ISO 3166-1 alpha-2 code","examples":["US"],"title":"Iso"},"description":"Limit the results to a specific country using ISO 3166-1 alpha-2 code"},{"name":"countries_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Limit the results to a specific country or countries by country ID as a single country ID or a comma delimited list of IDs","examples":["1","1,2,3"],"title":"Countries Id"},"description":"Limit the results to a specific country or countries by country ID as a single country ID or a comma delimited list of IDs"},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"geospatial bounding box of Min X, min Y, max X, max Y in WGS 84 coordinates. Up to 4 decimal points of precision, addtional decimal precision will be truncated to 4 decimal points precision e.g. -77.037,38.907,-77.0,39.910","examples":["-77.1200,38.7916,-76.9094,38.9955"],"title":"Bbox"},"description":"geospatial bounding box of Min X, min Y, max X, max Y in WGS 84 coordinates. Up to 4 decimal points of precision, addtional decimal precision will be truncated to 4 decimal points precision e.g. -77.037,38.907,-77.0,39.910"},{"name":"coordinates","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"WGS 84 Coordinate pair in form latitude,longitude. Supports up to 4 decimal points of precision, additional decimal precision will be truncated in the query e.g. 38.9074,-77.0373","examples":["38.907,-77.037"],"title":"Coordinates"},"description":"WGS 84 Coordinate pair in form latitude,longitude. Supports up to 4 decimal points of precision, additional decimal precision will be truncated in the query e.g. 38.9074,-77.0373"},{"name":"radius","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":25000,"exclusiveMinimum":0},{"type":"null"}],"description":"Search radius from coordinates as center in meters. Maximum of 25,000 (25km) defaults to 1000 (1km) e.g. radius=1000","examples":["1000"],"title":"Radius"},"description":"Search radius from coordinates as center in meters. Maximum of 25,000 (25km) defaults to 1000 (1km) e.g. radius=1000"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvidersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/locations/{locations_id}/sensors":{"get":{"tags":["v3"],"summary":"Get sensors by location ID","description":"Provides a list of sensors by location ID","operationId":"sensors_get_v3_locations__locations_id__sensors_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"locations_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Locations Id"},"description":"Limit the results to a specific sensors id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensors_id}":{"get":{"tags":["v3"],"summary":"Get a sensor by ID","description":"Provides a sensor by sensor ID","operationId":"sensor_get_v3_sensors__sensors_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensors_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensors id","title":"Sensors Id"},"description":"Limit the results to a specific sensors id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/parameters/{parameters_id}/latest":{"get":{"tags":["v3"],"summary":"Get latest measurements by parameters ID","description":"Provides a list of latest measurements of the indicated parameters ID","operationId":"parameters_latest_get_v3_parameters__parameters_id__latest_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"parameters_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific parameters id","title":"Parameters Id"},"description":"Limit the results to a specific parameters id"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"},{"name":"datetime_min","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Minimum datetime","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime Min"},"description":"Minimum datetime"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/locations/{locations_id}/latest":{"get":{"tags":["v3"],"summary":"Get a location's latest measurements","description":"Providers a location's latest measurement values","operationId":"location_latest_get_v3_locations__locations_id__latest_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"locations_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific location by id","title":"Locations Id"},"description":"Limit the results to a specific location by id"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"},{"name":"datetime_min","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Minimum datetime","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime Min"},"description":"Minimum datetime"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/locations/{locations_id}/flags":{"get":{"tags":["v3"],"summary":"Get flags by location ID","description":"Provides a list of flags by location ID","operationId":"location_flags_get_v3_locations__locations_id__flags_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"locations_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific locations","title":"Locations Id"},"description":"Limit the results to a specific locations"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"To when?"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationFlagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/sensors/{sensor_id}/flags":{"get":{"tags":["v3"],"summary":"Get flags by sensor ID","description":"Provides a list of flags by sensor ID","operationId":"sensor_flags_get_v3_sensors__sensor_id__flags_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","description":"Limit the results to a specific sensor","title":"Sensor Id"},"description":"Limit the results to a specific sensor"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results","examples":["100"],"default":100,"title":"Limit"},"description":"Change the number of results returned.\n        e.g. limit=100 will return up to 100 results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Paginate through results. e.g. page=1 will return first page of results","examples":["1"],"default":1,"title":"Page"},"description":"Paginate through results. e.g. page=1 will return first page of results"},{"name":"datetime_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime From"},"description":"To when?"},{"name":"datetime_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"To when?","examples":["2022-10-01T11:19:38-06:00","2022-10-01"],"title":"Datetime To"},"description":"To when?"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationFlagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AnnualData":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"flagInfo":{"$ref":"#/components/schemas/FlagInfo"},"parameter":{"$ref":"#/components/schemas/ParameterBase"},"period":{"anyOf":[{"$ref":"#/components/schemas/Period"},{"type":"null"}]},"coordinates":{"anyOf":[{"$ref":"#/components/schemas/Coordinates"},{"type":"null"}]},"summary":{"anyOf":[{"$ref":"#/components/schemas/Summary"},{"type":"null"}]},"coverage":{"anyOf":[{"$ref":"#/components/schemas/Coverage"},{"type":"null"}]}},"type":"object","required":["flagInfo","parameter"],"title":"AnnualData"},"AnnualDataResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/AnnualData"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"AnnualDataResponse"},"AttributionEntity":{"properties":{"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["name"],"title":"AttributionEntity"},"Coordinates":{"properties":{"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"}},"type":"object","title":"Coordinates"},"CountriesResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Country"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"CountriesResponse"},"CountriesSortFields":{"type":"string","enum":["id"],"title":"CountriesSortFields"},"Country":{"properties":{"id":{"type":"integer","title":"Id"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"datetimeFirst":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datetimefirst"},"datetimeLast":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datetimelast"},"parameters":{"anyOf":[{"items":{"$ref":"#/components/schemas/ParameterBase"},"type":"array"},{"type":"null"}],"title":"Parameters"}},"type":"object","required":["id","code","name"],"title":"Country"},"CountryBase":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"}},"type":"object","required":["code","name"],"title":"CountryBase"},"Coverage":{"properties":{"expectedCount":{"type":"integer","title":"Expectedcount"},"expectedInterval":{"type":"string","title":"Expectedinterval"},"observedCount":{"type":"integer","title":"Observedcount"},"observedInterval":{"type":"string","title":"Observedinterval"},"percentComplete":{"type":"number","title":"Percentcomplete"},"percentCoverage":{"type":"number","title":"Percentcoverage"},"datetimeFrom":{"anyOf":[{"$ref":"#/components/schemas/DatetimeObject"},{"type":"null"}]},"datetimeTo":{"anyOf":[{"$ref":"#/components/schemas/DatetimeObject"},{"type":"null"}]}},"type":"object","required":["expectedCount","expectedInterval","observedCount","observedInterval","percentComplete","percentCoverage"],"title":"Coverage"},"DailyData":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"flagInfo":{"$ref":"#/components/schemas/FlagInfo"},"parameter":{"$ref":"#/components/schemas/ParameterBase"},"period":{"anyOf":[{"$ref":"#/components/schemas/Period"},{"type":"null"}]},"coordinates":{"anyOf":[{"$ref":"#/components/schemas/Coordinates"},{"type":"null"}]},"summary":{"anyOf":[{"$ref":"#/components/schemas/Summary"},{"type":"null"}]},"coverage":{"anyOf":[{"$ref":"#/components/schemas/Coverage"},{"type":"null"}]}},"type":"object","required":["flagInfo","parameter"],"title":"DailyData"},"DailyDataResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/DailyData"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"DailyDataResponse"},"DatetimeObject":{"properties":{"utc":{"type":"string","format":"date-time","title":"Utc"},"local":{"type":"string","format":"date-time","title":"Local"}},"type":"object","required":["utc","local"],"title":"DatetimeObject"},"EntityBase":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"EntityBase"},"FlagInfo":{"properties":{"hasFlags":{"type":"boolean","title":"Hasflags"}},"type":"object","required":["hasFlags"],"title":"FlagInfo"},"FlagType":{"properties":{"id":{"type":"integer","title":"Id"},"label":{"type":"string","title":"Label"},"level":{"type":"string","title":"Level"}},"type":"object","required":["id","label","level"],"title":"FlagType"},"GeoJSON":{"properties":{"type":{"type":"string","title":"Type"},"coordinates":{"items":{},"type":"array","title":"Coordinates","default":[]}},"type":"object","required":["type"],"title":"GeoJSON"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HourlyData":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"flagInfo":{"$ref":"#/components/schemas/FlagInfo"},"parameter":{"$ref":"#/components/schemas/ParameterBase"},"period":{"anyOf":[{"$ref":"#/components/schemas/Period"},{"type":"null"}]},"coordinates":{"anyOf":[{"$ref":"#/components/schemas/Coordinates"},{"type":"null"}]},"summary":{"anyOf":[{"$ref":"#/components/schemas/Summary"},{"type":"null"}]},"coverage":{"anyOf":[{"$ref":"#/components/schemas/Coverage"},{"type":"null"}]}},"type":"object","required":["flagInfo","parameter"],"title":"HourlyData"},"HourlyDataResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/HourlyData"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"HourlyDataResponse"},"Instrument":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"isMonitor":{"type":"boolean","title":"Ismonitor"},"manufacturer":{"$ref":"#/components/schemas/ManufacturerBase"}},"type":"object","required":["id","name","isMonitor","manufacturer"],"title":"Instrument"},"InstrumentBase":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"InstrumentBase"},"InstrumentsResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Instrument"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"InstrumentsResponse"},"InstrumentsSortFields":{"type":"string","enum":["id"],"title":"InstrumentsSortFields"},"Latest":{"properties":{"datetime":{"$ref":"#/components/schemas/DatetimeObject"},"value":{"type":"number","title":"Value"},"coordinates":{"$ref":"#/components/schemas/Coordinates"},"sensorsId":{"type":"integer","title":"Sensorsid"},"locationsId":{"type":"integer","title":"Locationsid"}},"type":"object","required":["datetime","value","coordinates","sensorsId","locationsId"],"title":"Latest"},"LatestBase":{"properties":{"datetime":{"$ref":"#/components/schemas/DatetimeObject"},"value":{"type":"number","title":"Value"},"coordinates":{"$ref":"#/components/schemas/Coordinates"}},"type":"object","required":["datetime","value","coordinates"],"title":"LatestBase"},"LatestResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Latest"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"LatestResponse"},"License":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"commercialUseAllowed":{"type":"boolean","title":"Commercialuseallowed"},"attributionRequired":{"type":"boolean","title":"Attributionrequired"},"shareAlikeRequired":{"type":"boolean","title":"Sharealikerequired"},"modificationAllowed":{"type":"boolean","title":"Modificationallowed"},"redistributionAllowed":{"type":"boolean","title":"Redistributionallowed"},"sourceUrl":{"type":"string","title":"Sourceurl"}},"type":"object","required":["id","name","commercialUseAllowed","attributionRequired","shareAlikeRequired","modificationAllowed","redistributionAllowed","sourceUrl"],"title":"License"},"LicensesResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/License"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"LicensesResponse"},"LicensesSortFields":{"type":"string","enum":["id"],"title":"LicensesSortFields"},"Location":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"locality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locality"},"timezone":{"type":"string","title":"Timezone"},"country":{"$ref":"#/components/schemas/CountryBase"},"owner":{"$ref":"#/components/schemas/EntityBase"},"provider":{"$ref":"#/components/schemas/ProviderBase"},"isMobile":{"type":"boolean","title":"Ismobile"},"isMonitor":{"type":"boolean","title":"Ismonitor"},"instruments":{"items":{"$ref":"#/components/schemas/InstrumentBase"},"type":"array","title":"Instruments"},"sensors":{"items":{"$ref":"#/components/schemas/SensorBase"},"type":"array","title":"Sensors"},"coordinates":{"$ref":"#/components/schemas/Coordinates"},"licenses":{"anyOf":[{"items":{"$ref":"#/components/schemas/LocationLicense"},"type":"array"},{"type":"null"}],"title":"Licenses"},"bounds":{"items":{"type":"number"},"type":"array","maxItems":4,"minItems":4,"title":"Bounds"},"distance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance"},"datetimeFirst":{"anyOf":[{"$ref":"#/components/schemas/DatetimeObject"},{"type":"null"}]},"datetimeLast":{"anyOf":[{"$ref":"#/components/schemas/DatetimeObject"},{"type":"null"}]}},"type":"object","required":["id","timezone","country","owner","provider","isMobile","isMonitor","instruments","sensors","coordinates","bounds"],"title":"Location"},"LocationFlag":{"properties":{"locationId":{"type":"integer","title":"Locationid"},"flagType":{"$ref":"#/components/schemas/FlagType"},"datetimeFrom":{"$ref":"#/components/schemas/DatetimeObject"},"datetimeTo":{"$ref":"#/components/schemas/DatetimeObject"},"sensorIds":{"items":{"type":"integer"},"type":"array","title":"Sensorids","default":[]},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["locationId","flagType","datetimeFrom","datetimeTo"],"title":"LocationFlag"},"LocationFlagsResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/LocationFlag"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"LocationFlagsResponse"},"LocationLicense":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"attribution":{"$ref":"#/components/schemas/AttributionEntity"},"dateFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Datefrom"},"dateTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dateto"}},"type":"object","required":["id","name","attribution"],"title":"LocationLicense"},"LocationsResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Location"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"LocationsResponse"},"LocationsSortFields":{"type":"string","enum":["id"],"title":"LocationsSortFields"},"Manufacturer":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"instruments":{"items":{"$ref":"#/components/schemas/InstrumentBase"},"type":"array","title":"Instruments"}},"type":"object","required":["id","name","instruments"],"title":"Manufacturer"},"ManufacturerBase":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ManufacturerBase"},"ManufacturersResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Manufacturer"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ManufacturersResponse"},"ManufacturersSortFields":{"type":"string","enum":["id"],"title":"ManufacturersSortFields"},"Measurement":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"flagInfo":{"$ref":"#/components/schemas/FlagInfo"},"parameter":{"$ref":"#/components/schemas/ParameterBase"},"period":{"anyOf":[{"$ref":"#/components/schemas/Period"},{"type":"null"}]},"coordinates":{"anyOf":[{"$ref":"#/components/schemas/Coordinates"},{"type":"null"}]},"summary":{"anyOf":[{"$ref":"#/components/schemas/Summary"},{"type":"null"}]},"coverage":{"anyOf":[{"$ref":"#/components/schemas/Coverage"},{"type":"null"}]}},"type":"object","required":["flagInfo","parameter"],"title":"Measurement"},"MeasurementsResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Measurement"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"MeasurementsResponse"},"Meta":{"properties":{"name":{"type":"string","title":"Name","default":"openaq-api"},"website":{"type":"string","title":"Website","default":"/"},"page":{"type":"integer","title":"Page","default":1},"limit":{"type":"integer","title":"Limit","default":100},"found":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Found"}},"type":"object","title":"Meta"},"Owner":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"Owner"},"OwnersResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Owner"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"OwnersResponse"},"OwnersSortFields":{"type":"string","enum":["id"],"title":"OwnersSortFields"},"Parameter":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"units":{"type":"string","title":"Units"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","name","units"],"title":"Parameter"},"ParameterBase":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"units":{"type":"string","title":"Units"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"}},"type":"object","required":["id","name","units"],"title":"ParameterBase"},"ParameterType":{"type":"string","enum":["pollutant","meteorological"],"title":"ParameterType"},"ParametersResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Parameter"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ParametersResponse"},"ParametersSortFields":{"type":"string","enum":["id"],"title":"ParametersSortFields"},"Period":{"properties":{"label":{"type":"string","title":"Label"},"interval":{"type":"string","title":"Interval"},"datetimeFrom":{"anyOf":[{"$ref":"#/components/schemas/DatetimeObject"},{"type":"null"}]},"datetimeTo":{"anyOf":[{"$ref":"#/components/schemas/DatetimeObject"},{"type":"null"}]}},"type":"object","required":["label","interval"],"title":"Period"},"Provider":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"sourceName":{"type":"string","title":"Sourcename"},"exportPrefix":{"type":"string","title":"Exportprefix"},"datetimeAdded":{"type":"string","format":"date-time","title":"Datetimeadded"},"datetimeFirst":{"type":"string","format":"date-time","title":"Datetimefirst"},"datetimeLast":{"type":"string","format":"date-time","title":"Datetimelast"},"entitiesId":{"type":"integer","title":"Entitiesid"},"parameters":{"items":{"$ref":"#/components/schemas/ParameterBase"},"type":"array","title":"Parameters"},"bbox":{"anyOf":[{"$ref":"#/components/schemas/GeoJSON"},{"type":"null"}]}},"type":"object","required":["id","name","sourceName","exportPrefix","datetimeAdded","datetimeFirst","datetimeLast","entitiesId","parameters"],"title":"Provider"},"ProviderBase":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ProviderBase"},"ProvidersResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Provider"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ProvidersResponse"},"ProvidersSortFields":{"type":"string","enum":["id"],"title":"ProvidersSortFields"},"Sensor":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"parameter":{"$ref":"#/components/schemas/ParameterBase"},"datetimeFirst":{"anyOf":[{"$ref":"#/components/schemas/DatetimeObject"},{"type":"null"}]},"datetimeLast":{"anyOf":[{"$ref":"#/components/schemas/DatetimeObject"},{"type":"null"}]},"coverage":{"anyOf":[{"$ref":"#/components/schemas/Coverage"},{"type":"null"}]},"latest":{"anyOf":[{"$ref":"#/components/schemas/LatestBase"},{"type":"null"}]},"summary":{"anyOf":[{"$ref":"#/components/schemas/Summary"},{"type":"null"}]}},"type":"object","required":["id","name","parameter"],"title":"Sensor"},"SensorBase":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"parameter":{"$ref":"#/components/schemas/ParameterBase"}},"type":"object","required":["id","name","parameter"],"title":"SensorBase"},"SensorsResponse":{"properties":{"meta":{"$ref":"#/components/schemas/Meta","default":{"name":"openaq-api","website":"/","page":1,"limit":100}},"results":{"items":{"$ref":"#/components/schemas/Sensor"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"SensorsResponse"},"SortOrder":{"type":"string","enum":["asc","desc"],"title":"SortOrder"},"Summary":{"properties":{"min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min"},"q02":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Q02"},"q25":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Q25"},"median":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median"},"q75":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Q75"},"q98":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Q98"},"max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max"},"avg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg"},"sd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sd"}},"type":"object","title":"Summary"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}