Posts
Get Post
Fetch a post by its share code.
GET
Get Post
Fetch a post by its share code.
Someone else’s post.
An album:
A team post:
Behavior
fileslists every file in the post, in order.file_countis its length; a post with more than one file is an album.urlis the share page. Eachfiles[].urlis the direct file. On private posts the file and thumbnail URLs are signed and expire after 24 hours; fetch the post again for fresh ones.files[].nameis what Delete File takes.files[].thumbnail_urlis a still frame for videos uploaded withPOST /upload, andnullotherwise.width,height,sizeandmime_typearenullwhen unknown.likedis whether you have liked the post.moderatedandrestrictedare only present when you own the post. A restricted post keeps its privacy, is hidden from Discover and profiles, and cannot be made public.- When you own a personal post, it also carries
access: the users who can open it while it is private. Change it with Update Post. Each entry hassuspended, true while that account is suspended; show it dimmed rather than hiding it, since nothing about the access changes. - Each request counts a view on public posts that are not moderated. Views are deduplicated per IP and post: up to 3 counted views per IP per post per hour. The returned
view_countincludes the view just counted. - Who can see what:
- Drafts are visible only to their owner.
- Private posts are visible to their owner and to users the owner has given access to.
- Team posts are visible only to members of that team. They have
team_idset andlike_countandlikedarenull, since team posts cannot be liked. - Posts whose owner is suspended are visible only to the owner.
- Anyone else gets
404with typenot_found.
- A moderated post is returned in full to its owner, with
moderated: true. Anyone else who could otherwise see it gets403with typemoderated. - If the post’s author has blocked you, the response is
403with typeblocked. - Shares a rate limit bucket with
GET /users/{id}/posts.
Examples
Responses
Your own post:moderated and restricted are omitted: