RandomFox API
Get a random fox image from a simple, key-free endpoint.
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
Authentication
None. GET /floof/ returns {"image": "https://randomfox.ca/images/N.jpg", "link": "https://randomfox.ca/?i=N"}.
Code examples
curl -s https://randomfox.ca/floof/
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
| image | Direct URL to a fox JPEG |
| link | URL 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. |
| 5xx | Rare — 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.