Skip to content

The Consumer Financial Protection Bureau API

by consumerfinance.gov

No authFinance
Open documentation ↗

Overview

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

The Consumer Financial Protection Bureau is a finance API from consumerfinance.gov. It needs no API key. It is served over plain HTTP. Its OpenAPI description documents 6 endpoints.

At a glance

Authentication
No auth
HTTPS
No
CORS
Unknown
Category
Finance
Base URL
https://api.consumerfinance.gov:443/
Version
1.0
Endpoints
6
Spec updated
2018-08-24

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.consumerfinance.gov:443/data" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://api.consumerfinance.gov:443/data", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.consumerfinance.gov:443/data",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/dataGet a list of all datasets.
GET/data/hmdaGet metadata for this dataset.
GET/data/hmda/concept/{concept}Get information about a particular concept in this dataset.
GET/data/hmda/slice/{slice}Query a slice in this dataset.
GET/data/hmda/slice/{slice}/metadataGet the metadata for a slice in this dataset.
GET/data/{dataset}Get metadata about a dataset.

Questions

Does the The Consumer Financial Protection Bureau API need an API key?

No. The The Consumer Financial Protection Bureau API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the The Consumer Financial Protection Bureau API support HTTPS?

The The Consumer Financial Protection Bureau API is listed as HTTP only, so avoid sending secrets to it.

How many endpoints does the The Consumer Financial Protection Bureau API have?

Its OpenAPI description lists 6 endpoints in version 1.0. All of them are shown on this page.

What are alternatives to the The Consumer Financial Protection Bureau API?

Other Finance APIs include Stripe, SEC EDGAR Data, Plaid, Fed Treasury, Razorpay IFSC.

Compare alternatives →

Listed from APIs.guru (CC0).