Danbooru
Login Posts Comments Notes Artists Tags Pools Wiki Forum More ยป
Search Changes Help | Posts (0) History
  • Help
guro
scat
furry -rating:g

Recent Changes (all)

  • hishi akebono (umamusume)
  • list of grimms notes characters
  • forced cunnilingus
  • akaname
  • cruiser d.va
  • nine (sonic)
  • feathered dinosaur
  • yutyrannus
  • mixer (cooking)
  • blender (object)
  • chilantaisaurus
  • wuerhosaurus
  • lagoon
  • toriko no shirabe -refrain- chouritsu sareru otome-tachi to onna kyoushi
  • vine whip
  • prisoner invincible
  • toriko no shirabe -refrain- if
  • riding crop
  • approve please genie (vocaloid)
  • long haired invincible
  • flaxan invincible
  • mechanical tentacles
  • miraclesonic expassion (idolmaster)
  • maruzensky (umamusume)
  • golden axe ii

Options

  • Wiki History
  • Discussions
  • What Links Here

api:uploads

Table of Contents
  • 01. Record field format
  • 02. Associated attributes
  • 03. Index
  • 04. Show
  • 05. Create
  • 06. See also
  • 07. External links

This page has details for how to interact with upload records through the API.

01 Record field format


NameTypeDetails
idinteger>0
uploader_idinteger>0
sourcestring
referer_urlstring
media_asset_countinteger
statusstring
errorstring or null
created_attimestamp
updated_attimestamp

02 Associated attributes


The following is the list of relations that can be included in the API results (see Help:Common URL parameters for more info):

NameTypeNumberAvailabilityDetails
uploaderusersinglerequired
upload_media_assetsupload media assetmultiplerequired
media_assetsmedia assetmultiplerequired
postspostmultipleoptional

03 Index


Returns multiple upload records.

HTTP MethodGET
Base URL/uploads.json
Typeread request
DescriptionThe default order is ID descending
Search attributes

Search parameters take the following format (see Help:Common URL parameters for more info):

search[FIELD]=VALUE

The following are the base fields along with their associated type. Check the syntax pages for all of the available variations.

  • Number syntax
    • id
    • media_asset_count
    • created_at
    • updated_at
  • String syntax
    • status
    • source
    • referer_url
  • Post syntax
    • posts
  • User syntax
    • uploader
  • Chaining syntax
    • media_assets
    • upload_media_assets
Special search parameters

The following are additional search fields.

  • is_posted - Whether to show uploads that have a post or not (Help:Boolean syntax).
Search order

Using the search parameter order with one of the following values changes the order of the results.

  • id - ID descending.
  • id_desc - ID descending.
  • id_asc - ID descending.
  • random - Random order.
  • custom - (See Help:Common URL parameters for more details)

04 Show


Returns a single upload record.

HTTP MethodGET
Base URL/uploads/$id.json
Typeread request
Description$id is the upload ID

05 Create


Creates a single upload record.

HTTP MethodPOST
Base URL/uploads.json
Typewrite request
Create parameters

Upload parameters take the following format (see Help:API Write Requests for more info):

Upload[FIELD]=VALUE
  • Mandatory: One of these values must be present.
    • source
    • files (Help:Array format])
  • Optional:
    • referer_url

06 See also


  • Help:Common URL Parameters
  • Help:API

07 External links


Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/uploads_controller.rb
Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/upload.rb
Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/upload_policy.rb
Terms / Privacy / Upgrade / Contact /