# collections.rest

> A free public REST API serving typed key/value datasets in JSON, CSV, HTML, YAML, XML, NDJSON and Markdown. Public collections need no authentication, and anyone can create and share their own collections.

Base URL: https://collections.rest/api/v1/ . Append an extension (.json, .csv, .html, .txt, .yaml, .xml, .ndjson, .md) to any collection URL to pick the format; no extension returns JSON. Look up one item by key with /collection/{slug}/key/{key}, or get the item of the day with /collection/{slug}/daily. Keys match exactly, including case. Rate limits: 60 requests per minute per IP address without a key, 300 per minute with an API key sent as the X-API-Key header. CSV uses a semicolon between key and value.

## Docs

- [API documentation](https://collections.rest/docs): endpoints, formats, authentication and examples
- [Full documentation as one file](https://collections.rest/llms-full.txt): the complete API documentation in Markdown
- [Endpoints](https://collections.rest/docs#endpoints): every route of the API
- [Response format](https://collections.rest/docs#response): JSON structure, plain text, errors and status codes
- [Authentication](https://collections.rest/docs#auth): API keys and private collections
- [Create and share](https://collections.rest/docs#sharing): public, private, share links and embedding
- [Import](https://collections.rest/docs#import): add many items from CSV, JSON or NDJSON
- [Home Assistant](https://collections.rest/docs#home-assistant): REST sensors that read a collection

## Endpoints

- [List public collections](https://collections.rest/api/v1/collections): browse and search the public collections
- [A whole collection](https://collections.rest/api/v1/collection/si-prefixes.json): GET /collection/{slug}.{format}
- [The daily item](https://collections.rest/api/v1/collection/si-prefixes/daily.json): GET /collection/{slug}/daily.{format}, changes at midnight UTC
- [One item by key](https://collections.rest/api/v1/collection/si-prefixes/key/Q.json): GET /collection/{slug}/key/{key}.{format}, URL-encode the key
- [One item by id](https://collections.rest/api/v1/collection/si-prefixes/908.json): GET /collection/{slug}/{id}.{format}

## Datasets

- [SI Prefixes](https://collections.rest/api/v1/collection/si-prefixes.json): The 24 SI prefixes from quecto to quetta: symbol to name and factor. Keys are case-sensitive \(m is milli, M is mega\). (24 items)
- [Language Codes \(ISO 639-1\)](https://collections.rest/api/v1/collection/iso-639-1.json): The 183 active two-letter ISO 639-1 language codes with the English language name. Source: Library of Congress ISO 639-2 code list. (183 items)
- [NATO Phonetic Alphabet](https://collections.rest/api/v1/collection/nato-alphabet.json): The NATO phonetic alphabet assigns code words to the letters of the English alphabet. (26 items)
- [Classic Wit](https://collections.rest/api/v1/collection/classic-wit.json): Lines by Shakespeare, Oscar Wilde and Mark Twain, each with the play, act and scene or the work and chapter. Wording from Project Gutenberg. Made for the daily endpoint. (70 items)
- [English Words](https://collections.rest/api/v1/collection/english-words.json): Interesting English words with a short definition. Made for the daily endpoint. (66 items)
- [Paper Sizes](https://collections.rest/api/v1/collection/paper-sizes.json): ISO 216 A and B series, ISO 269 C series and DL, and North American sizes, as width x height in millimetres \(portrait\). (42 items)
- [Danish Proverbs](https://collections.rest/api/v1/collection/danish-proverbs.json): Danish proverbs and sayings with their English meaning. Made for the daily endpoint. (61 items)
- [Programmer Laws](https://collections.rest/api/v1/collection/programmer-laws.json): Named laws and sayings from programming and computing, such as Conway, Brooks and Hanlon, with who they are credited to. Made for the daily endpoint. (33 items)
- [Danish Name Days](https://collections.rest/api/v1/collection/danish-name-days.json): Danish name days for 366 days, keyed MM-DD. Source: da.wikipedia list, spelling checked against navnedag.dk; not an official almanac. (366 items)
- [HTTP Header Names](https://collections.rest/api/v1/collection/http-header-names.json): Curated common HTTP header field names with a short meaning and, where one defines it, the RFC. Source: IANA HTTP Field Name Registry, permanent entries. (72 items)
- [IP Protocol Numbers](https://collections.rest/api/v1/collection/iana-protocol-numbers.json): IP protocol numbers 0 to 147 \(the IPv4 protocol field\) with keyword and protocol name. Source: IANA Protocol Numbers registry; unassigned values left out. (143 items)
- [Chemical Elements](https://collections.rest/api/v1/collection/chemical-elements.json): All 118 chemical elements: symbol to IUPAC name and atomic number. (118 items)
- [HTTP Methods](https://collections.rest/api/v1/collection/http-methods.json): Registered HTTP request methods with a short meaning and the safe and idempotent flags. Source: IANA HTTP Method Registry. (40 items)
- [Country Codes \(ISO 3166-1 alpha-2\)](https://collections.rest/api/v1/collection/country-codes-alpha2.json): Two-letter ISO 3166-1 codes for the 193 UN member states plus the Holy See, Palestine and Taiwan. (196 items)
- [Programming Languages](https://collections.rest/api/v1/collection/programming-languages.json): Well-known programming languages and the year they first appeared. (24 items)
- [Dad Jokes](https://collections.rest/api/v1/collection/dad-jokes.json): Original, family-friendly dad jokes and one-liners written for this collection, keyed by title. Made for the daily endpoint. (60 items)
- [Famous Quotes](https://collections.rest/api/v1/collection/famous-quotes.json): Quotes with a documented source, keyed by author. Made for the daily endpoint. (66 items)
- [International Calling Codes](https://collections.rest/api/v1/collection/calling-codes.json): ITU-T E.164 country calling codes for 195 countries, keyed by country name. +1 and +39 are shared \(North American plan, Holy See with Italy\). Source: ITU list, position 15 Dec 2016. (195 items)
- [Simpsons Quotes](https://collections.rest/api/v1/collection/simpsons-quotes.json): Short excerpts from The Simpsons with attribution to character and episode \(S05E15\). Rights holders: see the Terms page for takedown. Made for the daily endpoint. (28 items)
- [DNS Record Types](https://collections.rest/api/v1/collection/iana-dns-record-types.json): DNS resource record types: mnemonic to type code and short name. Source: IANA Domain Name System \(DNS\) Parameters; unassigned and draft-only types left out. (86 items)
- [Currency Codes \(ISO 4217 numeric\)](https://collections.rest/api/v1/collection/currency-codes-numeric.json): ISO 4217 alphabetic currency code to its three-digit numeric code, leading zeros kept. Source: SIX Group ISO 4217 list one, published 2026-09-17. (178 items)
- [Country Codes \(ISO 3166-1 numeric\)](https://collections.rest/api/v1/collection/country-codes-numeric.json): Three-digit ISO 3166-1 numeric codes for the 193 UN member states plus the Holy See, Palestine and Taiwan. Source: UN M49 overview. (196 items)
- [Morse Code](https://collections.rest/api/v1/collection/morse-code.json): International Morse code: letters, digits and punctuation as dots and dashes. Source: ITU-R Recommendation M.1677-1. (48 items)
- [Fun Facts](https://collections.rest/api/v1/collection/fun-facts.json): Short, verifiable facts about science, nature, geography and technology. Made for the daily endpoint. (66 items)
- [HTTP Status Codes](https://collections.rest/api/v1/collection/http-status-codes.json): Common HTTP response status codes and their meanings. (18 items)
- [US State Capitals](https://collections.rest/api/v1/collection/us-states.json): Capital cities of the 50 US states. (50 items)
- [World Currencies](https://collections.rest/api/v1/collection/world-currencies.json): ISO 4217 currency codes and the currency names. (20 items)
- [Unit Conversions](https://collections.rest/api/v1/collection/unit-conversions.json): Conversion factors between common units, keyed from-\>to \(mile-\>km\), marked exact or rounded. Source: NIST Guide to the SI \(SP 811\), Appendix B. (38 items)
- [Danish Official Flag Days](https://collections.rest/api/v1/collection/danish-flag-days.json): Official flag days \(officielle flagdage\) in Denmark per Justitsministeriets circular CIS nr 10155 of 19 Dec 2024. Fixed days are keyed MM-DD, movable days by name with the rule in the value. (21 items)
- [Country Codes \(ISO 3166-1 alpha-3\)](https://collections.rest/api/v1/collection/country-codes-alpha3.json): Three-letter ISO 3166-1 codes for the 193 UN member states plus the Holy See, Palestine and Taiwan. (196 items)
- [Browse all datasets](https://collections.rest/browse): search the public collections

## Optional

- [Terms](https://collections.rest/terms): terms of use
- [Pricing](https://collections.rest/pricing): plans and limits
- [Integrations](https://collections.rest/integrations): Home Assistant, n8n and more
