Danbooru
Login Posts Comments Notes Artists Tags Pools Wiki Forum More ยป
Search Changes Help
  • |
  • Posts (0) History

    Blacklisted (help)

    • guro
    • scat
    • furry -rating:g
    Disable all Re-enable all

    Recent Changes (all)

    • doot (meme)
    • wildwords (font)
    • broadway (font)
    • joe kubert (font)
    • gudaguda honnouji
    • girls band cry rpg
    • blueprint (balatro)
    • uikousen (shigure ui)
    • aiobahn
    • faux 3d
    • gals fiction
    • railing
    • negiwolf
    • mobile force gangaru
    • taiyoukei sentai guldan
    • the animage
    • small penis
    • list of gundam titles
    • koko-robo
    • idog (brand)
    • sega
    • wappy dog
    • list of vocaloid songs
    • radiant revival (vocaloid)
    • digital stars miku (2025)

    Options

    • Wiki History
    • Discussions
    • What Links Here

    api:wiki pages

    Table of Contents
    • 01. Record field format
    • 02. Derived field format
    • 03. Associated attributes
    • 04. Index
    • 05. Show
    • 06. Create
    • 07. Update
    • 08. Delete
    • 09. Revert
    • 10. See also

    The following includes the details of how to interface with the wiki page records through the API.

    Record field format

    NameTypeDetails
    idinteger>0
    titlestring
    bodystring
    other_namesarraystrings
    is_deletedboolean
    lockedboolean
    created_attimestamp
    updated_attimestamp

    Derived field format

    These are values which are not part of the actual record, but instead are derived from calculations and record lookups on the fly.

    NameTypeDetailsNotes
    category_namestring[0,1,3,4,5,null]It is the category of the associated tag if it exists, otherwise it is null.

    Associated attributes

    NameTypeNumberAvailabilityDetails
    tagtagsingleoptional
    artistartistsingleoptional
    dtext_linksdtext linkmultipleoptional

    Nomenclature

    • Plural form: "wiki_pages"
      • Used in the URL pathname
    • Singular form: "wiki_page"
      • Used for write parameters (Help:API Write Requests)
    • Versions: API:Wiki page versions

    Index

    HTTP MethodGET
    Base URL/wiki_pages.json
    Typeread request
    DescriptionThe default order is updated at descending.
    Search attributes

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

    • Number syntax
      • id
      • created_at
      • updated_at
    • Text syntax
      • title
      • body
    • Array syntax
      • other_names
    • Boolean syntax
      • is_deleted
      • is_locked
    • Chaining syntax
      • tag
      • artist
      • dtext_links
    Special search parameters
    • body_matches - Case-insensitive wildcard searching on the body text field.
    • title_normalize - Normalized case-insensitive wildcard searching on the title text field.
    • other_names_match - Case-insensitive wildcard search on any of the other names.
    • linked_to - All wiki pages that link to the given wiki title.
    • not_linked_to - All wiki pages that do not link to the given wiki title.
    • hide_deleted - Hides all deleted wikis (boolean syntax).
      • Shortcut for search[is_deleted]=false
    • other_names_present - Shows wikis based on the presence of other names (boolean syntax).
      • Shortcut for search[other_name_count]=>0 (TRUE) and search[other_name_count]=0 (FALSE)
    • order - Sets the order of results.
      • title - Alphabetical order on the title.
      • post_count - Orders by post count.

    Show

    HTTP MethodGET
    Base URL/wiki_pages/$id.json
    Typeread request
    Description$id is the wiki page ID or title.

    Create

    HTTP MethodPOST
    Base URL/wiki_pages.json
    Typewrite request
    Create parameters
    • Required:
      • title
    • Optional
      • body
      • other_names - Uses URL array parameter format.
      • other_names_string - Space delimited list of post IDs.
      • is_deleted
      • is_locked

    Update

    HTTP MethodPUT/PATCH
    Base URL/wiki_pages/$id.json
    Typewrite request
    Description$id is the wiki page ID or title.
    Update parameters

    Accepts the same parameters as the create wiki page action. All parameters are optional.

    Delete

    HTTP MethodDELETE
    Base URL/wiki_pages/$id.json
    Typewrite request
    Description$id is the wiki page ID or title.

    Note: This action can also be accomplished using the update wiki page action by setting is_deleted to true.

    Revert

    HTTP MethodPUT
    Base URL/wiki_pages/$id/revert.json
    Typewrite request
    Description$id is the wiki page ID or title.
    Revert parameters
    • Required:
      • version_id - The wiki page version ID to revert to.

    See also

    • Help:Common URL Parameters
    • Help:API

    External links

    Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/wiki_pages_controller.rb
    Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/wiki_page.rb
    Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/wiki_page_policy.rb
    Terms / Privacy / Upgrade / Contact /