# FRED — Get Related Categories

Find categories related to a FRED category 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 related topics, and cross-category exploration, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/fred/fred-get-related-categories/8c5f6e72-5d91-488e-96c3-529799ae20ad/
API ID: 8c5f6e72-5d91-488e-96c3-529799ae20ad
Provider: fred
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/fred/fred/category/related
Page update time: 2026-12-03T02:49:00.367Z
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.791Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## FRED Related Categories API

Send category\_id and file\_type=json, with optional real-time date bounds. The categories array describes related categories, each with an identifier, name and parent\_id. Related categories provide catalogue cross-links and are distinct from the immediate children returned by Child Categories.

## What You Can Build

- **Related topics**: Offer alternative catalogue links beside a selected category.
- **Cross-category exploration**: Let researchers move to related categories while preserving their parent context.

## 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 Related 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"
          ]
        },
        "category_id": {
          "type": "integer",
          "description": "The id for a category.\n\ninteger, 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",
        "category_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/category/related?category_id=32073&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": 149,
      "name": "Arkansas",
      "parent_id": 27281
    },
    {
      "id": 150,
      "name": "Illinois",
      "parent_id": 27281
    },
    {
      "id": 151,
      "name": "Indiana",
      "parent_id": 27281
    },
    {
      "id": 152,
      "name": "Kentucky",
      "parent_id": 27281
    },
    {
      "id": 153,
      "name": "Mississippi",
      "parent_id": 27281
    },
    {
      "id": 154,
      "name": "Missouri",
      "parent_id": 27281
    },
    {
      "id": 193,
      "name": "Tennessee",
      "parent_id": 27281
    }
  ]
}
```

## 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
### What input identifies the starting category?
Use the required integer category_id together with file_type=json.

### Are related categories the same as children?
No. This endpoint finds related categories. Use Child Categories when you need the hierarchical children of a parent.

### Can I use the returned IDs for further navigation?
Yes. Use a returned id with Category Lookup or another category endpoint; parent_id separately describes its hierarchical parent.

### Does this API return a relevance score?
The documented category records contain id, name and parent_id. Use those relationships for navigation rather than assuming an additional relevance score.

### 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-related-categories/8c5f6e72-5d91-488e-96c3-529799ae20ad/

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