We've packages for some languages , check if we support the one your using down below .
Language | Supported | Version |
---|---|---|
JavaScript | No | Soon |
Python | Yes | 1.0.9 |
Java | No | Soon |
C++ | No | Soon |
TypeScript | No | Soon |
C# | No | Soon |
Create awesome stuff by using our api and frameworks
We've packages for some languages , check if we support the one your using down below .
Language | Supported | Version |
---|---|---|
JavaScript | No | Soon |
Python | Yes | 1.0.9 |
Java | No | Soon |
C++ | No | Soon |
TypeScript | No | Soon |
C# | No | Soon |
Each user has an api token which can be found in edit account page. keep your api key secret too. For to use it set api_secret query variable to your api key
Query | Example Value | Example Usage |
---|---|---|
api_secret | [email protected] | https://pastep.com/api/pastes/search?api_secret=code |
This route'll help you to search for a paste / pastes in our website
Route | Example |
---|---|
/api/pastes/search | https://pastep.com/api/pastes/search?api_secret=code&query=discord |
Search Route Parameters
Parameter | Type | Example |
---|---|---|
length | optional | ?length=10 |
query | required | ?query=discord |
Returns all trending pastes in pastep
Route | Example |
---|---|
/api/pastes/trending | https://pastep.com/api/pastes/trending?api_secret=code |
No required parameters
Retunrs a paste data , based on the id passed in it parameters
Route | Example |
---|---|
/api/pastes/data | https://pastep.com/api/pastes/data?id=CFMuFeDVGG&api_secret=code |
Paste info route parameters
Parameter | Type | Example |
---|---|---|
id | required | ?id=29Jwm...(283 |
Returns a pastep user data
Route | Example |
---|---|
/api/accounts/data | https://pastep.com/api/accounts/data?username=pooria&api_secret=code |
User info route parameters
Parameter | Type | Example |
---|---|---|
username | required | ?username=Touka. |