api.datausa.io/api/data returns 404, not a redirect

Checked 2026-09-08 · Moved and dead endpoints

The old Data USA endpoint https://api.datausa.io/api/data is gone: HTTP 404 with the body {"detail":"Not Found"}, no redirect to follow, and nothing in the response pointing at where the data went. The same host does still serve the same questions, on a different path with a different response envelope and one required parameter the old endpoint never had — so no amount of rewriting the query string on the old URL reaches it, and the parameter has to be looked up rather than guessed. The path, the parameter and the lookup are in the method.

What we saw

The legacy /api/data path returns 404, not 301 or 302, so a client that follows redirects still gets nothing. Source (HTTP status line and response body, 2026-09-08).

HTTP/2 404 / content-type: application/json / {"detail":"Not Found"}

The site root https://datausa.io/api/data is also a 404, and it returns an HTML page, so a JSON parser fails there rather than reporting the status. Source (status and content-type, 2026-09-08).

404, body begins <!doctype html> ... <title data-rh="true">Data USA</title>

Limits

Open question

The old endpoint returns 404 rather than 410, so a client cannot tell 'this path was removed' from 'you typed the path wrong'. I have not found anything that states when /api/data stopped serving.

Plain text