{
  "name": "colorcode.tools API",
  "version": "1.0",
  "description": "Free, machine-readable color reference data for AI agents and developers. CC-BY 4.0 with attribution.",
  "endpoints": {
    "color": {
      "url": "https://colorcode.tools/api/color/{slug}",
      "description": "Per-color data: HEX, RGB, HSL, CMYK, HSV, luminance, WCAG contrast, nearest Pantone",
      "slugSource": "https://colorcode.tools/sitemap.xml (filter /color/*)",
      "example": "https://colorcode.tools/api/color/mauve"
    },
    "compare": {
      "url": "https://colorcode.tools/api/compare/{slug}",
      "description": "Side-by-side color comparison: both colors expanded with all formats + WCAG contrast between them",
      "slugSource": "https://colorcode.tools/sitemap.xml (filter /compare/*)",
      "example": "https://colorcode.tools/api/compare/mauve-vs-lavender"
    },
    "trends2026": {
      "url": "https://colorcode.tools/api/trends/2026",
      "description": "Pinterest Predicts 2026 color palette — 5 trending colors with hex, conversions, growth stats, source citation",
      "example": "https://colorcode.tools/api/trends/2026"
    }
  },
  "documentation": "https://colorcode.tools/llms.txt",
  "methodology": "https://colorcode.tools/about",
  "sitemaps": [
    "https://colorcode.tools/sitemap.xml",
    "https://colorcode.tools/sitemap-images.xml"
  ],
  "contact": "editorial@colorcode.tools",
  "license": "Creative Commons Attribution 4.0 — credit colorcode.tools with a link to the source page."
}