Old API Deprecation Notice

Damaged
Non-Fungible Trixie -
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
Perfect Pony Plot Provider - Uploader of 10+ images with 350 upvotes or more (Questionable/Explicit)
Notoriously Divine Tagger - Consistently uploads images above and beyond the minimum tag requirements. And/or additionally, bringing over the original description from the source if the image has one. Does NOT apply to the uploader adding several to a dozen tags after originally uploading with minimum to bare tagging.
Magnificent Metadata Maniac -
Wallet After Summer Sale -
Equality - In our state, we do not stand out.
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
Not a Llama - Happy April Fools Day!
Happy Derpy! - For Patreon supporters

Word Bug
@Marker  
I messed up the Next one a little, it needs to be reverse sort order (ascending instead of descending). This is what I get for doing brain-related things at 2am.
 
Next: https://derpibooru.org/api/v1/json/search/images?per_page=1&q=oc%3Agreg%2C+id.gt%3A152470&sf=created_at&sd=asc  
Prev: https://derpibooru.org/api/v1/json/search/images?per_page=1&q=oc%3Agreg%2C+id.lt%3A152470
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
@Damaged  
Ahh, I didn’t catch that either, fixed.
 
EDIT: I just realized that the user’s API key is required for it to work properly with their personal filter and any of the “my:*” queries. Which means I’ll have to use the GM_* api to store the key instead of keeping it in localStorage like the other settings, and requiring an additional set up step for new and existing users (like, all 4 of them). Now I’m debating whether doing things the “right” way is worth all the extra complexity. Hmmm…  
EDIT2: Both, both is good.
Bastler
Pixel Perfection - I still call her Lightning Bolt
Solar Supporter - Fought against the New Lunar Republic rebellion on the side of the Solar Deity (April Fools 2023).
A Really Classy Artist - 250+ images under their artist tag
Non-Fungible Trixie -
Verified Pegasus - Show us your gorgeous wings!
Preenhub - We all know what you were up to this evening~
Twinkling Balloon - Took part in the 2021 community collab.
An Artist Who Rocks - 100+ images under their artist tag
Wallet After Summer Sale -
Artist -

Making features huggable
Is there a new way to get the artist tags of a user?
 
My current work flow to get images of an artist which uses my site:
 
  1. Artist enters api Key on my website.  
  2. https://derpibooru.org/search.json?q=my:uploads&perpage=1&key=[Key entered by Artist]  
  3. Get uploader_id from first found image.  
  4. https://derpibooru.org/profiles/[uploader_id].json  
  5. get all artist tags (‘links’ => ‘tag_id’)
     
  6. https://derpibooru.org/tags/[tag_id].json
     
     
    I can see ways to replace 2 and 6, but currently 4 doesn’t seem possible with the new API. Or will the .json way to get infos be kept alive?
Damaged
Non-Fungible Trixie -
Fine Arts - Two hundred uploads with a score of over a hundred (Safe/Suggestive)
Perfect Pony Plot Provider - Uploader of 10+ images with 350 upvotes or more (Questionable/Explicit)
Notoriously Divine Tagger - Consistently uploads images above and beyond the minimum tag requirements. And/or additionally, bringing over the original description from the source if the image has one. Does NOT apply to the uploader adding several to a dozen tags after originally uploading with minimum to bare tagging.
Magnificent Metadata Maniac -
Wallet After Summer Sale -
Equality - In our state, we do not stand out.
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
Not a Llama - Happy April Fools Day!
Happy Derpy! - For Patreon supporters

Word Bug
@Bastler  
We don’t currently have a way to get user pages in the API. That will need to be fixed. Also, it would probably be better to just have the user drop a link to their userpage rather than get their API key.
 
I’ll add this to the to-do list.
 
Edit: Added to to-do list
 
I’ll take a crack at implementing in the next few days.
Rene_Z
Non-Fungible Trixie -
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Not a Llama - Happy April Fools Day!
Artist -

I already posted in the other thread, but I’m not sure if my post was seen. All the issues are still there, so I’m copying my post from there:
 
1. The new API no longer returns the mp4 representation for images uploaded as WEBM.
 
Example: Old API, New API
 
For images uploaded as GIF, the new API still returns both the webm and mp4 representation as before (Example).
 
Is this intended behaviour? WEBM still isn’t as widely supported as MP4, so I’m relying on the MP4 representation (in my case sending the image to Telegram, which supports sending MP4 videos but not sending WEBM videos). Of course I could just change the file extension in the URL, but that would be quite hacky and I’d have to check if the MP4 actually exists each time.
 
2. I noticed a second issue. The API now always returns the mp4 and webm fields for GIFs, even if the video versions don’t actually exist on the server (for old uploads where no video version was generated). The URLs just return 404. This was not the case before, it would just not include the video representations in the response. However, it seems that even the old API now returns those non-existant representations.
 
Example: Old API, New API
 
3. And a minor issue with the API documentation, the format field of an image response can also return jpeg (instead of jpg), depending on the original file extension of the image. The behaviour is the same as with the old API, it’s just missing from the documentation.
Luna
Luna - For Patreon supporters
Woona - Derpi Supporter
Pixel Perfection - I still call her Lightning Bolt
Flower Trio - Helped others get their OC into the 2023 Derpibooru Collab.
Roseluck - Had their OC in the 2023 Derpibooru Collab.
Solar Supporter - Fought against the New Lunar Republic rebellion on the side of the Solar Deity (April Fools 2023).
Lunar Supporter - Helped forge New Lunar Republic's freedom in the face of the Solar Empire's oppressive tyrannical regime (April Fools 2023).
Princess of Love - Extra special version for those who participated in the Canterlot Wedding 10th anniversary event by contributing art.
Tree of Harmony - Drew someone's OC for the 2022 Community Collab
Elements of Harmony - Had an OC in the 2022 Community Collab

Luna Best Pony~
  1. Probably not intentional, I’ll see if there is a nice way to check if the MP4 actually exists and include it.  
  2. (see above)  
  3. Fixed.
Bastler
Pixel Perfection - I still call her Lightning Bolt
Solar Supporter - Fought against the New Lunar Republic rebellion on the side of the Solar Deity (April Fools 2023).
A Really Classy Artist - 250+ images under their artist tag
Non-Fungible Trixie -
Verified Pegasus - Show us your gorgeous wings!
Preenhub - We all know what you were up to this evening~
Twinkling Balloon - Took part in the 2021 community collab.
An Artist Who Rocks - 100+ images under their artist tag
Wallet After Summer Sale -
Artist -

Making features huggable
@Damaged
 
Would it be possible to also give out the tag slug of the artist tags?  
Currently the tag ids are not usable for any new api requests.
byte[]
Solar Supporter - 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
@Luna  
2. The fix you should take is to generate the missing video representations for these files.  
3. The fix you should take is to change all the usage of jpeg to jpg. (Note that this is a nontrivial data migration which requires renaming files.)
Interested in advertising on Derpibooru? Click here for information!
Sky Railroad Merch Shop!

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

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

Detailed syntax guide