Polyform Econ API

The econ API from Polyform — 10 operation(s) for econ.

GitHub OpenAPI

Operations 10

GET /v1/econ/worldbank World Bank indicator lookup — Latest value of any World Bank indicator for a… #
GET /v1/econ/federal-budget US federal budget (Monthly Treasury Statement) — US federal receipts, outlays… #
GET /v1/econ/treasury-cash Treasury Daily Cash (TGA) — U.S. #
GET /v1/econ/indicators World Bank indicator search — Search the ~1,500 World Development Indicators by… #
GET /v1/econ/treasury-interest Average interest rate on US federal debt — The average interest rate the US… #
GET /v1/econ/country-rank Rank all countries by an indicator (World Bank) — Ranks every country by a… #
GET /v1/econ/inflation-calc Inflation calculator (any country) — What an amount of money from one year is… #
GET /v1/econ/us-debt US national debt — Official US national debt to the penny from the Treasury… #
GET /v1/econ/country-snapshot Country economic snapshot (bundle) — One call: a country's key economic… #
GET /v1/econ/compare-countries Compare countries (bundle) — One call: two countries' key economics side by… #

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/polyform-org:polyform-org-econ-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

polyform-org-econ-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Polyform — machine-payable data Econ API
  version: 1.0.0
  description: Pay-per-call data endpoints for AI agents. USDC on Base via x402. No account, no API key — one micropayment per call.
  x-guidance: 'Polyform sells single-answer data lookups priced per call. GET the catalog at / for the full list. Categories: vehicle (VIN decode, recalls, deal verdict, fuel economy), domain & email intelligence, SEC/EDGAR company facts & filing search, FDA recalls & drug labels, US weather (forecast, hourly, alerts, aviation METAR, travel-risk), geocoding, IP network & threat reputation, World Bank indicators, and an LLM inference gateway. Each call returns a 402 with x402 payment requirements; pay in USDC on Base and retry. All data derives from public/government sources or first-party telemetry.'
