United States Census Bureau Geographic Services API

Geocoding and geographic boundary services

Operations 2

GET /geocoder/locations/onelineaddress Geocode One-Line Address #
GET /geocoder/locations/address Geocode Structured Address #

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/united-states-census-bureau-geographic-services-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

united-states-census-bureau-geographic-services-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Census Data Geographic Services API
  description: The United States Census Bureau Data API provides programmatic access to statistical data from Census Bureau surveys and datasets.
  version: 2.0.0
  contact:
    name: Census Developer Forum
    url: https://www.census.gov/data/developers.html
    email: cnmp.developers.list@census.gov
  x-tags:
  - Demographics
  - Federal Government
  - Open Data
  - Statistics
servers:
- url: https://api.census.gov/data
  description: Census Data API
tags:
- name: Geographic Services
  description: Geocoding and geographic boundary services
paths:
  /geocoder/locations/onelineaddress:
    get:
      operationId: geocodeOnelineAddress
      summary: Geocode One-Line Address
      description: Converts a one-line address string to geographic coordinates and census geography identifiers (state, county, tract, block FIPS codes).
      tags:
      - Geographic Services
      parameters:
      - name: address
        in: query
        required: true
        description: Full address as a single string (e.g., "4600 Silver Hill Rd, Washington DC 20233")
        schema:
          type: string
      - name: benchmark
        in: query
        required: true
        description: The geocoding benchmark to use (e.g., Public_AR_Current, Public_AR_Census2020)
        schema:
          type: string
          default: Public_AR_Current
      - name: vintage
        in: query
        required: false
        description: Geographic vintage for returned geography identifiers (e.g., Current_Current, Census2020_Census2020)
        schema:
          type: string
      - name: format
        in: query
        required: false
        description: Response format
        schema:
          type: string
          enum:
          - json
      - name: layers
        in: query
        required: false
        description: Geographic layers to include in the response
        schema:
          type: string
      responses:
        '200':
          description: Geocoding result with coordinates and census geography
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeocodeResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
  /geocoder/locations/address:
    get:
      operationId: geocodeAddress
      summary: Geocode Structured Address
      description: Converts a structured address (street, city, state, ZIP) to geographic coordinates and census geography identifiers.
      tags:
      - Geographic Services
      parameters:
      - name: street
        in: query
        required: true
        description: Street address (e.g., "4600 Silver Hill Rd")
        schema:
          type: string
      - name: city
        in: query
        required: false
        description: City name
        schema:
          type: string
      - name: state
        in: query
        required: false
        description: Two-character state abbreviation or FIPS code
        schema:
          type: string
      - name: zip
        in: query
        required: false
        description: Five-digit ZIP code
        schema:
          type: string
      - name: benchmark
        in: query
        required: true
        description: Geocoding benchmark to use
        schema:
          type: string
          default: Public_AR_Current
      - name: vintage
        in: query
        required: false
        description: Geographic vintage for returned geography identifiers
        schema:
          type: string
      - name: format
        in: query
        required: false
        description: Response format
        schema:
          type: string
          enum:
          - json
      responses:
        '200':
          description: Geocoding result with coordinates and census geography
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeocodeResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    GeocodeAddressMatch:
      type: object
      properties:
        tigerLineId:
          type: string
          description: TIGER/Line ID of the matched road segment
        side:
          type: string
          description: Side of the road (L or R)
        matchedAddress:
          type: string
          description: Standardized matched address string
        coordinates:
          $ref: '#/components/schemas/GeocodeCoordinates'
        addressComponents:
          type: object
          description: Parsed address components
    GeocodeResponse:
      type: object
      properties:
        result:
          type: object
          properties:
            input:
              type: object
              description: The input address that was geocoded
            addressMatches:
              type: array
              description: Array of matched addresses
              items:
                $ref: '#/components/schemas/GeocodeAddressMatch'
    GeocodeCoordinates:
      type: object
      properties:
        x:
          type: number
          format: double
          description: Longitude
        y:
          type: number
          format: double
          description: Latitude
  responses:
    BadRequest:
      description: Bad request — invalid parameters, missing required fields, or variable not found
      content:
        text/html:
          schema:
            type: string
externalDocs:
  description: Census Data API User Guide
  url: https://www.census.gov/data/developers/guidance/api-user-guide.html