Skip to main content
GET
/
posts
/
{code}
Get post
curl --request GET \
  --url https://api.snipp.gg/posts/{code} \
  --header 'api-key: <api-key>'
{
  "post": {
    "code": "AbCd1234",
    "url": "https://i.snipp.gg/123456789012345678/example.png",
    "title": "My screenshot",
    "description": "A cool screenshot",
    "postPrivacy": "public",
    "created": "2025-01-02T00:00:00.000Z",
    "file": {
      "size": 2621440,
      "size_formatted": "2.50 MB",
      "mime_type": "image/png",
      "dimensions": {
        "width": 1920,
        "height": 1080
      }
    }
  }
}
Use this endpoint to fetch a post by its share code.

Behavior

  • Returns the post’s metadata including its direct file URL, title, description, privacy, and creation date.
  • Private posts are only visible to the owner. Requests for another user’s private post return 404.
  • Moderated posts may still be returned but their file URL may be unavailable.

Examples

Fetch a post by code:
curl -X GET "https://api.snipp.gg/posts/AbCd1234" \
  -H "api-key: YOUR_API_KEY"

Authorizations

api-key
string
header
required

Your API key from Snipp.gg

Path Parameters

code
string
required

The share code of the post

Response

Post data

post
object