API Directory › 🎮 Games › Chuck Norris Jokes
No authHTTPSCORS

Chuck Norris Jokes API

Random Chuck Norris jokes, filterable by category — free and no key.

Category
Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Chuck Norris Jokes docs ↗

What it does

api.chucknorris.io is a free JSON API of Chuck Norris ‘facts’ (one-liner jokes). Get a random joke, a random joke from a category, the list of categories, or free-text search across the joke database.

Base URL

https://api.chucknorris.io/jokes

Authentication

None. /random, /random?category={name}, /categories, /search?query={text}.

Code examples

curl
curl -s https://api.chucknorris.io/jokes/random
curl -s "https://api.chucknorris.io/jokes/random?category=dev"
curl -s "https://api.chucknorris.io/jokes/search?query=keyboard"
JavaScript
const joke = await fetch("https://api.chucknorris.io/jokes/random")
  .then(r => r.json());
console.log(joke.value);

Rate limits & quotas

No documented rate limit; responses are tiny. CORS is enabled so it works directly from the browser. Search returns a total plus a result array (capped, not paginated), so refine the query rather than expecting every match.

Key response fields

valueThe joke text
idJoke id — permalink at /jokes/{id}
categories[]Zero or more category tags (empty for uncategorised)
icon_urlThe site’s icon
(search) total / result[]Match count and the (capped) list

Common errors

404Unknown category, or a joke id that does not exist.
(empty search result)No jokes matched — total will be 0.
400Search query shorter than the minimum length (3 characters).

When to use it (and alternatives)

A one-line way to add humour to a 404 page, loading screen, CLI easter egg or chat bot. For dad jokes try icanhazdadjoke; for general jokes with filtering, JokeAPI.

FAQ

Are there content categories to avoid?

Yes — /categories includes an explicit category. Exclude it by always requesting a specific safe category, or filter results by their categories array.

Can I link to a specific joke?

Yes — each joke has an id and a url (https://api.chucknorris.io/jokes/{id}) that returns that exact joke.

Does search support paging?

No — it returns a capped result set with a total. Use a more specific query to narrow it.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Games APIs

← Back

More Games APIs · All 196 APIs