# FRED — Get Geographic Shape GeoJSON

Retrieve FRED geographic boundary shapes as GeoJSON via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by FRED, pass parameters such as shape, and retrieve structured data including geoJSON collection type, shape collection name, geoJSON feature type, geometry type, and geometry coordinate arrays for boundary layer, and economic map assembly.

Documentation: https://openany.si/fred/fred-get-geographic-shape-geojson/26ccf399-3d58-460b-a678-3636f3de0e36/
API ID: 26ccf399-3d58-460b-a678-3636f3de0e36
Provider: fred
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/fred/geofred/shapes/file
Page update time: 2026-12-03T02:49:00.332Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:48:59.714Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## FRED Geographic Shapes API

Choose the shape query parameter to request a GeoJSON FeatureCollection. Features contain geometry and properties for geographic rendering; this resource supplies boundaries rather than economic observations. The documentation template illustrates structure with an empty coordinate array, so it is not a ready-to-render map dataset.

## What You Can Build

- **Boundary layer**: Load a supported geographic layer into a GeoJSON-capable map renderer.
- **Economic map assembly**: Combine compatible boundary geometry with a separately retrieved regional dataset.

## Returned Data

| Field | Meaning |
| --- | --- |
| `type` | GeoJSON collection type |
| `name` | Shape collection name |
| `features[].type` | GeoJSON feature type |
| `features[].geometry.type` | Geometry type |
| `features[].geometry.coordinates` | Geometry coordinate arrays |
| `features[].properties` | Feature properties |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FRED — Get Geographic Shape GeoJSON request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "shape": {
          "type": "string",
          "description": "The type of shape you want to pull GeoJSON data for.\n\nAvailable Shape Types:\n\nbea (Bureau of Economic Anaylis Region)\n\nmsa (Metropolitan Statistical Area)\n\nfrb (Federal Reserve Bank Districts)\n\nnecta (New England City and Town Area)\n\nstate\n\ncountry\n\ncounty (USA Counties)\n\ncensusregion (US Census Regions)\n\ncensusdivision (US Census Divisons)",
          "enum": [
            "bea",
            "msa",
            "frb",
            "necta",
            "state",
            "country",
            "county",
            "censusregion",
            "censusdivision"
          ]
        }
      },
      "required": [
        "shape"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "features": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "geometry": {
            "type": "object",
            "properties": {
              "coordinates": {
                "type": "array",
                "items": {}
              },
              "type": {
                "type": "string"
              }
            }
          },
          "properties": {
            "type": "object",
            "properties": {}
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Schema template · Documentation template (not executed) (abridge
```bash
curl \
  'https://api.openany.si/v1/agent-apis/fred/geofred/shapes/file?shape=bea' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
{
  "features": [
    {
      "geometry": {
        "coordinates": [],
        "type": "MultiPolygon"
      },
      "properties": {},
      "type": "Feature"
    }
  ],
  "name": "<shape_name>",
  "type": "FeatureCollection"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which shape values are accepted?
Use bea, msa, frb, necta, state, country, county, censusregion or censusdivision as the literal shape value.

### Does this API include economic values?
It returns geographic shapes. Retrieve regional economic values separately, then join them to a compatible geography using the identifiers actually returned.

### Why are the example coordinates empty?
The example is a GeoJSON structure template. Use the coordinates from the actual response when rendering boundaries.

### Do I need to send file_type=json?
No file_type parameter is exposed here. Send the required shape query parameter; this endpoint supplies a GeoJSON shape file.

### Which coordinate payload should I expect?
The documented response is a GeoJSON FeatureCollection. Read each feature's geometry type before interpreting its coordinates, and preserve the supplied nesting for polygons with multiple parts.

### Where can I check the current API call price?
Check the pricing area for the selected API implementation before calling. The displayed billing terms apply to that implementation; retrieving related resources or additional pages requires separate requests.

## Available implementations
- fred: https://openany.si/fred/fred-get-geographic-shape-geojson/26ccf399-3d58-460b-a678-3636f3de0e36/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
