Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Pastebin Developer API 252Scripter--
- --Roblox Exploit Scripts--
- Developers API
- This is the Pastebin.com developers API documentation page. Here you can find all the information you need to get started with our API. If you have questions, feel free to contact us. If you are a developer, and you are building something for Pastebin which might benefit others as well, be sure to contact us, as we might be able to feature your creation on our tools page.
- 1. Your Unique Developer API Key
- 2. Creating A New Paste
- 3. Creating A New Paste, [Required Parameters]
- 4. Creating A New Paste, [Optional Parameters]
- 5. Creating A New Paste, The 'api_paste_format' Parameter In Detail
- 6. Creating A New Paste, The 'api_paste_expire_date' Parameter In Detail
- 7. Creating A New Paste, The 'api_paste_private' Parameter In Detail
- 8. Creating A New Paste, The 'api_folder_key' Parameter In Detail
- 9. Creating An 'api_user_key' Using The API Member Login System
- 10. Listing Pastes Created By A User
- 11. Deleting A Paste Created By A User
- 12. Getting A Users Information And Settings
- 13. Getting raw paste output of users pastes including 'private' pastes
- 14. Getting raw paste output of any 'public' & 'unlisted' pastes
- Your Unique Developer API Key
- Everybody using our API is required to use a valid Developer API Key. You automatically get a key when you become a member of Pastebin. For that reason we require you to be logged into your account to access this page. Your key is shown in the box below:
- aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr
- Creating A New Paste
- Creating a new paste via our API is very easy. You simply have to send a valid POST request to the url shown below. Please make sure you are sending the data
- as the UTF-8 charset.
- https://pastebin.com/api/api_post.php
- Below is a PHP example using curl how to create a new paste:
- $api_dev_key = 'aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr'; // your api_developer_key
- $api_paste_code = 'just some random text you :)'; // your paste text
- $api_paste_private = '1'; // 0=public 1=unlisted 2=private
- $api_paste_name = 'justmyfilename.php'; // name or title of your paste
- $api_paste_expire_date = '10M';
- $api_paste_format = 'php';
- $api_user_key = ''; // if an invalid or expired api_user_key is used, an error will spawn. If no api_user_key is used, a guest paste will be created
- $api_paste_name = urlencode($api_paste_name);
- $api_paste_code = urlencode($api_paste_code);
- $url = 'https://pastebin.com/api/api_post.php';
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=paste&api_user_key='.$api_user_key.'&api_paste_private='.$api_paste_private.'&api_paste_name='.$api_paste_name.'&api_paste_expire_date='.$api_paste_expire_date.'&api_paste_format='.$api_paste_format.'&api_dev_key='.$api_dev_key.'&api_paste_code='.$api_paste_code.'');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
- curl_setopt($ch, CURLOPT_NOBODY, 0);
- $response = curl_exec($ch);
- echo $response;
- Below is a curl command example how to create a new paste:
- curl -X POST -d 'api_dev_key=aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr' -d 'api_paste_code=test' -d 'api_option=paste' "https://pastebin.com/api/api_post.php"
- Possible Good API Responses: (example)
- https://pastebin.com/UIFdu235s
- Possible Bad API Responses:
- Bad API request, invalid api_option
- Bad API request, invalid api_dev_key
- Bad API request, maximum number of 25 unlisted pastes for your free account
- Bad API request, maximum number of 10 private pastes for your free account
- Bad API request, api_paste_code was empty
- Bad API request, maximum paste file size exceeded
- Bad API request, invalid api_paste_expire_date
- Bad API request, invalid api_paste_private
- Bad API request, invalid api_paste_format
- Bad API request, invalid api_user_key
- Bad API request, invalid or expired api_user_key
- Bad API request, you can't add paste to folder as guest
Advertisement
Comments
-
- --Pastebin Developer API 252Scripter--
- --Roblox Exploit Scripts--
- Developers API
- This is the Pastebin.com developers API documentation page. Here you can find all the information you need to get started with our API. If you have questions, feel free to contact us. If you are a developer, and you are building something for Pastebin which might benefit others as well, be sure to contact us, as we might be able to feature your creation on our tools page.
- 1. Your Unique Developer API Key
- 2. Creating A New Paste
- 3. Creating A New Paste, [Required Parameters]
- 4. Creating A New Paste, [Optional Parameters]
- 5. Creating A New Paste, The 'api_paste_format' Parameter In Detail
- 6. Creating A New Paste, The 'api_paste_expire_date' Parameter In Detail
- 7. Creating A New Paste, The 'api_paste_private' Parameter In Detail
- 8. Creating A New Paste, The 'api_folder_key' Parameter In Detail
- 9. Creating An 'api_user_key' Using The API Member Login System
- 10. Listing Pastes Created By A User
- 11. Deleting A Paste Created By A User
- 12. Getting A Users Information And Settings
- 13. Getting raw paste output of users pastes including 'private' pastes
- 14. Getting raw paste output of any 'public' & 'unlisted' pastes
- Your Unique Developer API Key
- Everybody using our API is required to use a valid Developer API Key. You automatically get a key when you become a member of Pastebin. For that reason we require you to be logged into your account to access this page. Your key is shown in the box below:
- aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr
- Creating A New Paste
- Creating a new paste via our API is very easy. You simply have to send a valid POST request to the url shown below. Please make sure you are sending the data
- as the UTF-8 charset.
- https://pastebin.com/api/api_post.php
- Below is a PHP example using curl how to create a new paste:
- $api_dev_key = 'aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr'; // your api_developer_key
- $api_paste_code = 'just some random text you :)'; // your paste text
- $api_paste_private = '1'; // 0=public 1=unlisted 2=private
- $api_paste_name = 'justmyfilename.php'; // name or title of your paste
- $api_paste_expire_date = '10M';
- $api_paste_format = 'php';
- $api_user_key = ''; // if an invalid or expired api_user_key is used, an error will spawn. If no api_user_key is used, a guest paste will be created
- $api_paste_name = urlencode($api_paste_name);
- $api_paste_code = urlencode($api_paste_code);
- $url = 'https://pastebin.com/api/api_post.php';
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=paste&api_user_key='.$api_user_key.'&api_paste_private='.$api_paste_private.'&api_paste_name='.$api_paste_name.'&api_paste_expire_date='.$api_paste_expire_date.'&api_paste_format='.$api_paste_format.'&api_dev_key='.$api_dev_key.'&api_paste_code='.$api_paste_code.'');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
- curl_setopt($ch, CURLOPT_NOBODY, 0);
- $response = curl_exec($ch);
- echo $response;
- Below is a curl command example how to create a new paste:
- curl -X POST -d 'api_dev_key=aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr' -d 'api_paste_code=test' -d 'api_option=paste' "https://pastebin.com/api/api_post.php"
- Possible Good API Responses: (example)
- https://pastebin.com/UIFdu235s
- Possible Bad API Responses:
- Bad API request, invalid api_option
- Bad API request, invalid api_dev_key
- Bad API request, maximum number of 25 unlisted pastes for your free account
- Bad API request, maximum number of 10 private pastes for your free account
- Bad API request, api_paste_code was empty
- Bad API request, maximum paste file size exceeded
- Bad API request, invalid api_paste_expire_date
- Bad API request, invalid api_paste_private
- Bad API request, invalid api_paste_format
- Bad API request, invalid api_user_key
- Bad API request, invalid or expired api_user_key
- Bad API request, you can't add paste to folder as guest
-
- --Pastebin Developer API 252Scripter--
- --Roblox Exploit Scripts--
- Developers API
- This is the Pastebin.com developers API documentation page. Here you can find all the information you need to get started with our API. If you have questions, feel free to contact us. If you are a developer, and you are building something for Pastebin which might benefit others as well, be sure to contact us, as we might be able to feature your creation on our tools page.
- 1. Your Unique Developer API Key
- 2. Creating A New Paste
- 3. Creating A New Paste, [Required Parameters]
- 4. Creating A New Paste, [Optional Parameters]
- 5. Creating A New Paste, The 'api_paste_format' Parameter In Detail
- 6. Creating A New Paste, The 'api_paste_expire_date' Parameter In Detail
- 7. Creating A New Paste, The 'api_paste_private' Parameter In Detail
- 8. Creating A New Paste, The 'api_folder_key' Parameter In Detail
- 9. Creating An 'api_user_key' Using The API Member Login System
- 10. Listing Pastes Created By A User
- 11. Deleting A Paste Created By A User
- 12. Getting A Users Information And Settings
- 13. Getting raw paste output of users pastes including 'private' pastes
- 14. Getting raw paste output of any 'public' & 'unlisted' pastes
- Your Unique Developer API Key
- Everybody using our API is required to use a valid Developer API Key. You automatically get a key when you become a member of Pastebin. For that reason we require you to be logged into your account to access this page. Your key is shown in the box below:
- aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr
- Creating A New Paste
- Creating a new paste via our API is very easy. You simply have to send a valid POST request to the url shown below. Please make sure you are sending the data
- as the UTF-8 charset.
- https://pastebin.com/api/api_post.php
- Below is a PHP example using curl how to create a new paste:
- $api_dev_key = 'aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr'; // your api_developer_key
- $api_paste_code = 'just some random text you :)'; // your paste text
- $api_paste_private = '1'; // 0=public 1=unlisted 2=private
- $api_paste_name = 'justmyfilename.php'; // name or title of your paste
- $api_paste_expire_date = '10M';
- $api_paste_format = 'php';
- $api_user_key = ''; // if an invalid or expired api_user_key is used, an error will spawn. If no api_user_key is used, a guest paste will be created
- $api_paste_name = urlencode($api_paste_name);
- $api_paste_code = urlencode($api_paste_code);
- $url = 'https://pastebin.com/api/api_post.php';
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=paste&api_user_key='.$api_user_key.'&api_paste_private='.$api_paste_private.'&api_paste_name='.$api_paste_name.'&api_paste_expire_date='.$api_paste_expire_date.'&api_paste_format='.$api_paste_format.'&api_dev_key='.$api_dev_key.'&api_paste_code='.$api_paste_code.'');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
- curl_setopt($ch, CURLOPT_NOBODY, 0);
- $response = curl_exec($ch);
- echo $response;
- Below is a curl command example how to create a new paste:
- curl -X POST -d 'api_dev_key=aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr' -d 'api_paste_code=test' -d 'api_option=paste' "https://pastebin.com/api/api_post.php"
- Possible Good API Responses: (example)
- https://pastebin.com/UIFdu235s
- Possible Bad API Responses:
- Bad API request, invalid api_option
- Bad API request, invalid api_dev_key
- Bad API request, maximum number of 25 unlisted pastes for your free account
- Bad API request, maximum number of 10 private pastes for your free account
- Bad API request, api_paste_code was empty
- Bad API request, maximum paste file size exceeded
- Bad API request, invalid api_paste_expire_date
- Bad API request, invalid api_paste_private
- Bad API request, invalid api_paste_format
- Bad API request, invalid api_user_key
- Bad API request, invalid or expired api_user_key
- Bad API request, you can't add paste to folder as guest
Add Comment
Please, Sign In to add comment
Advertisement