Search posts by tag
search_postsSearch rule34.xxx for posts by one or more tags, with filters for media type, rating, and sort order. Get post links, image/video URLs, scores, and total matches.
Instructions
Search rule34.xxx for posts carrying a tag, or several tags at once. Tags are written as one token, so a name said as words is joined by underscores: 'asuka langley sohryu' and 'ranma 1/2' are single tags, and this tool joins them for you. Returns each post's page, its image or video URL, dimensions, score and rating, alongside the number of posts the whole search matches. A row shows the first 12 of a post's tags and says how many it has; call get_post for the whole list with a kind for every tag. Use 'media_type' to ask for still images, animations or video; the site classifies these itself. When a search finds nothing, the answer names the tags rule34.xxx does not hold, or says how many posts the tags match once the restrictions are dropped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| sort | No | 'score' is the site's own tally of votes, recomputed once a day. 'id' is newest first. 'updated' is by when a post last changed, which retagging moves. 'random' draws a different set on each call. | score |
| tags | Yes | Tags a post must all carry, such as ['asuka langley sohryu', 'black hair']. | |
| limit | No | ||
| any_of | No | Tags a post must carry at least one of. | |
| rating | No | The two ratings rule34.xxx holds. Leave unset to search both. | |
| exclude | No | Tags a post must not carry, such as ['monochrome'] to leave out black and white. | |
| media_type | No | 'image' for stills, 'animated' for GIFs, 'video' for MP4. The site states this in its own tags, so the classification is as good as the tagging. | any |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| tags | Yes | The required tags, as rule34.xxx spells them. | |
| notes | Yes | ||
| posts | Yes | ||
| query | Yes | The search as it was sent, in the site's own language. | |
| total | Yes | Posts the whole search matches, as counted by the site. | |
| any_of | Yes | The alternatives, as rule34.xxx spells them. | |
| source | Yes | ||
| exclude | Yes | The excluded tags, as rule34.xxx spells them. | |
| has_more | Yes | ||
| next_page | Yes |