Advertisement
252Scripter

Developers API

Nov 12th, 2022 (edited)
4,386
1
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 1 0
  1. --Pastebin Developer API 252Scripter--
  2. --Roblox Exploit Scripts--
  3. Developers API
  4. 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.
  5. 1. Your Unique Developer API Key
  6. 2. Creating A New Paste
  7. 3. Creating A New Paste, [Required Parameters]
  8. 4. Creating A New Paste, [Optional Parameters]
  9. 5. Creating A New Paste, The 'api_paste_format' Parameter In Detail
  10. 6. Creating A New Paste, The 'api_paste_expire_date' Parameter In Detail
  11. 7. Creating A New Paste, The 'api_paste_private' Parameter In Detail
  12. 8. Creating A New Paste, The 'api_folder_key' Parameter In Detail
  13. 9. Creating An 'api_user_key' Using The API Member Login System
  14. 10. Listing Pastes Created By A User
  15. 11. Deleting A Paste Created By A User
  16. 12. Getting A Users Information And Settings
  17. 13. Getting raw paste output of users pastes including 'private' pastes
  18. 14. Getting raw paste output of any 'public' & 'unlisted' pastes
  19. Your Unique Developer API Key
  20. 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:
  21. aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr
  22. Creating A New Paste
  23. 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
  24. as the UTF-8 charset.
  25. https://pastebin.com/api/api_post.php
  26. Below is a PHP example using curl how to create a new paste:
  27. $api_dev_key = 'aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr'; // your api_developer_key
  28. $api_paste_code = 'just some random text you :)'; // your paste text
  29. $api_paste_private = '1'; // 0=public 1=unlisted 2=private
  30. $api_paste_name = 'justmyfilename.php'; // name or title of your paste
  31. $api_paste_expire_date = '10M';
  32. $api_paste_format = 'php';
  33. $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
  34. $api_paste_name = urlencode($api_paste_name);
  35. $api_paste_code = urlencode($api_paste_code);
  36.  
  37. $url = 'https://pastebin.com/api/api_post.php';
  38. $ch = curl_init($url);
  39.  
  40. curl_setopt($ch, CURLOPT_POST, true);
  41. 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.'');
  42. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  43. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  44. curl_setopt($ch, CURLOPT_NOBODY, 0);
  45.  
  46. $response = curl_exec($ch);
  47. echo $response;
  48. Below is a curl command example how to create a new paste:
  49. 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"
  50. Possible Good API Responses: (example)
  51. https://pastebin.com/UIFdu235s
  52. Possible Bad API Responses:
  53. Bad API request, invalid api_option
  54. Bad API request, invalid api_dev_key
  55. Bad API request, maximum number of 25 unlisted pastes for your free account
  56. Bad API request, maximum number of 10 private pastes for your free account
  57. Bad API request, api_paste_code was empty
  58. Bad API request, maximum paste file size exceeded
  59. Bad API request, invalid api_paste_expire_date
  60. Bad API request, invalid api_paste_private
  61. Bad API request, invalid api_paste_format
  62. Bad API request, invalid api_user_key
  63. Bad API request, invalid or expired api_user_key
  64. Bad API request, you can't add paste to folder as guest
