Get post

One post with its full content, tags and trail.

GET https://cotlet.dev/api/v1/tumblr/posts/{post_id}

read

Returns the whole post: text blocks, image and link blocks, tags, state and, for a reblog, the trail of earlier posts. Use it before edit_post or reblog_post to see what a post holds.

Parameters

Parameters: get_post
NameTypeDescription
blog string required string Blog name, e.g. 'studio-notes' for studio-notes.tumblr.com. Names come from list_blogs.
post_id string required string Post ID from list_posts, list_queue or list_drafts.

Request

cURL
curl "https://cotlet.dev/api/v1/tumblr/posts/post_8c41d2?blog=studio-notes" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("tumblr", "get_post", {"blog":"studio-notes","post_id":"post_8c41d2"})
Node.js
const result = await cotlet.call('tumblr', 'get_post', {"blog":"studio-notes","post_id":"post_8c41d2"});
CLI
cotlet call tumblr get_post --data '{"blog":"studio-notes","post_id":"post_8c41d2"}'

Example response

JSON

{
  "post_id": "7712345600123",
  "blog": "pixel-lab",
  "state": "published",
  "content": [
    {
      "type": "text",
      "text": "Harbor town sprite sheet, 16 colors."
    },
    {
      "type": "image",
      "alt": "Sprite sheet of a harbor town"
    }
  ],
  "tags": [
    "pixel art",
    "sprites"
  ],
  "note_count": 842,
  "url": "https://pixel-lab.tumblr.com/post/7712345600123"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.