> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /openmeteo/air-quality

> Get air-quality data (particulates, gases, pollen, AQI) for a geographic point

**Price:** 1 credit

**⚠️ Common errors:** 412: No data available for the location



## OpenAPI

````yaml /openapi/developer-data.json post /api/openmeteo/air-quality
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/openmeteo/air-quality:
    post:
      tags:
        - /openmeteo
      summary: /openmeteo/air-quality
      description: >-
        Get air-quality data (particulates, gases, pollen, AQI) for a geographic
        point


        **Price:** 1 credit


        **⚠️ Common errors:** 412: No data available for the location
      operationId: __api_openmeteo_air_quality_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpenmeteoAirQualityPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OpenmeteoWeather'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OpenmeteoAirQualityPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        latitude:
          type: number
          maximum: 90
          minimum: -90
        longitude:
          type: number
          maximum: 180
          minimum: -180
        timezone:
          type: string
          default: GMT
        timeformat:
          $ref: '#/components/schemas/OpenmeteoTimeFormat'
          default: iso8601
        hourly:
          anyOf:
            - items:
                $ref: '#/components/schemas/AirQualityVariable'
              type: array
            - type: 'null'
        current:
          anyOf:
            - items:
                $ref: '#/components/schemas/AirQualityVariable'
              type: array
            - type: 'null'
        domains:
          $ref: '#/components/schemas/OpenmeteoAirQualityDomain'
          default: auto
        forecast_days:
          anyOf:
            - type: integer
              maximum: 7
              minimum: 0
            - type: 'null'
        past_days:
          anyOf:
            - type: integer
              maximum: 92
              minimum: 0
            - type: 'null'
      type: object
      required:
        - latitude
        - longitude
    OpenmeteoWeather:
      properties:
        '@type':
          type: string
          default: OpenmeteoWeather
        latitude:
          type: number
        longitude:
          type: number
        generation_time_ms:
          anyOf:
            - type: number
            - type: 'null'
        utc_offset_seconds:
          anyOf:
            - type: integer
            - type: 'null'
        timezone:
          anyOf:
            - type: string
            - type: 'null'
        timezone_abbreviation:
          anyOf:
            - type: string
            - type: 'null'
        elevation:
          anyOf:
            - type: number
            - type: 'null'
        current:
          anyOf:
            - $ref: '#/components/schemas/OpenmeteoCurrentConditions'
            - type: 'null'
        minutely_15:
          anyOf:
            - $ref: '#/components/schemas/OpenmeteoTimeSeries'
            - type: 'null'
        hourly:
          anyOf:
            - $ref: '#/components/schemas/OpenmeteoTimeSeries'
            - type: 'null'
        daily:
          anyOf:
            - $ref: '#/components/schemas/OpenmeteoTimeSeries'
            - type: 'null'
      type: object
      required:
        - latitude
        - longitude
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    OpenmeteoTimeFormat:
      type: string
      enum:
        - iso8601
        - unixtime
    AirQualityVariable:
      type: string
      enum:
        - pm10
        - pm2_5
        - carbon_monoxide
        - nitrogen_dioxide
        - sulphur_dioxide
        - ozone
        - aerosol_optical_depth
        - dust
        - uv_index
        - uv_index_clear_sky
        - ammonia
        - methane
        - alder_pollen
        - birch_pollen
        - grass_pollen
        - mugwort_pollen
        - olive_pollen
        - ragweed_pollen
        - european_aqi
        - european_aqi_pm2_5
        - european_aqi_pm10
        - european_aqi_no2
        - european_aqi_o3
        - european_aqi_so2
        - us_aqi
        - us_aqi_pm2_5
        - us_aqi_pm10
        - us_aqi_no2
        - us_aqi_o3
        - us_aqi_so2
        - us_aqi_co
    OpenmeteoAirQualityDomain:
      type: string
      enum:
        - auto
        - cams_europe
        - cams_global
    OpenmeteoCurrentConditions:
      properties:
        '@type':
          type: string
          default: OpenmeteoCurrentConditions
        units:
          additionalProperties:
            type: string
          type: object
          default: {}
        values:
          additionalProperties: true
          type: object
          default: {}
      type: object
    OpenmeteoTimeSeries:
      properties:
        '@type':
          type: string
          default: OpenmeteoTimeSeries
        units:
          additionalProperties:
            type: string
          type: object
          default: {}
        records:
          items:
            additionalProperties: true
            type: object
          type: array
          default: []
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````