AniworldAI
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)

  • chihaya senri
  • kirakano
  • hagakure yuzuru
  • kirameki kirara
  • kiraboshi runa
  • nishizono chigusa (2nd costume)
  • nishizono chigusa (3rd costume)
  • nishizono chigusa (4th costume)
  • sarazanmai
  • nishizono chigusa (jirai kei)
  • nishizono chigusa (loungewear)
  • suo sango (4th costume)
  • todo kohaku (3rd costume)
  • todo kohaku (2nd costume)
  • todo kohaku (1st costume)
  • medianoche (zutomayo)
  • fukuhara tamon
  • standing on business pose (meme)
  • netorase
  • omaru polka (waitress)
  • omaru polka (school uniform)
  • brown sky
  • forced partners
  • yonaga akina
  • swinging (relationship)

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
  • Text 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:Hash syntax])
  • 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 / Автор зеркала /