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)

  • star fox
  • apocalypse
  • pool group:expression
  • death flag
  • pool groups
  • warrior of light (ff14)
  • komano aunn
  • komainu girl
  • specter the unchained (arknights)
  • trinity general school sportswear
  • specter (arknights)
  • azusa (blue archive)
  • reed the flame shadow (arknights)
  • reed (arknights)
  • trinity general school swimsuit
  • liu kang (fire god)
  • skadi (arknights)
  • sara (fire emblem)
  • stutter
  • viola (crystalplanet00)
  • canis (fire emblem)
  • heparin
  • menhina
  • kiss
  • gyaru snivy (makaroni)

Options

  • Wiki History
  • Discussions
  • What Links Here

api:post versions

Table of Contents
  • 1. Record field format
  • 2. Associated attributes
  • 3. Nomenclature
  • 4. Index
  • 5. See also
  • 6. External links

The following includes the details of how to interface with the post version records through the API.

Record field format

NameTypeDetails
idinteger>0
post_idinteger>0
tagsstringspace delineated, tag format
added_tagsarraystring, tag format
removed_tagsarraystring, tag format
ratingstring[g, s, q, e]
parent_idinteger>0 or null
sourcestring
rating_changedboolean
parent_changedboolean
source_changedboolean
versioninteger>0
updater_idinteger>0
updated_attimestamp
updater_addr_ipinetLimited to Moderator+

Associated attributes

NameTypeNumberAvailabilityDetails
postpostsinglerequired
updaterusersinglerequired

Nomenclature

  • Plural form: "post_versions"
    • Used in the URL pathname
  • Singular form: "post_version"
    • Unused
  • Version of: API:Posts

Index

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

All of the following are standard attributes with all of their available formats and qualifiers.

  • Number syntax
    • id
    • post_id
    • parent_id
    • updater_id
    • version
    • updated_at
  • Text syntax
    • tags
    • rating
    • source
  • Boolean syntax
    • rating_changed
    • parent_changed
    • source_changed
  • Array syntax
    • added_tags
    • removed_tags
Special search parameters
  • all_changed_tags - Search where all tags in the list must be either an added tag or removed tag
    • The list of tags is space-delineated
    • changed_tags performs the same search
  • any_changed_tags - Search where at least one tag in the list must be either an added tag or removed tag
    • The list of tags is space-delineated
  • tag_matches - Case-insensitive search of the tag string
    • If asterisks ( * ) are missing from the input, it adds an asterisk to either side of the tag
    • It ignores all input after the first word, so only one word can be searched
  • updater_name - Searches by updater name instead of updater ID
  • is_new - Boolean syntax
    • Shorthand search for version=1 or version=>1

See also

  • Help:Common URL Parameters
  • Help:API

External links

Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/post_versions_controller.rb
Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/post_version.rb
Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/post_version_policy.rb
Terms / Privacy / Upgrade / Contact /