Kodehawa/imageboard-api

[Feature-Request] Tag Search

Closed this issue · 3 comments

Vodes commented

Would it be possible to search for tags on certain boards?
Maybe parse tables like on https://danbooru.donmai.us/tags

I'll give it a look.

This is a bit late, but this might be even simpler as Danbooru seems to provide an API for it: https://danbooru.donmai.us/wiki_pages/api%3Atags, with the parameters fuzzy_name_matches and name_matches it's possible to search through them.

Late (again, sorry). The following imageboards have tag autocomplete, which can be used for search:

Replace $query with the tag to autocomplete.

Danbooru: https://danbooru.donmai.us/autocomplete?search%5Bquery%5D=$query&search%5Btype%5D=tag_query&version=1&limit=20
e621:https://e621.net/tags/autocomplete.json?search%5Bname_matches%5D=$query&expiry=7
Safebooru: https://safebooru.org/autocomplete.php?q=$query
R34: https://rule34.xxx/public/autocomplete.php?q=$query
Gelbooru: https://gelbooru.com/index.php?page=autocomplete2&term=$query&type=tag_query&limit=1

Konachan and Yande.re have autocomplete, but I have no clue where the tag autocomplete is.