Skip to content

Instantly share code, notes, and snippets.

@Atulin
Last active December 8, 2019 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Atulin/8d9c30f387291f5de46bd3fa80e330ae to your computer and use it in GitHub Desktop.
Save Atulin/8d9c30f387291f5de46bd3fa80e330ae to your computer and use it in GitHub Desktop.

Differences between old and new Derpibooru APIs

Single image

Old route: https://derpibooru.org/:id.json
New route: https://philomena.derpibooru.org/api/v1/json/images/:id

  • New API's response is wrapped in image:{} object
  • original_formatformat
  • file_namename
  • imageview_url
  • Removed is_optimized
  • Removed is_rendered
  • Added processed (bool)
  • Added thumbnails_generated (bool)
  • Added wilson_score (double)
  • Changed tags from string to string[]
  • Changed date format from 2012-07-15T04:32:31.000Z to 2012-07-15T04:32:31, removing miliseconds and timezone
  • Image URLs now start with proper https:// protocol instead of //

Search results

Old route: https://derpibooru.org/search.json?q=:query
New route: https://philomena.derpibooru.org/api/v1/json/search?q=:query

  • search => images
  • Image objects within images follow single-image changes
  • Removed total
  • For random image, &sf=random instead of &random_image=y. Returns a whole list of images instead of an image ID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment