World Monitor Consumer Prices Service API

The ConsumerPricesService API from World Monitor, for consumerpricesservice.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

GET /api/consumer-prices/v1/get-consumer-price-overview Get consumer price overview #
GET /api/consumer-prices/v1/get-consumer-price-basket-series Get consumer price basket series #
GET /api/consumer-prices/v1/list-consumer-price-categories List consumer price categories #
GET /api/consumer-prices/v1/list-consumer-price-movers List consumer price movers #
GET /api/consumer-prices/v1/list-retailer-price-spreads List retailer price spreads #
GET /api/consumer-prices/v1/get-consumer-price-freshness Get consumer price freshness #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/worldmonitor-app:worldmonitor-app-consumerpricesservice-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

worldmonitor-app-consumerpricesservice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WorldMonitor Consumer Prices Service API
  description: 'Unified OpenAPI bundle spanning all WorldMonitor services. Versioning and deprecation policy: https://www.worldmonitor.app/api-versioning.md (HTML: https://www.worldmonitor.app/docs/api-versioning)'
  contact:
    name: WorldMonitor
    email: support@worldmonitor.app
  version: 1.0.0
servers:
- url: https://api.worldmonitor.app
security:
- WorldMonitorKey: []
- ApiKeyHeader: []
tags:
- name: ConsumerPricesService
paths:
  /api/consumer-prices/v1/get-consumer-price-overview:
    get:
      tags:
      - ConsumerPricesService
      description: Returns essentials and value basket indices, week and month changes, retailer spread and coverage for one of 10 scraped markets.
      operationId: GetConsumerPriceOverview
      parameters:
      - name: market_code
        in: query
        description: market_code is the ISO 3166-1 alpha-2 market identifier (e.g. "ae").
        example: US
        schema:
          type: string
      - name: basket_slug
        in: query
        description: basket_slug selects which basket to use (e.g. "essentials-ae").
        example: essentials-ae
        schema:
          type: string
      - $ref: '#/components/parameters/J'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                asOf: '1717200000000'
                coveragePct: 1.5
                currencyCode: USD
                essentialsIndex: 1.5
                freshnessLagMin: 1
              schema:
                $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_GetConsumerPriceOverviewResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '429':
          $ref: '#/components/responses/429'
        '503':
          $ref: '#/components/responses/503'
        default:
          $ref: '#/components/responses/DEF'
      summary: Get consumer price overview
      x-summary-source: derived
  /api/consumer-prices/v1/get-consumer-price-basket-series:
    get:
      tags:
      - ConsumerPricesService
      description: Retrieve consumer price basket index history by market, basket and date range, with dated observations, currency and snapshot time for price trend analysis.
      operationId: GetConsumerPriceBasketSeries
      parameters:
      - name: market_code
        in: query
        description: market_code is the ISO 3166-1 alpha-2 market identifier.
        example: ae
        schema:
          type: string
          pattern: ^([A-Za-z]{2})?$
      - name: basket_slug
        in: query
        description: basket_slug selects the basket (e.g. "essentials-ae").
        example: essentials-ae
        schema:
          type: string
          pattern: ^([Ee][Ss][Ss][Ee][Nn][Tt][Ii][Aa][Ll][Ss]-[A-Za-z]{2})?$
      - $ref: '#/components/parameters/P20'
      - $ref: '#/components/parameters/J'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                asOf: '1717200000000'
                basketSlug: essentials-ae
                currencyCode: AED
                essentialsSeries:
                - date: '2026-01-15'
                  index: 1.5
                marketCode: ae
              schema:
                $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_GetConsumerPriceBasketSeriesResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '429':
          $ref: '#/components/responses/429'
        '503':
          $ref: '#/components/responses/503'
        default:
          $ref: '#/components/responses/DEF'
      summary: Get consumer price basket series
      x-summary-source: derived
  /api/consumer-prices/v1/list-consumer-price-categories:
    get:
      tags:
      - ConsumerPricesService
      description: Returns per-category price indices with week and month changes, sparklines and coverage for a market over a 7d, 30d or 90d range.
      operationId: ListConsumerPriceCategories
      parameters:
      - $ref: '#/components/parameters/P21'
      - name: basket_slug
        in: query
        description: basket_slug selects the basket scope.
        example: essentials-ae
        schema:
          type: string
      - $ref: '#/components/parameters/P20'
      - $ref: '#/components/parameters/J'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                asOf: '1717200000000'
                categories:
                - coveragePct: 1.5
                  currentIndex: 1.5
                  itemCount: 1
                  momPct: 1.5
                  name: WorldMonitor Analyst
                marketCode: US
                range: 7d
                upstreamUnavailable: false
              schema:
                $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_ListConsumerPriceCategoriesResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '429':
          $ref: '#/components/responses/429'
        '503':
          $ref: '#/components/responses/503'
        default:
          $ref: '#/components/responses/DEF'
      summary: List consumer price categories
      x-summary-source: derived
  /api/consumer-prices/v1/list-consumer-price-movers:
    get:
      tags:
      - ConsumerPricesService
      description: Returns up to 10 risers and 10 fallers, the products with the largest price changes in a market over 7d, 30d or 90d, by category.
      operationId: ListConsumerPriceMovers
      parameters:
      - $ref: '#/components/parameters/P21'
      - name: range
        in: query
        description: range is one of "7d", "30d", "90d".
        example: 7d
        schema:
          type: string
      - name: limit
        in: query
        description: limit caps the number of risers and fallers returned.
        required: true
        example: 25
        schema:
          type: integer
          format: int32
      - name: category_slug
        in: query
        description: category_slug filters to a single category when set.
        example: cs.AI
        schema:
          type: string
      - $ref: '#/components/parameters/J'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                asOf: '1717200000000'
                fallers:
                - category: cs.AI
                  changePct: 1.5
                  currencyCode: USD
                  currentPrice: 75.25
                  productId: diesel
                marketCode: US
                range: 7d
                risers:
                - category: cs.AI
                  changePct: 1.5
                  currencyCode: USD
                  currentPrice: 75.25
                  productId: diesel
              schema:
                $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_ListConsumerPriceMoversResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '429':
          $ref: '#/components/responses/429'
        '503':
          $ref: '#/components/responses/503'
        default:
          $ref: '#/components/responses/DEF'
      summary: List consumer price movers
      x-summary-source: derived
  /api/consumer-prices/v1/list-retailer-price-spreads:
    get:
      tags:
      - ConsumerPricesService
      description: Compares essentials basket totals across retailers in a market, with each store's gap to the cheapest and the overall spread.
      operationId: ListRetailerPriceSpreads
      parameters:
      - $ref: '#/components/parameters/P21'
      - name: basket_slug
        in: query
        description: basket_slug selects which basket to compare across retailers.
        example: essentials-ae
        schema:
          type: string
      - $ref: '#/components/parameters/J'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                asOf: '1717200000000'
                basketSlug: essentials-ae
                currencyCode: USD
                marketCode: US
                retailers:
                - basketTotal: 1
                  currencyCode: USD
                  deltaVsCheapest: 1.5
                  deltaVsCheapestPct: 1.5
                  freshnessMin: 1
              schema:
                $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_ListRetailerPriceSpreadsResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '429':
          $ref: '#/components/responses/429'
        '503':
          $ref: '#/components/responses/503'
        default:
          $ref: '#/components/responses/DEF'
      summary: List retailer price spreads
      x-summary-source: derived
  /api/consumer-prices/v1/get-consumer-price-freshness:
    get:
      tags:
      - ConsumerPricesService
      description: Returns scrape freshness per retailer in a market, with last run time, status, parse success rate and the count of stalled feeds.
      operationId: GetConsumerPriceFreshness
      parameters:
      - name: market_code
        in: query
        description: market_code is the ISO 3166-1 alpha-2 market identifier.
        example: US
        schema:
          type: string
          pattern: ^([A-Za-z]{2})?$
      - $ref: '#/components/parameters/J'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                asOf: '1717200000000'
                marketCode: US
                overallFreshnessMin: 1
                retailers:
                - freshnessMin: 1
                  lastRunAt: '1717200000000'
                  name: WorldMonitor Analyst
                  parseSuccessRate: 75.25
                  slug: example
                stalledCount: 1
              schema:
                $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_GetConsumerPriceFreshnessResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '429':
          $ref: '#/components/responses/429'
        '503':
          $ref: '#/components/responses/503'
        default:
          $ref: '#/components/responses/DEF'
      summary: Get consumer price freshness
      x-summary-source: derived
components:
  schemas:
    WM34:
      type: string
      description: market_code echoes the requested market.
    worldmonitor_consumer_prices_v1_ListRetailerPriceSpreadsResponse:
      type: object
      properties:
        marketCode:
          $ref: '#/components/schemas/WM34'
        asOf:
          $ref: '#/components/schemas/WM17'
        basketSlug:
          type: string
          description: basket_slug echoes the requested basket.
        currencyCode:
          $ref: '#/components/schemas/WM58'
        retailers:
          type: array
          items:
            $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_RetailerSpread'
        spreadPct:
          type: number
          format: double
          description: spread_pct is the percentage difference between cheapest and most expensive retailer.
        upstreamUnavailable:
          $ref: '#/components/schemas/WM16'
      description: Holds cheapest-basket rankings.
    WM104:
      type: string
      description: range is the effective normalized range used for the returned snapshot.
    worldmonitor_consumer_prices_v1_GetConsumerPriceOverviewResponse:
      type: object
      properties:
        marketCode:
          $ref: '#/components/schemas/WM34'
        asOf:
          $ref: '#/components/schemas/WM17'
        currencyCode:
          type: string
          description: currency_code is the ISO 4217 currency for price values.
        essentialsIndex:
          type: number
          format: double
          description: essentials_index is the fixed basket index value (base = 100).
        valueBasketIndex:
          type: number
          format: double
          description: value_basket_index is the value basket index value (base = 100).
        wowPct:
          type: number
          format: double
          description: wow_pct is the week-over-week percentage change in the essentials index.
        momPct:
          type: number
          format: double
          description: mom_pct is the month-over-month percentage change in the essentials index.
        retailerSpreadPct:
          type: number
          format: double
          description: retailer_spread_pct is the basket cost spread between cheapest and most expensive retailer.
        coveragePct:
          type: number
          format: double
          description: coverage_pct is the fraction of basket items with current observations.
        freshnessLagMin:
          type: integer
          format: int32
          description: freshness_lag_min is the average minutes since last observation across all retailers.
        topCategories:
          $ref: '#/components/schemas/WM103'
        upstreamUnavailable:
          $ref: '#/components/schemas/WM16'
      description: Contains headline basket and coverage metrics.
    WM16:
      type: boolean
      description: upstream_unavailable is true when the companion service could not be reached.
    worldmonitor_consumer_prices_v1_GetConsumerPriceBasketSeriesResponse:
      type: object
      properties:
        marketCode:
          $ref: '#/components/schemas/WM34'
        basketSlug:
          type: string
          description: basket_slug echoes the requested basket.
        asOf:
          $ref: '#/components/schemas/WM17'
        currencyCode:
          $ref: '#/components/schemas/WM58'
        range:
          $ref: '#/components/schemas/WM104'
        essentialsSeries:
          $ref: '#/components/schemas/WM118'
        valueSeries:
          $ref: '#/components/schemas/WM118'
        upstreamUnavailable:
          $ref: '#/components/schemas/WM16'
      description: Contains the basket index time series.
    WM103:
      type: array
      items:
        $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_CategorySnapshot'
    ForbiddenError:
      type: object
      properties:
        error:
          type: string
          description: Human-readable entitlement failure reason.
        code:
          type: string
          enum:
          - subscription_lapsed
          - payment_failed
          description: Machine-readable denial code, present when the 403 is a billing-provider-confirmed subscription lapse or payment failure (mirrored in the X-Billing-Verification response header).
        requiredTier:
          type: integer
          format: int32
          description: Minimum entitlement tier required for this endpoint.
        currentTier:
          type: integer
          format: int32
          description: Caller entitlement tier when known.
        planKey:
          type: string
          description: Caller plan key when known.
      required:
      - error
      description: Returned when a PRO-gated endpoint denies access because the caller has no resolved authenticated user, entitlements cannot be verified, or the caller lacks the required entitlement tier.
    JmespathProjectionError:
      description: Returned when a REST jmespath projection is invalid or exceeds the expression/output byte limits.
      properties:
        _jmespath_error:
          description: Projection error discriminator and details.
          type: string
        original_keys:
          description: Top-level keys or shape of the unprojected response.
          items:
            type: string
          type: array
      required:
      - _jmespath_error
      - original_keys
      type: object
    ValidationError:
      type: object
      properties:
        violations:
          type: array
          items:
            $ref: '#/components/schemas/FieldViolation'
          description: List of validation violations
      required:
      - violations
      description: Is returned when request validation fails. It contains a list of field violations describing what went wrong.
    WM122:
      type: array
      items:
        $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_PriceMover'
    worldmonitor_consumer_prices_v1_CategorySnapshot:
      type: object
      properties:
        slug:
          type: string
          description: slug is the machine-readable category identifier (e.g. "eggs", "rice").
        name:
          type: string
          description: name is the human-readable category label.
        wowPct:
          type: number
          format: double
          description: wow_pct is the week-over-week percentage change.
        momPct:
          type: number
          format: double
          description: mom_pct is the month-over-month percentage change.
        currentIndex:
          type: number
          format: double
          description: current_index is the current price index value (base = 100).
        sparkline:
          type: array
          items:
            type: number
            format: double
            description: sparkline is an ordered sequence of index values for the selected range.
        coveragePct:
          type: number
          format: double
          description: coverage_pct is the percentage of basket items observed for this category.
        itemCount:
          type: integer
          format: int32
          description: item_count is the number of observed products in this category.
      description: Holds price index data for a single product category.
    worldmonitor_consumer_prices_v1_GetConsumerPriceFreshnessResponse:
      type: object
      properties:
        marketCode:
          $ref: '#/components/schemas/WM34'
        asOf:
          $ref: '#/components/schemas/WM17'
        retailers:
          type: array
          items:
            $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_RetailerFreshnessInfo'
        overallFreshnessMin:
          type: integer
          format: int32
          description: overall_freshness_min is the average freshness lag across all retailers.
        stalledCount:
          type: integer
          format: int32
          description: stalled_count is the number of retailers with no recent successful scrape.
        upstreamUnavailable:
          $ref: '#/components/schemas/WM16'
      description: Describes feed health for all retailers.
    FieldViolation:
      type: object
      properties:
        field:
          type: string
          description: The field path that failed validation (e.g., 'user.email' for nested fields). For header validation, this will be the header name (e.g., 'X-API-Key')
        description:
          type: string
          description: Human-readable description of the validation violation (e.g., 'must be a valid email address', 'required field missing')
      required:
      - field
      - description
      description: Describes a single validation error for a specific field.
    GatewayError:
      type: object
      description: Returned by gateway infrastructure errors before an RPC handler runs, such as origin, routing, method, authentication, or quota checks.
      properties:
        error:
          oneOf:
          - type: string
          - type: object
            additionalProperties: true
          description: Gateway error reason or structured gateway failure details.
      required:
      - error
    worldmonitor_consumer_prices_v1_PriceMover:
      type: object
      properties:
        productId:
          type: string
          description: product_id is the retailer product identifier.
        title:
          type: string
          description: title is the normalized product title.
        category:
          type: string
          description: category is the product category slug.
        retailerSlug:
          type: string
          description: retailer_slug identifies the retailer where this move was observed.
        changePct:
          type: number
          format: double
          description: change_pct is the signed percentage change over the selected window.
        currentPrice:
          type: number
          format: double
          description: current_price is the latest observed price.
        currencyCode:
          $ref: '#/components/schemas/WM58'
      description: Describes a product with a notable upward or downward price move.
    WM58:
      type: string
      description: currency_code is the ISO 4217 currency code.
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message (e.g., 'user not found', 'database connection failed')
      description: Is returned when a handler encounters an error. It contains a simple error message that the developer can customize.
    worldmonitor_consumer_prices_v1_BasketPoint:
      type: object
      properties:
        date:
          type: string
          description: date is the ISO 8601 date string (YYYY-MM-DD).
        index:
          type: number
          format: double
          description: index is the basket index value (base = 100).
      description: Is a single data point in a basket index time series.
    WM17:
      type: string
      format: int64
      description: as_of is the Unix millisecond timestamp of the snapshot.
    worldmonitor_consumer_prices_v1_ListConsumerPriceCategoriesResponse:
      type: object
      properties:
        marketCode:
          $ref: '#/components/schemas/WM34'
        asOf:
          $ref: '#/components/schemas/WM17'
        range:
          $ref: '#/components/schemas/WM104'
        categories:
          $ref: '#/components/schemas/WM103'
        upstreamUnavailable:
          $ref: '#/components/schemas/WM16'
      description: Holds category-level price snapshots.
    worldmonitor_consumer_prices_v1_RetailerSpread:
      type: object
      properties:
        slug:
          type: string
          description: slug is the retailer identifier.
        name:
          type: string
          description: name is the retailer display name.
        basketTotal:
          type: number
          format: double
          description: basket_total is the sum of matched basket item prices at this retailer.
        deltaVsCheapest:
          type: number
          format: double
          description: delta_vs_cheapest is the absolute price difference vs the cheapest retailer.
        deltaVsCheapestPct:
          type: number
          format: double
          description: delta_vs_cheapest_pct is the percentage difference vs the cheapest retailer.
        itemCount:
          type: integer
          format: int32
          description: item_count is the number of matched basket items observed.
        freshnessMin:
          type: integer
          format: int32
          description: freshness_min is minutes since the last successful scrape for this retailer.
        currencyCode:
          $ref: '#/components/schemas/WM58'
      description: Holds the basket cost breakdown for one retailer.
    BillingVerificationError:
      type: object
      description: 'Returned with HTTP 503 when paid access cannot be confirmed right now: the billing provider is re-verifying a recently expired subscription, or the entitlement backend is unreachable. Retryable — honor Retry-After.'
      properties:
        error:
          type: string
          description: Human-readable billing-verification failure reason.
        code:
          type: string
          enum:
          - renewal_verification_pending
          - renewal_verification_failed
          - entitlement_verification_unavailable
          description: Machine-readable billing-verification state, mirrored in the X-Billing-Verification response header.
        requiredTier:
          type: integer
          format: int32
          description: Minimum entitlement tier required for this endpoint, when the denial came from a tier gate.
      required:
      - error
      - code
    WM118:
      type: array
      items:
        $ref: '#/components/schemas/worldmonitor_consumer_prices_v1_BasketPoint'
    worldmonitor_consumer_prices_v1_RetailerFreshnessInfo:
      type: object
      properties:
        slug:
          type: string
          description: slug is the retailer identifier.
        name:
          type: string
          description: name is the retailer display name.
        lastRunAt:
          type: string
          format: int64
          description: last_run_at is the Unix millisecond timestamp of the last successful scrape.
        status:
          type: string
          description: status is one of "ok", "stale", "failed", "unknown".
        parseSuccessRate:
          type: number
          format: double
          description: parse_success_rate is the fraction of pages parsed successfully (0–1).
        freshnessMin:
          type: integer
          format: int32
          description: freshness_min is minutes since last successful observation.
      description: Describes the operational health of one retailer feed.
    UnauthorizedError:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
      required:
      - error
      description: Returned when the API key is missing, malformed, or lacks current API access.
    RateLimitError:
      type: object
      description: Returned when a gateway or handler rate limit rejects the request.
      properties:
        error:
          type: string
          description: Human-readable rate-limit failure reason.
      required:
      - error
    worldmonitor_consumer_prices_v1_ListConsumerPriceMoversResponse:
      type: object
      properties:
        marketCode:
          $ref: '#/components/schemas/WM34'
        asOf:
          $ref: '#/components/schemas/WM17'
        range:
          type: string
          description: range echoes the requested range.
        risers:
          $ref: '#/components/schemas/WM122'
        fallers:
          $ref: '#/components/schemas/WM122'
        upstreamUnavailable:
          $ref: '#/components/schemas/WM16'
      description: Holds the top price movers.
  parameters:
    P20:
      name: range
      in: query
      description: range is one of "7d", "30d", "90d". Unsupported values use "30d".
      example: 7d
      schema:
        type: string
    J:
      name: jmespath
      in: query
      description: 'Optional JMESPath expression applied server-side to project or reduce the JSON response before it is returned (mirrors the MCP jmespath argument). Invalid expressions, expressions larger than 1024 UTF-8 bytes, or projections that exceed the 256 KB output cap return HTTP 400 with a {_jmespath_error, original_keys} envelope. Grammar and worked examples: https://www.worldmonitor.app/docs/mcp-jmespath.'
      example: keys(@)
      schema:
        type: string
    P21:
      name: market_code
      in: query
      description: market_code is the ISO 3166-1 alpha-2 market identifier.
      example: US
      schema:
        type: string
  responses:
    '429':
      description: Rate limit exceeded.
      headers:
        X-RateLimit-Limit:
          description: Maximum requests allowed in the active rate-limit window.
          schema:
            type: string
        X-RateLimit-Remaining:
          description: Requests remaining in the active rate-limit window.
          schema:
            type: string
        X-RateLimit-Reset:
          description: Unix epoch milliseconds when the active rate-limit window resets.
          schema:
            type: string
        Retry-After:
          description: Seconds to wait before retrying the request.
          schema:
            type: string
      content:
        application/json:
          schema:
            oneOf:
            - $ref: '#/components/schemas/Error'
            - $ref: '#/components/schemas/RateLimitError'
    '403':
      description: API access requires an active subscription (the API key's subscription is inactive or expired).
      headers:
        X-Billing-Verification:
          $ref: '#/components/headers/XBillingVerification'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenError'
    '400':
      description: Validation error
      content:
        application/json:
          schema:
            oneOf:
            - $ref: '#/components/schemas/ValidationError'
            - $ref: '#/components/schemas/JmespathProjectionError'
    DEF:
      description: Gateway or handler error response.
      content:
        application/json:
          schema:
            oneOf:
            - $ref: '#/components/schemas/Error'
            - $ref: '#/components/schemas/GatewayError'
    '503':
      description: Service unavailable. Billing-verification responses include code and X-Billing-Verification; other gateway infrastructure failures use the generic GatewayError shape.
      headers:
        Retry-After:
          description: Seconds to wait before retrying (1-60).
          schema:
            type: string
        X-Billing-Verification:
          description: Billing-verification state that produced this response (matches the body `code`).
          schema:
            type: string
        X-Validation-Mode:
          description: Present with value degraded when user API-key validation is temporarily unavailable.
          schema:
            type: string
        X-RateLimit-Mode:
          description: Present with value degraded when a fail-closed rate-limit dependency is unavailable.
          schema:
            type: string
      content:
        application/json:
          schema:
            oneOf:
            - $ref: '#/components/schemas/BillingVerificationError'
            - $ref: '#/components/schemas/GatewayError'
    '401':
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedError'
  headers:
    XBillingVerification:
      description: Present when the 403 is a provider-confirmed billing denial; same value as the body `code`.
      schema:
        type: string
  securitySchemes:
    WorldMonitorKey:
      type: apiKey
      in: header
      name: X-WorldMonitor-Key
      description: User-issued WorldMonitor API key.
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Alias header for the WorldMonitor API key (X-WorldMonitor-Key).
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer token: a Clerk-issued JWT for browser session flows, passed as Authorization: Bearer <token>.'