Kodehawa / imageboard-api

Simple asynchronous Java API wrapper around the most popular danbooru-compatible (Konachan, Yande.re, Danbooru, Gelbooru, etc) booru APIs.
Apache License 2.0
53 stars 10 forks source link

[Feature-Request] Tag Search #36

Closed Vodes closed 6 months ago

Vodes commented 3 years ago

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

Kodehawa commented 3 years ago

I'll give it a look.

Kodehawa commented 2 years ago

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.

Kodehawa commented 10 months ago

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.