API & data files

Everything on ColorSwoop is available as plain data. No key, no rate limit beyond fair use, CC0 licensed.

Endpoints

Example

fetch('https://colorswoop.com/api/palettes.json')
  .then(r => r.json())
  .then(d => d.palettes.filter(p => p.tags.includes('pastel')).slice(0, 5));

Attribution

Not required. If you cite a palette, link its page (url) so readers can copy the codes and see contrast data.