Waifu.im API

⭐ Beginner's Pick Anime / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)

Overview

Waifu.im hosts a curated archive of over 4,000 anime-style character images organized by tags like maid, uniform, wink, or ero. No API key is required to fetch images, making it one of the simplest anime image APIs to use. It is popular for Discord bots and web projects that need tagged anime images on demand.

💡

Beginner Tip

Use GET https://api.waifu.im/search/?included_tags=maid to fetch random images by tag. The is_nsfw parameter defaults to false, so all results are safe for work unless you explicitly set it to true.

Available Data

Waifu.im data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Waifu.im",
    "description": "Get waifu pictures from an archive of over 4000 images and multiple tags",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

images Array of image objects matching the requested tags.
images[].url Direct CDN URL to the image file.
images[].tags List of tag objects describing the image content.
images[].width Pixel width of the image.
images[].height Pixel height of the image.
images[].is_nsfw Whether the image is flagged as not safe for work.

Implementation Example

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://waifu.im/docs";
const response = await fetch(url);
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.

Common Errors & Troubleshooting

400 Bad Request Invalid or nonexistent tag name in included_tags parameter.
Fetch the valid tag list first from GET https://api.waifu.im/tags/ and use only those exact names.
404 Not Found No images match the combination of included and excluded tags.
Try fewer tag filters or remove excluded_tags to broaden the search.
CORS blocked in browser Browser restricts cross-origin requests in some configurations.
Waifu.im supports CORS for browser use; verify you are requesting https:// not http://.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 269ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Anime
Difficulty Beginner
Verified: 2026-04-07

Similar APIs

View All →