Skip to main content

/api/v1/bins/[id]

caution

This endpoint requires authentication using an API key.

GET: Get pastebin details

Params

  • [id]: The pastebin id

Headers

  • Authentication: API-KEY-HERE

200 (OK)

FieldTypeDescription
dateDateThe upload date
domainstringThe user this pastebin is from
highlightstringType of content in the pastebin*
idstringThe name of the pastebin
viewsnumberThe amount of views the pastebin has
visiblebooleanWhether the pastebin is visible to everyone or not
passwordbooleanWhether the password protection is enabled or not
contentstringThe pastebin content

* For a list of highlight types, check out this list

{
"date": "2023-10-17T11:37:49.109Z",
"domain": "cdn.ijskoud.dev",
"highlight": "plaintext",
"id": "8KyUGj0gDfRD",
"views": 7,
"visible": true,
"password": false,
"content": "..."
}