APIHub
Back to Explore

Danbooru Anime

Danbooru provides a REST‑like API for accessing and manipulating its anime artwork database—such as posts, tags, artists, comments, pools, and wiki pages—through JSON or XML responses using standard HTTP GET, POST, PUT, and DELETE methods.

Anime
basic
HTTPS
CORS: Yes
Description enriched
Visit official documentation

Latency

472ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/posts/random

Get a random post

GET

/posts

List posts

  • page (query, page) — Page to return; can be a page number or a cursor such as b or a .
  • limit (query, limit) — Number of results per page (max 200 for /posts).
GET

/posts/{id}

Retrieve a post by its ID

  • id (path, required) — The numeric ID of the post.
PATCH

/posts/{id}

Update a post (partial update)

  • id (path, required) — The numeric ID of the post to update.
PUT

/posts/{id}

Update a post (full replace)

  • id (path, required) — The numeric ID of the post to replace.
DELETE

/posts/{id}

Delete a post

  • id (path, required) — The numeric ID of the post to delete.
GET

/autocomplete

Autocomplete tag queries

  • search[name_matches] (query) — Wildcard pattern to match tag names (e.g., "a*").
GET

/related_tag.json

Show related tags for a given tag

  • query (query, required) — The tag to find related tags for.
  • category (query) — Optional tag category filter (general, artist, copyright, character, meta).
GET

/artists

List artists

  • page (query, page) — Page to return; can be a page number or a cursor such as b or a .
  • limit (query, limit) — Number of results per page (max 1000 for non‑post resources).
POST

/artists

Create a new artist

GET

/artists/{id}

Retrieve an artist by its ID

  • id (path, required) — The numeric ID of the artist.
PUT

/artists/{id}

Update an existing artist

  • id (path, required) — The numeric ID of the artist to update.
DELETE

/artists/{id}

Delete an artist

  • id (path, required) — The numeric ID of the artist to delete.

13 endpoints auto-detected

Authentication

This API uses Basic authentication (a username and password).

curl -X GET \
  "https://danbooru.donmai.us/wiki_pages/help:api/posts/random"

danbooru.donmai.us · HTTPS only