cfpb / hmda-platform

The HMDA Submission backend applications.
Creative Commons Zero v1.0 Universal
103 stars 94 forks source link

Data Browser API to query a specific aggregation? #4851

Open jmurphy-asurity opened 1 month ago

jmurphy-asurity commented 1 month ago

I can use the data browser API to query the 2022 HMDA data as follows: curl "https://ffiec.cfpb.gov/v2/data-browser-api/view/aggregations?states=MD&years=2022&actions_taken=1,6". If I run this today it gives me the count by action for actions 1 and 6 in MD from the 2022 One Year National Loan-Level Dataset as of May 1, 2024. When I ran it a month ago it gave me the same query from the 2022 Snapshot National Loan-Level Dataset as of May 1, 2023, with very different numbers. Is it still possible to use the API to query the 2022 Snapshot National Loan-Level Dataset as of May 1, 2023? It's listed here on the Static Datasets FAQ page but I can't see any argument to specify it in the API.

If there's not currently any way to do it, can there be one? It would be useful to have the numbers to validate historical data, such as the aggregates used in CRA PE tables. It would be great if the api had a query arg to select the specific aggregate Snapshot|OneYear|ThreeYear.