Creative Commons Catalog API

Beginner's Pick Open Source Projects / OAuth Advanced HTTPS CORS
74 B
Measured Score 0 50 100 Speed 23/30 Consistency 8/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

The Creative Commons Catalog API (powered by Openverse) lets you search millions of openly licensed images, audio tracks, and other media that are free to use and share. While it uses OAuth for write operations, you can perform read-only searches with just a client credentials token obtained from the public registration endpoint. It is the easiest way to add copyright-safe media search to any application.

Beginner Tip

Get a free API token in one step by posting to https://api.openverse.org/v1/auth_tokens/register/ with your application name and email—no manual approval needed, and the token arrives in the response body immediately.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.openverse.org/v1/images/?q=sunset&license=cc0&page_size=5
Result
HTTP 200 · application/json · 7,421 bytes · compressed
Response time
49 ms (median of 3) · fastest 33 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
cloudflare
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
result_count integer 240
page_count integer 48
page_size integer 5
page integer 1
results array [1 item]

Captured Response

Captured from a real request to https://api.openverse.org/v1/images/?q=sunset&license=cc0&page_size=5 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "result_count": 240,
  "page_count": 48,
  "page_size": 5,
  "page": 1,
  "results": [
    {
      "id": "7ac70a50-98e6-4b72-8a78-b16754f212a7",
      "title": "2018/365/268 Feeding on the Sunset",
      "indexed_on": "2020-03-15T10:32:33.867973Z",
      "foreign_landing_url": "https://www.flickr.com/photos/37996646802@N01/44922356991",
      "url": "https://live.staticflickr.com/1946/44922356991_2646fc617b_b.jpg",
      "creator": "cogdogblog",
      "creator_url": "https://www.flickr.com/photos/37996646802@N01",
      "license": "cc0",
      "license_version": "1.0",
      "license_url": "https://creativecommons.org/publicdomain/zero/1.0/",
      "provider": "flickr",
      "source": "flickr",
      "category": null,
      "filesize": null,
      "…": "(11 more fields)"
    }
  ]
}

Field Reference

result_count Total number of media items matching the search query across all pages.
results Array of media objects for the current page of search results.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.creativecommons.engineering/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "Authorization": "Bearer YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

401 Unauthorized Missing or expired access token in the Authorization header.
Register for a token at /v1/auth_tokens/register/, then exchange credentials at /v1/auth_tokens/token/ and include the result as Authorization: Bearer YOUR_ACCESS_TOKEN.
Empty results for a search query Filters like license or source are too restrictive for the given search term.
Remove optional filters one by one to broaden the search—try just the q parameter first to confirm results exist.
429 Too Many Requests Exceeding the rate limit for unauthenticated or low-tier authenticated requests.
Authenticate with a registered token to get a higher rate limit, and implement exponential backoff when a 429 is received.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 23/30
Consistency 8/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 49ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth OAuth
HTTPS REQUIRED
CORS YES
Difficulty Advanced
Endpoint last called: 2026-08-10

Similar APIs

View All →