servers:
- url: https://api.polyform.org
tags:
- name: econ
paths:
  /v1/econ/worldbank:
    get:
      operationId: v1_econ_worldbank
      summary: World Bank indicator lookup — Latest value of any World Bank indicator for a…
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  country:
                    type: string
                  indicator:
                    type: string
                  value:
                    type: number
                  year:
                    type: number
              example:
                country: United States
                indicator: GDP (current US$)
                value: 29000000000000
                year: 2025
        '402':
          description: Payment Required
      parameters:
      - name: country
        in: query
        required: true
        description: ISO2/ISO3 code e.g. US
        schema:
          type: string
      - name: indicator
        in: query
        required: true
        description: e.g. NY.GDP.MKTP.CD
        schema:
          type: string
  /v1/econ/federal-budget:
    get:
      operationId: v1_econ_federal_budget
      summary: US federal budget (Monthly Treasury Statement) — US federal receipts, outlays…
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.003000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  asOf:
                    type: string
                  summary:
                    type: string
                  latestMonth:
                    type: object
                  comparison:
                    type: object
                  trailing12Months:
                    type: object
              example:
                asOf: '2026-10-31'
                summary: 'Latest month 2026-10: deficit $404.1B. FY2027 to date (1 mo): deficit $404.1B (+42.1% vs same period FY2026). FY2026 full year: deficit $1992.6B. Trailing 12 months: deficit $2112.3B'
                latestMonth:
                  month: October
                  calendarMonth: 2026-10
                  receiptsB: 368.9
                  outlaysB: 773
                  deficitB: 404.1
                  surplus: false
                comparison:
                  changePct:
                    receipts: -8.8
                    outlays: 12.2
                    deficit: 42.1
                trailing12Months:
                  from: 2025-11
                  to: 2026-10
                  deficitB: 2112.3
        '402':
          description: Payment Required
  /v1/econ/treasury-cash:
    get:
      operationId: v1_econ_treasury_cash
      summary: Treasury Daily Cash (TGA) — U.S.
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.003000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  date:
                    type: string
                  units:
                    type: string
                  tga:
                    type: object
                  monthToDate:
                    type: object
                  publicDebt:
                    type: object
                  topWithdrawals:
                    type: array
                    items: {}
                  trend:
                    type: array
                    items: {}
                  signals:
                    type: array
                    items: {}
              example:
                date: '2026-11-19'
                units: USD billions (source reports millions)
                tga:
                  openingBillions: 892.31
                  depositsBillions: 303.65
                  withdrawalsBillions: 304.74
                  closingBillions: 891.22
                  changeBillions: -1.09
                  direction: DRAWDOWN
                monthToDate:
                  openingBillions: 951.59
                  depositsBillions: 2521.63
                  withdrawalsBillions: 2582
                  netBillions: -60.37
                publicDebt:
                  issuesTodayBillions: 296.39
                  redemptionsTodayBillions: 285.08
                  netBorrowingTodayBillions: 11.31
                topWithdrawals:
                - category: Dept of Health & Human Serv (HHS) - Medicare
                  todayBillions: 4.1
                trend:
                - date: '2026-11-19'
                  closingBillions: 891.22
                  changeBillions: -1.09
                signals: []
        '402':
          description: Payment Required
  /v1/econ/indicators:
    get:
      operationId: v1_econ_indicators
      summary: World Bank indicator search — Search the ~1,500 World Development Indicators by…
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.002000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  query:
                    type: string
                  matches:
                    type: number
                  indicators:
                    type: array
                    items: {}
              example:
                query: unemployment
                matches: 12
                indicators:
                - id: SL.UEM.TOTL.ZS
                  name: Unemployment, total (% of total labor force) (modeled ILO estimate)
                  topics:
                  - Labor
                  lookup: /v1/econ/worldbank?country=US&indicator=SL.UEM.TOTL.ZS
        '402':
          description: Payment Required
      parameters:
      - name: q
        in: query
        required: true
        description: keyword, e.g. unemployment or co2 emissions
        schema:
          type: string
      - name: topic
        in: query
        required: false
        description: optional topic, e.g. health
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: 1-50 (default 15)
        schema:
          type: string
  /v1/econ/treasury-interest:
    get:
      operationId: v1_econ_treasury_interest
      summary: Average interest rate on US federal debt — The average interest rate the US…
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.002000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  asOf:
                    type: string
                  count:
                    type: number
                  headline:
                    type: object
                  rows:
                    type: array
                    items: {}
              example:
                asOf: '2026-10-31'
                count: 1
                headline:
                  totalMarketablePct: 3.57
                  totalInterestBearingPct: 3.36
                rows:
                - type: Marketable
                  security: Treasury Bills
                  avgRatePct: 4.014
                  monthAgoPct: 4.05
                  yearAgoPct: 4.6
                  changeYoYPts: -0.586
        '402':
          description: Payment Required
      parameters:
      - name: q
        in: query
        required: false
        description: optional security filter, e.g. bills, notes, tips
        schema:
          type: string
      - name: type
        in: query
        required: false
        description: optional marketable or non-marketable
        schema:
          type: string
  /v1/econ/country-rank:
    get:
      operationId: v1_econ_country_rank
      summary: Rank all countries by an indicator (World Bank) — Ranks every country by a…
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.004000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  indicator:
                    type: object
                  countries:
                    type: number
                  stats:
                    type: object
                  focus:
                    type: object
                  ranked:
                    type: array
                    items: {}
              example:
                indicator:
                  code: FP.CPI.TOTL.ZG
                  name: Inflation, consumer prices (annual %)
                countries: 180
                stats:
                  median: 3.1
                focus:
                  country: United States
                  rank: 120
                  of: 180
                  value: 2.9
                ranked:
                - rank: 1
                  country: Argentina
                  iso3: ARG
                  value: 219.9
                  year: '2024'
        '402':
          description: Payment Required
      parameters:
      - name: indicator
        in: query
        required: true
        description: gdp | gdp-per-capita | gdp-growth | population | inflation | unemployment | life-expectancy | govt-debt | internet | fertility ... or a World Bank code like NY.GDP.MKTP.CD
        schema:
          type: string
      - name: order
        in: query
        required: false
        description: desc (default) | asc
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: 1-100, default 20
        schema:
          type: string
      - name: region
        in: query
        required: false
        description: optional, e.g. Europe
        schema:
          type: string
      - name: income
        in: query
        required: false
        description: optional, e.g. high income
        schema:
          type: string
      - name: country
        in: query
        required: false
        description: optional ISO code or name to locate, e.g. US
        schema:
          type: string
  /v1/econ/inflation-calc:
    get:
      operationId: v1_econ_inflation_calc
      summary: Inflation calculator (any country) — What an amount of money from one year is…
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.002000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  country:
                    type: object
                  amount:
                    type: number
                  from:
                    type: number
                  to:
                    type: number
                  equivalent:
                    type: number
                  cumulativeInflationPct:
                    type: number
                  averageAnnualPct:
                    type: number
                  purchasingPowerChangePct:
                    type: number
                  highestInflationYear:
                    type: object
              example:
                country:
                  code: US
                  name: United States
                amount: 100
                from: 1990
                to: 2024
                equivalent: 240.6
                cumulativeInflationPct: 140.6
                averageAnnualPct: 2.62
                purchasingPowerChangePct: -58.4
                highestInflationYear:
                  year: 2022
                  pct: 8
        '402':
          description: Payment Required
      parameters:
      - name: amount
        in: query
        required: true
        description: e.g. 100
        schema:
          type: string
      - name: from
        in: query
        required: true
        description: year, e.g. 1990
        schema:
          type: string
      - name: to
        in: query
        required: false
        description: optional year (default latest available)
        schema:
          type: string
      - name: country
        in: query
        required: false
        description: ISO2 or ISO3, default US
        schema:
          type: string
  /v1/econ/us-debt:
    get:
      operationId: v1_econ_us_debt
      summary: US national debt — Official US national debt to the penny from the Treasury…
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.002000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  asOf:
                    type: string
                  totalTrillionsUsd:
                    type: number
                  changeSinceAboutAYearAgo:
                    type: object
              example:
                asOf: '2026-11-16'
                totalTrillionsUsd: 38.9
                changeSinceAboutAYearAgo:
                  pct: 7.4
        '402':
          description: Payment Required
  /v1/econ/country-snapshot:
    get:
      operationId: v1_econ_country_snapshot
      summary: 'Country economic snapshot (bundle) — One call: a country''s key economic…'
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.030000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  country:
                    type: string
                  indicators:
                    type: object
              example:
                country: United States
                indicators:
                  gdpUSD:
                    value: 0
                    year: 2024
        '402':
          description: Payment Required
      parameters:
      - name: country
        in: query
        required: true
        description: ISO2 or ISO3 country code, e.g. US or USA
        schema:
          type: string
  /v1/econ/compare-countries:
    get:
      operationId: v1_econ_compare_countries
      summary: 'Compare countries (bundle) — One call: two countries'' key economics side by…'
      tags:
      - econ
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.040000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  a:
                    type: object
                  b:
                    type: object
                  comparison:
                    type: object
              example:
                a:
                  iso: US
                b:
                  iso: CN
                comparison: {}
        '402':
          description: Payment Required
      parameters:
      - name: a
        in: query
        required: true
        description: first ISO country code, e.g. US
        schema:
          type: string
      - name: b
        in: query
        required: true
        description: second ISO country code, e.g. CN
        schema:
          type: string