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)

  • lappland (arknights)
  • swire the elegant wit (a prosperous visage) (arknights)
  • shu (everflowing waters) (arknights)
  • lumen (inquisition uniform) (arknights)
  • list of ultra series characters
  • phantom (messenger) (arknights)
  • ragi zwe nento
  • han solo
  • nipples
  • sayo (project moon)
  • nipples visible through clothes
  • satsujinki
  • personality switch
  • sunset shimmer (human)
  • sci-twi
  • body switch
  • zoophobia (comic)
  • tsukihime (remake)
  • goat mask
  • dr. arach
  • red army uniform (eddsworld)
  • metastasis (tsukihime)
  • jesselton williams (arknights)
  • list of sennen sensou aigis characters
  • birthstone

Options

  • Wiki History
  • Discussions
  • What Links Here

help:api read requests

These are API requests which use the HTTP GET or POST methods.

Limit

Read requests are unlimited for all user levels.

URL parameters

When doing a read through a GET request, the parameters must be passed in through the URL, and must use URL hash format (Help:Hash format).

Body parameters

When doing a read through a POST request, the parameters must be passed in through the body. See the method override below for more information [1].

URL encoding

These parameters use URL hash encoding (Help:Hash format).

  • Content-Type: application/x-www-form-urlencoded
  • Format: PARAMETER=VALUE
  • Example: search[name]=test&limit=20_method=get
JSON encoding

These parameters use JSON hash encoding [2].

  • Content-Type: application/json
  • Format: { "OBJECT": { "PARAMETER": VALUE } }
  • Example: { "search": { "name": "test" }, "limit": 20}

Using POST for GET override

The POST method can be used to send data to endpoints that require the GET method, in such cases where the parameters must be sent in the body, such as the URL limit being exceeded.

URL encoding

Set the parameter _method with the value "get".

JSON encoding

Set the X-HTTP-Method-Override header with value "get".

See also

  • Help:API write requests
  • Help:API

External links

[1] https://www.w3resource.com/JSON/structures.php

Terms / Privacy / Upgrade / Contact /