Discontinued

This API no longer responds. Our last check on 2026-07-31 found no working endpoint — the service appears to have shut down or moved. The documentation, code samples and score below are kept for reference only; do not build against this API. See working Anime APIs →

Overview

Waifu.pics is a simple anime image sharing API that returns random anime images from categories like waifu, neko, shinobu, and many more. No authentication is needed, and each request returns a single random image URL. It is one of the quickest APIs for a beginner to call and get a working result.

Beginner Tip

Use GET https://api.waifu.pics/sfw/<category> for safe-for-work images. Valid categories include waifu, neko, shinobu, megumin, bully, cuddle, cry, hug, awoo, kiss, lick, pat, smug, bonk, blush, smile, wave, highfive, handhold, nom, bite, glomp, slap, kill, kick, happy, wink, poke, dance, and cringe.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

anime/manga title
episode count
airing status
synopsis
rating score
genre list

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "id": 1,
  "title": "Attack on Titan",
  "episodes": 75,
  "status": "Finished Airing",
  "score": 8.5,
  "genres": [
    "Action",
    "Drama",
    "Fantasy"
  ],
  "synopsis": "In a world where humanity lives within enormous walled cities..."
}

Field Reference

url Direct URL to a randomly selected anime image from the requested category.

Implementation Example

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

Request
const url = "https://api.waifu.pics/sfw/waifu";
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

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.

404 Not Found The category in the URL path does not exist.
Use only the exact category names listed in the waifu.pics docs. The URL path is case-sensitive.
Empty or null url field Temporary issue with image availability for that category.
Retry the request; the API randomly selects from a pool, so the next call usually succeeds.
CORS blocked Waifu.pics does not support CORS, preventing browser-side requests.
Use a backend server or serverless function as a proxy to fetch images server-side and relay them to the browser.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS NO
Category Anime
Difficulty Beginner
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →