# FRED — Get Child Categories

List FRED child categories 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 expandable tree, and taxonomy indexing, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/fred/fred-get-child-categories/36c22d98-0b24-496b-9753-c0e0b005aa2d/
API ID: 36c22d98-0b24-496b-9753-c0e0b005aa2d
Provider: fred
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/fred/fred/category/children
Page update time: 2026-12-03T02:49:00.355Z
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.763Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## FRED Child Categories API

Provide file\_type=json and a category\_id, or omit the ID to start at the root. The categories array contains immediate children with id, name and parent\_id. Optional realtime\_start and realtime\_end specify the real-time period used for the category lookup.

## What You Can Build

- **Expandable tree**: Load one category level at a time as a user opens branches.
- **Taxonomy indexing**: Save category identifiers and parent relationships for a research 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 Child 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, default: 0 (root category)"
        },
        "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"
      ]
    },
    "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/children?category_id=13&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": 16,
      "name": "Exports",
      "parent_id": 13
    },
    {
      "id": 17,
      "name": "Imports",
      "parent_id": 13
    },
    {
      "id": 3000,
      "name": "Income Payments & Receipts",
      "parent_id": 13
    },
    {
      "id": 125,
      "name": "Trade Balance",
      "parent_id": 13
    },
    {
      "id": 127,
      "name": "U.S. International Finance",
      "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
### Can I start browsing without a category ID?
Yes. An omitted category_id defaults to the root category, whose identifier is 0.

### Does one request traverse the whole tree?
No. It lists children of the selected parent. Request children of returned category IDs separately to continue traversal.

### What does parent_id identify?
It identifies the parent of each returned category and lets your application preserve the hierarchy.

### Are realtime_start and realtime_end observation dates?
They select the real-time period for the catalogue information. They do not request a time series of economic observation values.

### 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-child-categories/36c22d98-0b24-496b-9753-c0e0b005aa2d/

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