FRED Shapes API

GeoJSON shape files for state, county, MSA, country, and census-tract geographies.

Operations 1

GET /shapes/file FRED Get GeoJSON Shape Files for a Geographic Type #

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/fred-shapes-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

fred-shapes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: FRED Maps API (GeoFRED) Categories Shapes API
  version: '1.0'
  description: GeoFRED (the FRED Maps API) exposes geographic / regional views of FRED economic data. Series-group metadata, regional-data lookups across geographies (state, county, MSA, country, census tract, etc.), and GeoJSON shape files for cartographic rendering of FRED indicators.
  contact:
    name: Federal Reserve Bank of St. Louis — Research Division
    url: https://fred.stlouisfed.org/docs/api/geofred/
  license:
    name: U.S. Government Work / Public Domain (most series)
    url: https://fred.stlouisfed.org/legal/
  termsOfService: https://fred.stlouisfed.org/legal/
  x-generated-from: documentation
  x-last-validated: '2026-05-28'
servers:
- url: https://api.stlouisfed.org/geofred
  description: Production GeoFRED API
security:
- ApiKeyAuth: []
tags:
- name: Shapes
  description: GeoJSON shape files for state, county, MSA, country, and census-tract geographies.
paths:
  /shapes/file:
    get:
      operationId: getShapeFile
      summary: FRED Get GeoJSON Shape Files for a Geographic Type
      description: Get GeoJSON shape file data for a given geographic type (state, county, msa, country, etc.). Returns coordinates as quantized integers (not WGS84 lat/lon).
      tags:
      - Shapes
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - $ref: '#/components/parameters/FileType'
      - name: shape
        in: query
        required: true
        description: Geographic type — bea, msa, frb, necta, state, country, county, censusregion, censusdivision.
        schema:
          type: string
          enum:
          - bea
          - msa
          - frb
          - necta
          - state
          - country
          - county
          - censusregion
          - censusdivision
        example: state
      responses:
        '200':
          description: GeoJSON shape collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShapeCollection'
              examples:
                Getshapefile200Example:
                  summary: Default getShapeFile 200 response
                  x-microcks-default: true
                  value:
                    shape: state
                    features:
                    - name: California
                      code: '06'
                      centroid: -1219000000,3700000000
                      geometry: '...'
                    - name: Missouri
                      code: '29'
                      centroid: -922000000,3837000000
                      geometry: '...'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    ShapeCollection:
      type: object
      description: A collection of shapes for a geographic type.
      properties:
        shape:
          type: string
          description: The geographic type that was requested.
          example: example
        features:
          type: array
          items:
            $ref: '#/components/schemas/Shape'
      required:
      - features
    Shape:
      type: object
      description: A single GeoJSON-style shape feature.
      properties:
        name:
          type: string
          description: Display name of the region.
          example: Unemployment Rate
        code:
          type: string
          description: Region code (FIPS
          ISO: null
          etc.).: null
          example: example
        centroid:
          type: string
          description: Quantized centroid coordinates.
          example: example
        geometry:
          type: string
          description: Quantized geometry path.
          example: example
      required:
      - name
      - code
  parameters:
    ApiKey:
      name: api_key
      in: query
      required: true
      description: 32-character lower-case alphanumeric FRED API key.
      schema:
        type: string
        pattern: ^[0-9a-f]{32}$
      example: abcdef0123456789abcdef0123456789
    FileType:
      name: file_type
      in: query
      required: false
      description: Response format — json or xml.
      schema:
        type: string
        enum:
        - json
        - xml
        default: json
      example: json
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: api_key
      description: 32-character lower-case alphanumeric FRED API key (same key used for the FRED API).