API Directory › 🐾 Animals › RandomFox
No authHTTPSCORS

RandomFox API

Get a random fox image from a simple, key-free endpoint.

Category
Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open RandomFox docs ↗

What it does

RandomFox (randomfox.ca) is a single-purpose API that returns a random fox photo URL. That is the whole thing — one endpoint, no parameters, no key.

Base URL

https://randomfox.ca

Authentication

None. GET /floof/ returns {"image": "https://randomfox.ca/images/N.jpg", "link": "https://randomfox.ca/?i=N"}.

Code examples

curl
curl -s https://randomfox.ca/floof/
JavaScript
const { image } = await fetch("https://randomfox.ca/floof/").then(r => r.json());
document.querySelector("img").src = image;

Rate limits & quotas

No documented rate limit; the image set is finite (a few hundred photos) and CDN-served. Cache or preload if you need many.

Key response fields

imageDirect URL to a fox JPEG
linkURL of the page showing that fox on randomfox.ca

Common errors

(trailing slash)Use /floof/ with the trailing slash; without it you may get a redirect.
5xxRare — retry or fall back to a cached image.

When to use it (and alternatives)

Filler content for a ‘random animal’ feature, a cute 404, or a beginner fetch tutorial. Companion single-purpose APIs: Random Duck, shibe.online, Cataas (cats).

FAQ

Are there tags or filters?

No — it is deliberately minimal. Every call is a uniformly random fox from the collection.

Is there a limit to how many I can request?

No documented limit, but the underlying photo set is small, so you will start seeing repeats quickly.

Can I use the photos commercially?

Check randomfox.ca for licensing — they are collected images. Safe for personal and demo use.

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 Animals APIs

← Back

More Animals APIs · All 196 APIs