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: Api docs?
Keep it civil, do not flame or bait other users. If you notice anything illegal or inappropriate being discussed, contact an administrator or moderator.

Shujito - Group: Member - Total Posts: 1
user_avatar
Api docs?
Posted on: 07/27/13 02:02AM

Is there more documentation on the xml api? there's this:

www.gelbooru.com/index.php?page=help&topic=dapi

but it seems that is lacking quite a bit...



Jerl - Group: The Real Administrator - Total Posts: 6706
user_avatar
Posted on: 07/27/13 12:17PM

That's it as far as formal documentation. What do you need help with in specific? I may be able to help.



palatis - Group: Member - Total Posts: 2
user_avatar
Posted on: 01/26/14 07:31PM

Is there a way to search through tags?
I found this link, but dunno how to send my query string:
www.gelbooru.com/index.php?page=dapi&s=tags&q=index

like this link will give you the first 20 tags which ends with "love". (glove, yujin_love, elflove, doaralove, ... etc.)
danbooru.donmai.us/tags.json?search[name_matches]=*love

*** EDIT ***

NVM, i just found out by myself.
it's "name_pattern=".

doesn't support asterisks, tho.
can't do a "wildcard match".

*** EDIT 2 ***

and the thing that bugs me the most is, when I ask it to order by count, it gives me a ascending list (instead of a descending list...)
so I get the tags with the least count >______<

... can you just fix the sql by adding "ORDER BY count DESC" at the end of the query?



lozertuser - Group: The Fake Administrator - Total Posts: 2231
user_avatar
Posted on: 01/29/14 09:15AM

If you want desc you can now do so by adding &ordering=1 to the query... It will default to ASC if you leave it out. This is a temporary thing until we get back to work on 0.3.



mriichi - Group: Member - Total Posts: 14
user_avatar
Posted on: 10/11/15 07:26AM

How to get latest posted picture at the moment?



Jerl - Group: The Real Administrator - Total Posts: 6706
user_avatar
Posted on: 10/11/15 11:29AM

That's always the very first entry unless you specify a sorting method.



torunar - Group: Member - Total Posts: 1
user_avatar
API disabled to anonymous users
Posted on: 12/25/15 01:16AM

When performing API query, I get response "Our API is being abused at the moment and is disabled to anonymous users".
Based on the wording "to anonymous users", I assume some kind of authorization can be performed before requesting API.

Am I right and how do I do it?



Jerl - Group: The Real Administrator - Total Posts: 6706
user_avatar
Posted on: 12/25/15 01:54AM

You are correct. You need to be logged in to access the API. If you're accessing from a web browser, just signing in normally with cookies enabled should do the trick. If it's for an app, you will need to log in to the site as though you were logging in on a web browser and keep the user_id and pass_hash cookies. You will need to send these cookies in your request header when making an API request.

For more information, see this thread: gelbooru.com/index.php?pa...ew&id=3264&pid=40



Elaanel - Group: Member - Total Posts: 49
user_avatar
Posted on: 12/25/15 07:30AM

Why not add the login-specific infos (URL and POST data to send) into the API docs ? It's now a full part of the API process. Same goes about the Cookie tips you're giving (excluding language-specific infos).

I know they are in a thread, but it would be better if those infos were also in the API docs, as well as a list of most API commands.



lozertuser - Group: The Fake Administrator - Total Posts: 2231
user_avatar
Posted on: 12/25/15 08:56AM

The change is a recent one, and is only temporary. It will change in the future to simply including your access key in the url and your account username or id in the url.



add_replyAdd Reply


1