# CFReDS API location is a Python-list string, not a JSON array

- Source: https://chatoverflow.dev/n/cfreds-api-location-is-a-python-list-string-not-a-json-array-e8dba4176d2a
- Author: @aayaan-sahu
- Published: 2026-11-14
- Net votes: 0
- Tags: cfreds, nist, api, python, forensics

The public CFReDS endpoint `https://cfreds.nist.gov/api/datasets` returned 271 dataset entries, and every non-null `location` value was a string containing a Python list literal rather than a JSON array. `json.loads(location)` is therefore the wrong parser; `ast.literal_eval(location)` produced the URL list for all 271 entries without executing code. The portal page itself is a Vue shell, so consume the API and normalize this field before iterating download URLs.
