# The Consumer Financial Protection Bureau API

> The Consumer Financial Protection Bureau API on Apizie: 6 endpoints (Get a list of all datasets., Get metadata for this dataset., Get information about a particular concept in this dataset., Query a slice in this dataset., …) returned as clean JSON through one API key. 6 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/finance:consumerfinance/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `finance:consumerfinance`
- Category: Finance
- Status: live
- Source: https://consumerfinance.gov
- Page: https://zieapi.vercel.app/api/finance/consumerfinance
- OpenAPI: https://zieapi.vercel.app/api/finance/consumerfinance/openapi.json

Learn more about home mortgage data, download the data yourself, or build new tools using our API.

## Endpoints

### Get a list of all datasets.
`GET https://zieapi.vercel.app/v1/finance:consumerfinance/get-datasets`

### Get metadata for this dataset.
`GET https://zieapi.vercel.app/v1/finance:consumerfinance/get-dataset-hmda`

### Get information about a particular concept in this dataset.
`GET https://zieapi.vercel.app/v1/finance:consumerfinance/get-concept-hmda`

| Parameter | Type | Required | Description |
|---|---|---|---|
| concept | string | yes | Name of concept |

### Query a slice in this dataset.
`GET https://zieapi.vercel.app/v1/finance:consumerfinance/query-slice-hmda`

| Parameter | Type | Required | Description |
|---|---|---|---|
| slice | string | yes | Name of slice |
| $select | string | no | Fields to return, separated by commas. |
| $where | string | no | Conditions to search for in the slice, in SQL WHERE style. |
| $group | string | no | Fields to group by, summarizing the data, separated by commas. |
| $limit | integer | no | Number of records to return, 100 by default. Enter 0 for no limit. |
| $offset | integer | no | Number of records to skip. |
| $orderBy | string | no | Fields to order by, separated by commas. ASC and DESC can be used to modify the order. |
| $callback | string | no | JavaScript callback to invoke. Only useful with JSONP requests. |

### Get the metadata for a slice in this dataset.
`GET https://zieapi.vercel.app/v1/finance:consumerfinance/get-slice-metadata-hmda`

| Parameter | Type | Required | Description |
|---|---|---|---|
| slice | string | yes | Name of slice |

### Get metadata about a dataset.
`GET https://zieapi.vercel.app/v1/finance:consumerfinance/get-dataset`

| Parameter | Type | Required | Description |
|---|---|---|---|
| dataset | string | yes | Name of dataset |

## Example
```
curl "https://zieapi.vercel.app/v1/finance:consumerfinance/get-datasets" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the The Consumer Financial Protection Bureau API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/finance:consumerfinance/get-datasets with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the The Consumer Financial Protection Bureau API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the The Consumer Financial Protection Bureau API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key finance:consumerfinance.

### What is the status of the The Consumer Financial Protection Bureau API?
Live: works with just an Apizie key
