Data Sources
GEThttps://api-colors.dataandapis.com/v1/sources
Data Sources is an endpoint of the Colors API. Name, convert and check contrast for any color, with 31,919 curated names and WCAG math.
Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.
Request
This endpoint takes no parameters.
Example request
curl
curl "https://api-colors.dataandapis.com/v1/sources" \
-H "X-Api-Key: YOUR_API_KEY"Node.js
const res = await fetch("https://api-colors.dataandapis.com/v1/sources", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api-colors.dataandapis.com/v1/sources",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Example response
Example response
{
"ok": true,
"sources": [
{
"slug": "color-names",
"name": "meodai color-names",
"publisher": "meodai and contributors",
"licence": "MIT",
"source_url": "https://github.com/meodai/color-names",
"file_url": "https://raw.githubusercontent.com/meodai/color-names/main/src/colornames.csv",
"cadence": "community-updated; occasional re-scrape",
"record_count": 31916,
"retrieved_at": "2026-09-06"
},
{
"slug": "css-colors",
"name": "CSS named colors",
"publisher": "W3C CSS Color Module",
"licence": "W3C spec constants",
"source_url": "https://www.w3.org/TR/css-color-4/#named-colors",
"file_url": null,
"cadence": "static",
"record_count": 139,
"retrieved_at": "2026-09-06"
}
]
}
