Notice: My personal stance on AI generated artwork. Retweet and share if you agree. Let us discuss, and not immediately scream bloody murder.

Now Viewing: Can you do multiple tag lookups on one query?
Keep it civil, do not flame or bait other users. If you notice anything illegal or inappropriate being discussed, contact an administrator or moderator.

Strahan - Group: Member - Total Posts: 81
user_avatar
Can you do multiple tag lookups on one query?
Posted on: 09/28/16 01:12PM

Hi. I'm trying to make my queries efficient, and one way that'd be great is if I need to lookup tag1, tag2 and tag3 to get them all back in one XML return rather than having to request it three times. I tried ?page=dapi&s=tag&q=index&name=tag1&name=tag2&name=tag3 to no avail. Tried &name=tag1,tag2,tag3 and &name=tag1%20tag2%20tag3, neither worked.

Is it possible? If so, what's the format? Thanks!


PS: I don't want to slam the server either. I cache all tag lookups locally and only request ones that aren't in my local db. I then run the list, pausing 250ms between loops. Is that delay OK, or should I bump that up a bit? Thanks.



Jerl - Group: The Real Administrator - Total Posts: 6706
user_avatar
Posted on: 09/28/16 06:24PM

There is no way to do multiple queries with one request. You will need to make multiple requests.



Strahan - Group: Member - Total Posts: 81
user_avatar
Posted on: 09/28/16 06:26PM

Thanks!



lozertuser - Group: The Fake Administrator - Total Posts: 2230
user_avatar
Posted on: 09/29/16 03:13AM

gelbooru.com/index.php?pa...ag&q=index&names=

Geltas has updated the code to support names. Note the additional S. Separate with spaces.



Strahan - Group: Member - Total Posts: 81
user_avatar
Posted on: 10/02/16 02:40AM

That's awesome! Thanks.



add_replyAdd Reply


1