Polyform Geo API

The geo API from Polyform — 17 operation(s) for geo.

GitHub OpenAPI

Operations 17

GET /v1/geo/geocode US address geocoding (Census) — US street address to coordinates plus… #
GET /v1/geo/reverse US reverse geocoding (Census) — Coordinates to US state, county, tract and… #
GET /v1/geo/location-brief Location brief (bundle) — One call for a US place — pass an address OR lat+lon… #
GET /v1/geo/earthquakes Seismic risk brief (bundle) — One call for a US point (address or lat+lon)… #
GET /v1/geo/coords Coordinate format converter — Convert any coordinate between decimal degrees… #
GET /v1/geo/district Congressional, legislative & census districts for a US address — Every… #
GET /v1/geo/elevation Elevation at a point (US) — Ground elevation in meters and feet for any US… #
GET /v1/geo/geocode-batch Batch US address geocoder (up to 10) — Geocode up to 10 one-line US street… #
GET /v1/geo/river-levels River and stream levels (US) — Live readings from USGS stream gauges near a US… #
GET /v1/geo/sun Sunrise and sunset times — Sunrise, sunset, solar noon, civil dawn and dusk… #
GET /v1/geo/county US county and FIPS lookup — Convert US coordinates to the county, state, and… #
GET /v1/geo/disasters US disaster declaration history — FEMA federal disaster declarations for a US… #
GET /v1/geo/zip Postal code lookup (60+ countries) — Look up a ZIP or postal code: place name… #
GET /v1/geo/distance Distance and bearing between coordinates — Great-circle distance (km, miles… #
GET /v1/geo/country Country facts — Country facts by name or ISO code: ISO codes, capital, region… #
GET /v1/geo/severe-weather-scan Severe weather scan (bundle) — One call: active NWS watches/warnings/advisories… #

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-geo-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-geo-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Polyform — machine-payable data Geo 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: Geo
paths:
  /v1/geo/geocode:
    get:
      operationId: v1_geo_geocode
      summary: US address geocoding (Census) — US street address to coordinates plus…
      tags:
      - Geo
      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:
                  matched:
                    type: string
                  lat:
                    type: number
                  lon:
                    type: number
              example:
                matched: 4600 SILVER HILL RD, WASHINGTON, DC, 20233
                lat: 38.845985
                lon: -76.9274
        '402':
          description: Payment Required
      parameters:
      - name: address
        in: query
        required: true
        description: one-line US address
        schema:
          type: string
  /v1/geo/reverse:
    get:
      operationId: v1_geo_reverse
      summary: US reverse geocoding (Census) — Coordinates to US state, county, tract and…
      tags:
      - Geo
      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:
                  state:
                    type: string
                  county:
                    type: string
                  tract:
                    type: string
              example:
                state: Tennessee
                county: Davidson County
                tract: '016300'
        '402':
          description: Payment Required
      parameters:
      - name: lat
        in: query
        required: true
        description: latitude
        schema:
          type: string
      - name: lon
        in: query
        required: true
        description: longitude
        schema:
          type: string
  /v1/geo/location-brief:
    get:
      operationId: v1_geo_location_brief
      summary: Location brief (bundle) — One call for a US place — pass an address OR lat+lon…
      tags:
      - Geo
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.020000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  location:
                    type: string
                  county:
                    type: string
                  current:
                    type: object
                  activeAlerts:
                    type: number
              example:
                location: Nashville, TN
                county: Davidson County
                current:
                  tempF: 72
                activeAlerts: 0
        '402':
          description: Payment Required
      parameters:
      - name: address
        in: query
        required: true
        description: US address (or use lat+lon)
        schema:
          type: string
      - name: lat
        in: query
        required: false
        description: optional latitude
        schema:
          type: string
      - name: lon
        in: query
        required: false
        description: optional longitude
        schema:
          type: string
  /v1/geo/earthquakes:
    get:
      operationId: v1_geo_earthquakes
      summary: Seismic risk brief (bundle) — One call for a US point (address or lat+lon)…
      tags:
      - Geo
      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:
                  query:
                    type: string
                  count:
                    type: number
                  maxMagnitude:
                    type: number
                  seismicRisk:
                    type: string
                  quakes:
                    type: array
                    items: {}
              example:
                query: Los Angeles, CA
                count: 12
                maxMagnitude: 4.2
                seismicRisk: MODERATE
                quakes: []
        '402':
          description: Payment Required
      parameters:
      - name: address
        in: query
        required: true
        description: address (or use lat+lon)
        schema:
          type: string
      - name: lat
        in: query
        required: false
        description: optional latitude
        schema:
          type: string
      - name: lon
        in: query
        required: false
        description: optional longitude
        schema:
          type: string
      - name: radiusKm
        in: query
        required: false
        description: optional radius km (default 250)
        schema:
          type: string
      - name: days
        in: query
        required: false
        description: optional lookback days (default 90)
        schema:
          type: string
  /v1/geo/coords:
    get:
      operationId: v1_geo_coords
      summary: Coordinate format converter — Convert any coordinate between decimal degrees…
      tags:
      - Geo
      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:
                  input:
                    type: object
                  lat:
                    type: number
                  lon:
                    type: number
                  formats:
                    type: object
              example:
                input:
                  type: dms
                lat: 36.162694
                lon: -86.781611
                formats:
                  decimal: 36.162694, -86.781611
                  dms: 36°09'45.70"N 86°46'53.80"W
                  ddm: 36° 9.7617' N, 86° 46.8967' W
                  utm: 16S 519642mE 4002016mN
                  mgrs: 16S EF 19642 02015
                  geohash: dn6m9ppwc
                  plusCode: 868M5679+39
        '402':
          description: Payment Required
      parameters:
      - name: q
        in: query
        required: true
        description: 36°09'45.7"N 86°46'53.8"W
        schema:
          type: string
  /v1/geo/district:
    get:
      operationId: v1_geo_district
      summary: Congressional, legislative & census districts for a US address — Every…
      tags:
      - Geo
      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:
                  state:
                    type: object
                  congressionalDistrict:
                    type: object
                  stateSenateDistrict:
                    type: object
                  stateHouseDistrict:
                    type: object
                  county:
                    type: object
                  tract:
                    type: object
              example:
                state:
                  name: Tennessee
                  abbr: TN
                  fips: '47'
                congressionalDistrict:
                  name: Congressional District 6
                  geoid: '4706'
                  congress: 120th
                stateSenateDistrict:
                  name: State Senate District 21
                stateHouseDistrict:
                  name: State House District 51
                county:
                  name: Davidson County
                  geoid: '47037'
                tract:
                  name: Census Tract 142
        '402':
          description: Payment Required
      parameters:
      - name: address
        in: query
        required: true
        description: US street address, e.g. 600 Pennsylvania Ave NW, Washington DC (or lat+lon, or place)
        schema:
          type: string
      - name: lat
        in: query
        required: false
        description: latitude (optional)
        schema:
          type: string
      - name: lon
        in: query
        required: false
        description: longitude (optional)
        schema:
          type: string
  /v1/geo/elevation:
    get:
      operationId: v1_geo_elevation
      summary: Elevation at a point (US) — Ground elevation in meters and feet for any US…
      tags:
      - Geo
      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:
                  lat:
                    type: number
                  lon:
                    type: number
                  place:
                    type: string
                  elevationMeters:
                    type: number
                  elevationFeet:
                    type: number
                  resolutionMeters:
                    type: number
                  belowSeaLevel:
                    type: boolean
                  source:
                    type: string
              example:
                lat: 36.1627
                lon: -86.7816
                place: null
                elevationMeters: 141.6
                elevationFeet: 464.7
                resolutionMeters: 1
                belowSeaLevel: false
                source: USGS Elevation Point Query Service (3D Elevation Program, public domain)
        '402':
          description: Payment Required
      parameters:
      - name: lat
        in: query
        required: true
        description: '36.1627'
        schema:
          type: string
      - name: lon
        in: query
        required: true
        description: '-86.7816'
        schema:
          type: string
      - name: place
        in: query
        required: false
        description: optional place name instead of lat/lon
        schema:
          type: string
  /v1/geo/geocode-batch:
    get:
      operationId: v1_geo_geocode_batch
      summary: Batch US address geocoder (up to 10) — Geocode up to 10 one-line US street…
      tags:
      - Geo
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.010000'
        protocols:
        - x402: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: number
                  matched:
                    type: number
                  byStatus:
                    type: object
                  results:
                    type: array
                    items: {}
                  centroid:
                    type: object
                  farthestPair:
                    type: object
              example:
                count: 2
                matched: 2
                byStatus:
                  MATCH: 2
                results:
                - input: 1600 Pennsylvania Ave NW, Washington, DC 20500
                  status: MATCH
                  matched: 1600 PENNSYLVANIA AVE NW, WASHINGTON, DC, 20500
                  lat: 38.898703
                  lon: -77.035189
                  city: WASHINGTON
                  state: DC
                  zip: '20500'
                  candidates: 1
                  alternatives: []
                centroid:
                  lat: 38.87234
                  lon: -76.98131
                farthestPair:
                  miles: 3.6
                  between:
                  - 1600 Pennsylvania Ave NW, Washington, DC 20500
                  - 4600 Silver Hill Rd, Washington, DC 20233
        '402':
          description: Payment Required
      parameters:
      - name: addresses
        in: query
        required: true
        description: 1600 Pennsylvania Ave NW, Washington, DC 20500|4600 Silver Hill Rd, Washington, DC 20233
        schema:
          type: string
  /v1/geo/river-levels:
    get:
      operationId: v1_geo_river_levels
      summary: River and stream levels (US) — Live readings from USGS stream gauges near a US…
      tags:
      - Geo
      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:
                  count:
                    type: number
                  gauges:
                    type: array
                    items: {}
              example:
                count: 1
                gauges:
                - site: '03431500'
                  name: CUMBERLAND RIVER AT NASHVILLE, TN
                  streamflowCfs: 18500
                  gageHeightFt: 12.3
                  distanceMiles: 0.8
        '402':
          description: Payment Required
      parameters:
      - name: place
        in: query
        required: true
        description: US place name (or use lat/lon or site)
        schema:
          type: string
      - name: lat
        in: query
        required: true
        description: latitude
        schema:
          type: string
      - name: lon
        in: query
        required: true
        description: longitude
        schema:
          type: string
      - name: site
        in: query
        required: false
        description: optional USGS site number
        schema:
          type: string
  /v1/geo/search:
    get:
      operationId: v1_geo_search
      summary: Place search (worldwide) — Resolve a place name to coordinates anywhere in the…
      tags:
      - Geo
      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:
                  query:
                    type: string
                  count:
                    type: number
                  results:
                    type: array
                    items: {}
              example:
                query: Tokyo
                count: 1
                results:
                - name: Tokyo
                  description: Capital and most populous city of Japan
                  latitude: 35.6897
                  longitude: 139.6922
        '402':
          description: Payment Required
      parameters:
      - name: q
        in: query
        required: true
        description: place name, e.g. Nashville or Mount Fuji
        schema:
          type: string
  /v1/geo/sun:
    get:
      operationId: v1_geo_sun
      summary: Sunrise and sunset times — Sunrise, sunset, solar noon, civil dawn and dusk…
      tags:
      - Geo
      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:
                  days:
                    type: array
                    items: {}
              example:
                days:
                - date: '2026-11-19'
                  sunrise: '2026-11-19T12:27:10.000Z'
                  sunset: '2026-11-19T22:36:02.000Z'
                  daylightHours: 10.15
        '402':
          description: Payment Required
      parameters:
      - name: lat
        in: query
        required: true
        description: latitude (or use place)
        schema:
          type: string
      - name: lon
        in: query
        required: true
        description: longitude
        schema:
          type: string
      - name: place
        in: query
        required: false
        description: optional place name
        schema:
          type: string
      - name: date
        in: query
        required: false
        description: optional YYYY-MM-DD (default today)
        schema:
          type: string
      - name: days
        in: query
        required: false
        description: optional 1-14 (default 1)
        schema:
          type: string
  /v1/geo/county:
    get:
      operationId: v1_geo_county
      summary: US county and FIPS lookup — Convert US coordinates to the county, state, and…
      tags:
      - Geo
      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:
                  county:
                    type: string
                  countyFips:
                    type: string
                  state:
                    type: string
                  stateCode:
                    type: string
                  censusTractFips:
                    type: string
              example:
                county: Davidson County
                countyFips: '47037'
                state: Tennessee
                stateCode: TN
                censusTractFips: '47037019503'
        '402':
          description: Payment Required
      parameters:
      - name: lat
        in: query
        required: true
        description: latitude
        schema:
          type: string
      - name: lon
        in: query
        required: true
        description: longitude
        schema:
          type: string
  /v1/geo/disasters:
    get:
      operationId: v1_geo_disasters
      summary: US disaster declaration history — FEMA federal disaster declarations for a US…
      tags:
      - Geo
      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:
                  state:
                    type: string
                  declarationsFound:
                    type: number
                  last5Years:
                    type: number
                  byIncidentType:
                    type: object
                  recent:
                    type: array
                    items: {}
              example:
                state: TN
                declarationsFound: 14
                last5Years: 9
                byIncidentType:
                  Severe Storm: 6
                  Tornado: 3
                recent:
                - title: SEVERE STORMS AND TORNADOES
                  declared: '2026-04-02'
        '402':
          description: Payment Required
      parameters:
      - name: state
        in: query
        required: true
        description: 2-letter US state
        schema:
          type: string
      - name: county
        in: query
        required: false
        description: optional county name
        schema:
          type: string
  /v1/geo/zip:
    get:
      operationId: v1_geo_zip
      summary: 'Postal code lookup (60+ countries) — Look up a ZIP or postal code: place name…'
      tags:
      - Geo
      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:
                  postalCode:
                    type: string
                  countryCode:
                    type: string
                  places:
                    type: array
                    items: {}
              example:
                postalCode: '37201'
                countryCode: US
                places:
                - place: Nashville
                  state: Tennessee
                  stateCode: TN
                  latitude: 36.1657
                  longitude: -86.7781
        '402':
          description: Payment Required
      parameters:
      - name: zip
        in: query
        required: true
        description: postal code
        schema:
          type: string
      - name: country
        in: query
        required: false
        description: optional ISO-2 country, default US
        schema:
          type: string
  /v1/geo/distance:
    get:
      operationId: v1_geo_distance
      summary: Distance and bearing between coordinates — Great-circle distance (km, miles…
      tags:
      - Geo
      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:
                  km:
                    type: number
                  miles:
                    type: number
                  nauticalMiles:
                    type: number
                  initialBearing:
                    type: number
                  compass:
                    type: string
              example:
                km: 3935.746
                miles: 2445.559
                nauticalMiles: 2125.13
                initialBearing: 273.7
                compass: W
        '402':
          description: Payment Required
      parameters:
      - name: lat1
        in: query
        required: true
        description: origin latitude
        schema:
          type: string
      - name: lon1
        in: query
        required: true
        description: origin longitude
        schema:
          type: string
      - name: lat2
        in: query
        required: true
        description: destination latitude
        schema:
          type: string
      - name: lon2
        in: query
        required: true
        description: destination longitude
        schema:
          type: string
  /v1/geo/country:
    get:
      operationId: v1_geo_country
      summary: 'Country facts — Country facts by name or ISO code: ISO codes, capital, region…'
      tags:
      - Geo
      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:
                  name:
                    type: string
                  iso2:
                    type: string
                  iso3:
                    type: string
                  capital:
                    type: string
                  region:
                    type: string
                  incomeLevel:
                    type: string
                  population:
                    type: object
                  gdpPerCapitaUsd:
                    type: object
              example:
                name: Japan
                iso2: JP
                iso3: JPN
                capital: Tokyo
                region: East Asia and Pacific
                incomeLevel: High income
                population:
                  value: 123975371
                  year: '2024'
                gdpPerCapitaUsd:
                  value: 32476
                  year: '2024'
        '402':
          description: Payment Required
      parameters:
      - name: q
        in: query
        required: true
        description: country name or ISO 2/3-letter code
        schema:
          type: string
  /v1/geo/severe-weather-scan:
    get:
      operationId: v1_geo_severe_weather_scan
      summary: 'Severe weather scan (bundle) — One call: active NWS watches/warnings/advisories…'
      tags:
      - Geo
      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:
                  verdict:
                    type: string
                  activeAlerts:
                    type: number
                  highestSeverity:
                    type: string
              example:
                verdict: MONITOR
                activeAlerts: 2
                highestSeverity: Moderate
        '402':
          description: Payment Required
      parameters:
      - name: state
        in: query
        required: true
        description: US state code, e.g. TN
        schema:
          type: string
      - name: lat
        in: query
        required: true
        description: latitude (alternative to state)
        schema:
          type: string
      - name: lon
        in: query
        required: true
        description: longitude (alternative to state)
        schema:
          type: string