Last active
March 29, 2024 20:07
-
-
Save hym3242/ed5785a8c5b4513af927919ba42b28d7 to your computer and use it in GitHub Desktop.
NARA (catalog.archives.gov) API (reverse-engineered) sample usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for n in {1..10}; do curl -s "https://catalog.archives.gov/proxy/records/search?ancestorNaId=533461&page=$n&limit=100&availableOnline=true&abbreviated=true&debug=true&datesAgg=true" | jq -r '.body.hits.hits[] | "https://catalog.archives.gov/id/\(._id)\t\(._source.record.ancestors[] | select(.distance == 2) | .title + "\t" + .creators[0].heading)\t\(._source.record.title)"' | colorevenoddlines; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SRC-OF-SRC:
NOTES: