Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Ticket Information - ID: #1257

ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0001257Feature RequestLowN/A01/26/23 12:35PMlozertuser
Assigned to:geltas
View StatusPublic
Target Version:N/A
Summary:Make it possible to know post's tag types and other meta via API
Description:For some context, I am using Gelbooru API to repost Gelbooru posts to Telegram channel. With every repost I am providing a link to Gelbooru post and it's source, and also a link to artist's tag.

API provides list of tags for every post but not their types, to retrieve the types I am currently supplying a list of all unique tags from loaded batch to Tags endpoint, then filter them by type on my side and match to the posts I have loaded.

The problem here is that for 100 posts I load in one request, there is about 1000 unique tags, which leads to 10 requests to Tags endpoint to load them all, which I find kinda suboptimal and unhealthy for server.

My suggestions are to include tags metadata with posts, or at least split list of tags by type, or to add parameter to Tags endpoint to filter results by type.
Additional Info:
Jerl replied at 2023-01-26 18:32:26
You can change the limit per request to 1000.

milesseventh replied at 2023-01-28 17:57:46
Changing limit parameter doesn't seem to work, the response still has limit of 100. Is it only for Patreon contributors?

Sample URL:

Jerl replied at 2023-01-28 18:17:04
That paste is set to private, so we are unable to see it.

milesseventh replied at 2023-01-28 20:50:41
Pending moderation for some reason. Here:

lozertuser replied at 2023-01-28 21:44:41
It was changed to 100 due to abuse.