# FRED — Get Category

Look up FRED economic data categories by ID via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by FRED, pass parameters such as category_id, file_type, and retrieve structured data including category identifier, category name, and parent category identifier for category heading, and parent navigation, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/fred/fred-get-category/ea735234-76a3-4fab-94cb-9828bdfd3763/
API ID: ea735234-76a3-4fab-94cb-9828bdfd3763
Provider: fred
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/fred/fred/category
Page update time: 2026-12-03T02:49:00.344Z
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.738Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## FRED Category Lookup API

Send file\_type=json and optionally category\_id. The categories array identifies the requested category with its name and parent\_id; omitting category\_id uses the root category. Retrieve child categories or series through the corresponding category endpoints when expanding the catalogue.

## What You Can Build

- **Category heading**: Display the selected category name above a dataset browser.
- **Parent navigation**: Use parent\_id to connect a category to its parent in your application.

## 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 Category 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"
          ]
        },
        "category_id": {
          "type": "integer",
          "description": "The id for a category.\n\ninteger, default: 0 (root category)"
        }
      },
      "required": [
        "file_type"
      ]
    },
    "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/category?category_id=125&file_type=json' \
  -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": 125,
      "name": "Trade Balance",
      "parent_id": 13
    }
  ]
}
```

## 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
### How do I request the root category?
Omit category_id or set it to 0. Keep the required file_type=json query parameter.

### Does this endpoint return all child categories?
It returns the category record. Use Child Categories with the category identifier to list its children.

### How can I build a parent link?
Read parent_id from the category record and use it in another Category Lookup request. Handle the root category separately in your navigation.

### Will the response include economic observations?
No. It returns category metadata. Use Series in Category to find series identifiers for further data retrieval.

### 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-category/ea735234-76a3-4fab-94cb-9828bdfd3763/

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