Get a post
GET/v1/posts/{id}
Returns a post with its text, poll, images and community.
Request
curl -g "https://api.nogitsu.com/v1/posts/{id}"Parameters
idpathrequired
Id of the item, a UUID.
text
revealqueryoptional
Set to 1 to include the text of a post marked as a spoiler.
text
Allowed values1
Answer
A successful request answers 200 with this JSON:
idtext (uuid)slugtextcommunityobjectidtext (uuid)slugtextlanguagetextkindtextAllowed valuesworkboardusernametexticonUrltext (uri)can be nullthemetextAllowed valuesvioletblueskycyanemeraldgreenyellowamberrosepinkisSampletrue or false
authorobjectcan be nullusernametextdisplayNametextavatarUrltext (uri)can be null
authorFlairtextcan be nullkindtextAllowed valuestextlinkimagepolltitletextcan be nullexcerpttextcan be nullflairobjectcan be nullidtext (uuid)labeltexttonetextAllowed valuesneutralaccentsuccesswarningdangervioletblueskycyanemeraldgreenyellowamberrosepink
spoilerobjectcan be nullworkTitletextcan be nullunitNumbernumbercan be nullAt least 0
workobjectcan be nullidtext (uuid)titletextmediumtextAllowed valuesanimedonghuaanimationmangamanhwamanhuawebtoonslugtextunitNumbernumbercan be nullAt least 0
isAdulttrue or falseisPinnedtrue or falseisLockedtrue or falsescorewhole numbercan be nullFrom -9007199254740991 to 9007199254740991
commentCountwhole numberFrom 0 to 9007199254740991
reactionslist of objectkindtextAllowed valueslovelaughwowsadclapfirethinkangrypartycrycountwhole numberFrom 0 to 9007199254740991
linkobjectcan be nullurltext (uri)hosttexttitletextcan be nulldescriptiontextcan be nullimageobjectcan be nullurltext (uri)widthwhole numberFrom 0 to 9007199254740991
heightwhole numberFrom 0 to 9007199254740991
alttextcan be nullvariantWidthslist of whole numberFrom 0 to 9007199254740991
isPendingtrue or false
imageslist of objecturltext (uri)widthwhole numberFrom 0 to 9007199254740991
heightwhole numberFrom 0 to 9007199254740991
alttextcan be nullvariantWidthslist of whole numberFrom 0 to 9007199254740991
pollobjectcan be nulloptionslist of objectidtext (uuid)labeltextvoteCountwhole numbercan be nullFrom 0 to 9007199254740991
totalVoteswhole numberFrom 0 to 9007199254740991
closesAttext (date-time)isClosedtrue or falseallowsMultipletrue or false
createdAttext (date-time)editedAttext (date-time)can be nullbodyobjectcan be nullblockslist of one of several shapesOption 1
typetextAllowed valuesparagraphchildrenlist of one of several shapesOption 1
typetextAllowed valuestexttexttextmarkslist of any value
Option 2
typetextAllowed valueslinkhreftext (uri)childrenlist of any value
Option 3
typetextAllowed valuesmentionusernametext
Option 4
typetextAllowed valuesspoilerspoilerIdtextchildrenlist of any valuecan be null
Option 5
typetextAllowed valuesbreak
Option 2
typetextAllowed valuesheadingchildrenlist of one of several shapesOption 1
typetextAllowed valuestexttexttextmarkslist of any value
Option 2
typetextAllowed valueslinkhreftext (uri)childrenlist of any value
Option 3
typetextAllowed valuesmentionusernametext
Option 4
typetextAllowed valuesspoilerspoilerIdtextchildrenlist of any valuecan be null
Option 5
typetextAllowed valuesbreak
Option 3
typetextAllowed valuesquotechildrenlist of RichTextBlock
Option 4
typetextAllowed valueslistisOrderedtrue or falseitemslist of list of RichTextBlock
Option 5
typetextAllowed valuescodetexttext
isDeletedtrue or false
Errors
Like every operation, this one can answer 400 for invalid parameters, 404 when nothing is found and 429 when you send too many requests. All errors share one shape.