Unofficial API for the website Pepper made with ExpressJS & TypeScript.
Find full endpoints in my Postman page 👩🏽🚀
NB : This one is offline because of some issues to get access to some of the websites of Pepper, I have to refactor it or get some access.
- Get the 5 top deals of the day (updated every hour) :
https://pepper.api.zakichanu.com/dealabs/topDeals
ORhttps://api.dealabs.zakichanu.com/topDeals
- Get 5 newest hot deals 100+ Upvotes (updated every minute) :
https://pepper.api.zakichanu.com/dealabs/newHots
ORhttps://api.dealabs.zakichanu.com/newHots
- Get 5 newest deals (updated every minute) :
https://pepper.api.zakichanu.com/dealabs/newDeals
ORhttps://api.dealabs.zakichanu.com/newDeals
- Get ALL broken deals (updated every minute) :
https://pepper.api.zakichanu.com/dealabs/brokenDeals
ORhttps://api.dealabs.zakichanu.com/brokenDeals
- Get the 5 top deals of the day (updated every hour) :
https://pepper.api.zakichanu.com/mydealz/topDeals
- Get 5 newest hot deals 100+ Upvotes (updated every minute) :
https://pepper.api.zakichanu.com/mydealz/newHots
- Get 5 newest deals (updated every minute) :
https://pepper.api.zakichanu.com/mydealz/newDeals
- Get ALL broken deals (updated every minute) :
https://pepper.api.zakichanu.com/mydealz/brokenDeals
- Get the 5 top deals of the day (updated every hour) :
https://pepper.api.zakichanu.com/hotuk/topDeals
- Get 5 newest hot deals 100+ Upvotes (updated every minute) :
https://pepper.api.zakichanu.com/hotuk/newHots
- Get 5 newest deals (updated every minute) :
https://pepper.api.zakichanu.com/hotuk/newDeals
- Get ALL broken deals (updated every minute) :
https://pepper.api.zakichanu.com/hotuk/brokenDeals
- Get the 5 top deals of the day (updated every hour) :
https://pepper.api.zakichanu.com/chollometro/topDeals
- Get 5 newest hot deals 100+ Upvotes (updated every minute) :
https://pepper.api.zakichanu.com/chollometro/newHots
- Get 5 newest deals (updated every minute) :
https://pepper.api.zakichanu.com/chollometro/newDeals
- Get the 5 top deals of the day (updated every hour) :
https://pepper.api.zakichanu.com/nl-pepper/topDeals
- Get 5 newest hot deals 100+ Upvotes (updated every minute) :
https://pepper.api.zakichanu.com/nl-pepper/newHots
- Get 5 newest deals (updated every minute) :
https://pepper.api.zakichanu.com/nl-pepper/newDeals
Here some examples of how you can call the API with different languanges
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://pepper.api.zakichanu.com/dealabs/topDeals',
'headers': {
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.error(response.body);
});
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("https://pepper.api.zakichanu.com/dealabs/topDeals")
.asString();
var client = new RestClient("https://pepper.api.zakichanu.com/dealabs/topDeals");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
var request = http.Request('GET', Uri.parse('https://pepper.api.zakichanu.com/dealabs/topDeals'));
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}
import requests
url = "https://pepper.api.zakichanu.com/dealabs/topDeals"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
And many other languanges, if you want a more detailed documentation, you can jump right into my Postman page
- Fork the project
- Then you need to setup a typescript environment :
npm install -g typescript
npm install -g ts-node
- Generate node_modules package :
npm install
- Test your project by running the script :
npm run dev
- And your app might run in this link :
http://localhost:3000/
- Test it out with existant endpoints
Haku does it to alert people from the server with top deals and broken deals of Dealabs website.
You can call 10 requests per minute, wich means you can run 1 request each 6 seconds, I've done this on purpose just to make sure nobody make my server crash 🤣
Made by Zakichanu