Advertisement
Comments
  • Fafula
    364 days
    1
    # text 3.89 KB | 0 0
    1. --Pastebin Developer API 252Scripter--
    2. --Roblox Exploit Scripts--
    3. Developers API
    4. 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.
    5. 1. Your Unique Developer API Key
    6. 2. Creating A New Paste
    7. 3. Creating A New Paste, [Required Parameters]
    8. 4. Creating A New Paste, [Optional Parameters]
    9. 5. Creating A New Paste, The 'api_paste_format' Parameter In Detail
    10. 6. Creating A New Paste, The 'api_paste_expire_date' Parameter In Detail
    11. 7. Creating A New Paste, The 'api_paste_private' Parameter In Detail
    12. 8. Creating A New Paste, The 'api_folder_key' Parameter In Detail
    13. 9. Creating An 'api_user_key' Using The API Member Login System
    14. 10. Listing Pastes Created By A User
    15. 11. Deleting A Paste Created By A User
    16. 12. Getting A Users Information And Settings
    17. 13. Getting raw paste output of users pastes including 'private' pastes
    18. 14. Getting raw paste output of any 'public' & 'unlisted' pastes
    19. Your Unique Developer API Key
    20. 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:
    21. aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr
    22. Creating A New Paste
    23. 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
    24. as the UTF-8 charset.
    25. https://pastebin.com/api/api_post.php
    26. Below is a PHP example using curl how to create a new paste:
    27. $api_dev_key = 'aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr'; // your api_developer_key
    28. $api_paste_code = 'just some random text you :)'; // your paste text
    29. $api_paste_private = '1'; // 0=public 1=unlisted 2=private
    30. $api_paste_name = 'justmyfilename.php'; // name or title of your paste
    31. $api_paste_expire_date = '10M';
    32. $api_paste_format = 'php';
    33. $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
    34. $api_paste_name = urlencode($api_paste_name);
    35. $api_paste_code = urlencode($api_paste_code);
    36.  
    37. $url = 'https://pastebin.com/api/api_post.php';
    38. $ch = curl_init($url);
    39.  
    40. curl_setopt($ch, CURLOPT_POST, true);
    41. 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.'');
    42. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    43. curl_setopt($ch, CURLOPT_VERBOSE, 1);
    44. curl_setopt($ch, CURLOPT_NOBODY, 0);
    45.  
    46. $response = curl_exec($ch);
    47. echo $response;
    48. Below is a curl command example how to create a new paste:
    49. 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"
    50. Possible Good API Responses: (example)
    51. https://pastebin.com/UIFdu235s
    52. Possible Bad API Responses:
    53. Bad API request, invalid api_option
    54. Bad API request, invalid api_dev_key
    55. Bad API request, maximum number of 25 unlisted pastes for your free account
    56. Bad API request, maximum number of 10 private pastes for your free account
    57. Bad API request, api_paste_code was empty
    58. Bad API request, maximum paste file size exceeded
    59. Bad API request, invalid api_paste_expire_date
    60. Bad API request, invalid api_paste_private
    61. Bad API request, invalid api_paste_format
    62. Bad API request, invalid api_user_key
    63. Bad API request, invalid or expired api_user_key
    64. Bad API request, you can't add paste to folder as guest
  • Fafula
    364 days
    # HTML 3.89 KB | 1 0
    1. --Pastebin Developer API 252Scripter--
    2. --Roblox Exploit Scripts--
    3. Developers API
    4. 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.
    5. 1. Your Unique Developer API Key
    6. 2. Creating A New Paste
    7. 3. Creating A New Paste, [Required Parameters]
    8. 4. Creating A New Paste, [Optional Parameters]
    9. 5. Creating A New Paste, The 'api_paste_format' Parameter In Detail
    10. 6. Creating A New Paste, The 'api_paste_expire_date' Parameter In Detail
    11. 7. Creating A New Paste, The 'api_paste_private' Parameter In Detail
    12. 8. Creating A New Paste, The 'api_folder_key' Parameter In Detail
    13. 9. Creating An 'api_user_key' Using The API Member Login System
    14. 10. Listing Pastes Created By A User
    15. 11. Deleting A Paste Created By A User
    16. 12. Getting A Users Information And Settings
    17. 13. Getting raw paste output of users pastes including 'private' pastes
    18. 14. Getting raw paste output of any 'public' & 'unlisted' pastes
    19. Your Unique Developer API Key
    20. 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:
    21. aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr
    22. Creating A New Paste
    23. 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
    24. as the UTF-8 charset.
    25. https://pastebin.com/api/api_post.php
    26. Below is a PHP example using curl how to create a new paste:
    27. $api_dev_key            = 'aL23vA-UXpKHvGuqL5_jJ4YIVZGY5Nrr'; // your api_developer_key
    28. $api_paste_code         = 'just some random text you :)'; // your paste text
    29. $api_paste_private      = '1'; // 0=public 1=unlisted 2=private
    30. $api_paste_name         = 'justmyfilename.php'; // name or title of your paste
    31. $api_paste_expire_date      = '10M';
    32. $api_paste_format       = 'php';
    33. $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
    34. $api_paste_name         = urlencode($api_paste_name);
    35. $api_paste_code         = urlencode($api_paste_code);
    36.  
    37. $url                = 'https://pastebin.com/api/api_post.php';
    38. $ch                 = curl_init($url);
    39.  
    40. curl_setopt($ch, CURLOPT_POST, true);
    41. 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.'');
    42. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    43. curl_setopt($ch, CURLOPT_VERBOSE, 1);
    44. curl_setopt($ch, CURLOPT_NOBODY, 0);
    45.  
    46. $response           = curl_exec($ch);
    47. echo $response;
    48. Below is a curl command example how to create a new paste:
    49. 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"
    50. Possible Good API Responses: (example)
    51. https://pastebin.com/UIFdu235s
    52. Possible Bad API Responses:
    53. Bad API request, invalid api_option
    54. Bad API request, invalid api_dev_key
    55. Bad API request, maximum number of 25 unlisted pastes for your free account
    56. Bad API request, maximum number of 10 private pastes for your free account
    57. Bad API request, api_paste_code was empty
    58. Bad API request, maximum paste file size exceeded
    59. Bad API request, invalid api_paste_expire_date
    60. Bad API request, invalid api_paste_private
    61. Bad API request, invalid api_paste_format
    62. Bad API request, invalid api_user_key
    63. Bad API request, invalid or expired api_user_key
    64. Bad API request, you can't add paste to folder as guest
Add Comment
Please, Sign In to add comment
Advertisement