API client survey

Site and Policy » API client survey Search Posts
byte[]
Diamond Trophy - Are you a TAS by any chance?
Solar er - Fought against the New Lunar Republic rebellion on the side of the Solar Deity (April Fools 2023).
Non-Fungible Trixie -
Verified Pegasus - Show us your gorgeous wings!
Preenhub - We all know what you were up to this evening~
An Artist Who Rocks - 100+ images under their artist tag
Artist -

Philomena Contributor
Assuming that this gets responses, this post will periodically be updated with things we are going to do.
 
  • What are you interested in doing with Derpibooru that cannot easily (or at all) be accomplished with the current API?  
  • Are you aware of any API bugs that we should fix?  
  • How often do you resort to parsing/using HTML pages because the API does not provide the right functionality?
     
    Planned:  
  • Write API
byte[]
Diamond Trophy - Are you a TAS by any chance?
Solar er - Fought against the New Lunar Republic rebellion on the side of the Solar Deity (April Fools 2023).
Non-Fungible Trixie -
Verified Pegasus - Show us your gorgeous wings!
Preenhub - We all know what you were up to this evening~
An Artist Who Rocks - 100+ images under their artist tag
Artist -

Philomena Contributor
@Xaekai  
API for pushing all new activity is eminently possible considering we already a good bit this functionality in place for our feed loggers.
Background Pony #A570
Seconding the streaming API. WebSockets could work nice for this but polling is also fine.
GyroTech
Blitz - For ing the site
Piaow!! - Derpi er
My Little Pony - 1992 Edition
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
The Magic of Friendship Grows - For helping others attend the 2020 Community Collab
Bronze Bit -
Emerald -
Toola Roola - For helping others attend the 2019 Community Collab
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends.
A Tale For The Ages - Celebrated MLP's 35th Anniversary and FiM's 8th Anniversary

The Prettiest Catbird
It’d be rather neat to be able to add or remove tags via the api.
 
I sort of had a thought about making an application that you could run on a separate monitor that you could say search for Gilda, -griffon and then have it cycle through images under that search to add griffon to things or skip them via a pair of hot keys. You could do this for any sort of search like that for people who want an easier way to clean up tags.
GyroTech
Blitz - For ing the site
Piaow!! - Derpi er
My Little Pony - 1992 Edition
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
The Magic of Friendship Grows - For helping others attend the 2020 Community Collab
Bronze Bit -
Emerald -
Toola Roola - For helping others attend the 2019 Community Collab
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends.
A Tale For The Ages - Celebrated MLP's 35th Anniversary and FiM's 8th Anniversary

The Prettiest Catbird
@Exedrus  
It certainly is, I’d agree. Still figured I’d ask. It’d certainly have to be limited to ed s. But I think they can revert a ’s tagging history. I expect more elevated bans, such as ip ones to come faster for such abuse.
 
It could also be midigated by only allowing it to s with a certain age and activity, who are in good standing.
Xaekai
Fifth Yacht -
Cheat Engine - A1B 46D
My Little Pony - 1992 Edition
The Magic of Friendship Grows - For helping others attend the 2020 Community Collab
Friendship, Art, and Magic (2020) -
Wallet After Summer Sale -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends.
Friendship, Art, and Magic (2018) - Celebrated Derpibooru's six year anniversary with friends.
Responsible Disclosure - ZERO​WIDTH​SPACES
Not a Llama - Happy April Fools Day!

Mo​dular Ponkfag
@GyroTech
 
I actually already wrote such an “quick tagging” app as a script but I don’t trust sharing it. It’s a “if you are good enough to be trusted to do it, you are probably are already capable of rolling your own” type of thing. The drawbacks to lowering the bar of entry are far too high. It is good for tagging to require human interaction. A simple well–meaning automation accident could possibly make hours of reversion work for some mod to do.
 
Let it stay deliberately left out. The road to hell paved with good intentions and all that. May the metadata be ever lovingly tended by hand.
One bug that hasn’t been fixed yet is the missing mp4 and webm representations in the json. Or did you remove them on purpose?
Background Pony #8298
Just putting my two cents in: here are the features I’ve missed personally (some of them are relatively easy to add, others may be more time-consuming, while yet others may be deemed unimportant):
 
  • accessing the featured image (there’s been a thread dedicated to that);
     
  • having a “detailed image” endpoint that returns:  
    a ) an array of image tag objects { tag_id => { tag_name, number_of_images } }, which is easier to parse than two separate arrays as it is now and includes number_of_images, saving an individual tag request;  
    b ) er information that is available in the HTML version (their badges);
     
  • having “comments” endpoint that accepts [image_id, page, limit] as parameters (default limit would be set to that specified in settings) and returns HTML rendered comments (the booru uses a custom parser, you don’t want to reinvent the wheel with your application :P) — actually, that could be a third parameter, rendered=(1|0).  
    In addition to that, the output could include all information that is given in /images/{id}/comments, i.e. author badges;
     
  • ditto for individual comment ([comment_id, rendered]);
     
  • having existing endpoints documented (fetch_many, , etc.);
     
  • having an endpoint for settings (filter_id, spoilered/hidden tag ids) — the stuff in window.booru initialization script at the end of <body>;
     
  • having an endpoint for editing tags and source (this could be available for a limited number of s — perhaps those that requested a permission from the staff) — there’s a number of tag-related things that can be automated, e.g. fixing/inserting deviantart/tumblr sources, tracking deviantart artist name changes, etc.
     
    Finally, I’d like to have a way to reset the API key (in case I suspect it may have leaked, or I don’t trust an application I authenticated anymore).
     

     
    Well, that’s about it. Like I’ve said in the beginning, not all of this is actually reasonable to implement, but I hope I gave you some ideas.
@Background Pony #4569  
>Finally, I’d like to have a way to reset the API key (in case I suspect it may have leaked, or I don’t trust an application I authenticated anymore).
 
If you’re not looking for a way to change the API key through the API, then IIRC changing your should cause it to change. (Or at least I think that’s what was recommended a while ago when someone accidentally leaked their API key in IRC.)
Interested in advertising on Derpibooru? Click here for information!
Champions of Equestria

Help fund the $15 daily operational cost of Derpibooru - us financially!

Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ ~sub~

Detailed syntax guide