# FRED — Get Series Categories

Find categories for a FRED economic series via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by FRED, pass parameters such as file_type, series_id, and retrieve structured data including category identifier, category name, and parent category identifier for dataset breadcrumbs, and related dataset browsing, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/fred/fred-get-series-categories/d5e73497-ead5-412d-96ce-f26d6048d585/
API ID: d5e73497-ead5-412d-96ce-f26d6048d585
Provider: fred
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/fred/fred/series/categories
Page update time: 2026-12-03T02:49:03.437Z
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:49:02.011Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## FRED Series Categories API

Send series\_id and file\_type=json to retrieve the categories associated with a series. Each category has id, name and parent\_id. Optional real-time bounds select the information period; use category endpoints to continue through the hierarchy or discover other series.

## What You Can Build

- **Dataset breadcrumbs**: Connect a series profile to its category hierarchy.
- **Related dataset browsing**: Use category membership to open a category-level series catalogue.

## Returned Data

| Field | Meaning |
| --- | --- |
| `categories[].id` | Category identifier |
| `categories[].name` | Category name |
| `categories[].parent_id` | Parent category identifier |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FRED — Get Series Categories 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": {
        "file_type": {
          "type": "string",
          "description": "A key or file extension that indicates the type of file to send.\n\nstring, optional, default: xml\n\nOne of the following values: 'xml', 'json'\n\nxml = Extensible Markup Language.  The HTTP Content-Type is text/xml.\n\njson = JavaScript Object Notation.  The HTTP Content-Type is application/json.\nOpenAny import profile requires json explicitly; original XML/download formats remain in official documentation.",
          "enum": [
            "json"
          ]
        },
        "series_id": {
          "type": "string",
          "description": "The id for a series.\n\nstring, required"
        },
        "realtime_start": {
          "type": "string",
          "description": "The start of the real-time period.  For more information, see Real-Time Periods.\n\nYYYY-MM-DD formatted string, optional, default: today's date"
        },
        "realtime_end": {
          "type": "string",
          "description": "The end of the real-time period.  For more information, see Real-Time Periods.\n\nYYYY-MM-DD formatted string, optional, default: today's date"
        }
      },
      "required": [
        "file_type",
        "series_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

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

## Request example
Scenario: Official example · Official example (not executed) (HTTP assumed
```bash
curl \
  'https://api.openany.si/v1/agent-apis/fred/fred/series/categories?file_type=json&series_id=EXJPUS' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Configured HTTP 200; actual status is unverified.
```json
{
  "categories": [
    {
      "id": 95,
      "name": "Monthly Rates",
      "parent_id": 15
    },
    {
      "id": 275,
      "name": "Japan",
      "parent_id": 158
    }
  ]
}
```

## 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 identifier does this lookup accept?
Provide the FRED series_id string. The returned category id is a different identifier used by category endpoints.

### Can a series belong to several categories?
The response is a categories array. Process every returned category rather than assuming one category per series.

### How can I find sibling datasets?
Pass a returned category id to Series in Category to list other series in that category.

### Does parent_id describe a parent series?
No. It identifies the parent category in FRED's category hierarchy.

### Can I request XML through this implementation?
Use file_type=json. This OpenAny implementation accepts JSON output; the upstream service's XML option is outside this request contract.

### 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-series-categories/d5e73497-ead5-412d-96ce-f26d6048d585/

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