Skip to content

Color Name API API

by color.pizza

No authHTTPSDevelopment
Open documentation ↗

Overview

An API that provides names for colors based on their hex value

Color Name API is a development API from color.pizza. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 4 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Development
Base URL
https://api.color.pizza/v1/
Version
1.0.0
Endpoints
4
Spec updated
2023-03-06

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.color.pizza/v1/" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://api.color.pizza/v1/", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.color.pizza/v1/",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/Get all colors of the default color name list
GET/lists/Get all colors of the default color name list
GET/names/Get all colors of the default color name list
GET/swatch/Generate a color swatch for any color

Questions

Does the Color Name API API need an API key?

No. The Color Name API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Color Name API API support HTTPS?

Yes, the Color Name API API is served over HTTPS.

How many endpoints does the Color Name API API have?

Its OpenAPI description lists 4 endpoints in version 1.0.0. All of them are shown on this page.

What are alternatives to the Color Name API API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).