Getting raw paste output of users pastes
including 'private' pastes
With this API you can obtain the raw paste output of a users pastes, including private pastes:
https://pastebin.com/api/api_raw.php
Include all the following POST parameters when you request the URL:
1. api_dev_key - this is your API Developer Key, in your case: fd964aa048db20c1633510aa64ecc893
2. api_user_key - this is the session key of the logged in user. How to obtain such a key
3. api_paste_key - this is paste key you want to fetch the data from.
4. api_option - set as 'show_paste'
Below is a PHP example using cURL how to fetch a users raw paste output:
$api_dev_key = 'fd964aa048db20c1633510aa64ecc893';
$api_user_key = '';
$url = '
https://pastebin.com/api/api_raw.php';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=show_paste&api_user_key='.$api_user_key.'&api_dev_key='.$api_dev_key.'&api_paste_key=A_VALID_PASTE_KEY_HERE');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_NOBODY, 0);
$response = curl_exec($ch);
echo $response;
...