Zakichanu / Pepper-Api

Unofficial API for the website Pepper made with ExpressJS & TypeScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pepper Api [OFFLINE FOR NOW]

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.

Table of contents

Features

  • Get the 5 top deals of the day (updated every hour) : https://pepper.api.zakichanu.com/dealabs/topDeals OR https://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 OR https://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

Examples

Here some examples of how you can call the API with different languanges

NodeJs - Requests

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);
});

Java - Unirest

Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("https://pepper.api.zakichanu.com/dealabs/topDeals")
  .asString();

C# - RestSharp

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);

Dart - http

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);
}

Python - requests

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

Installation

  • 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

Projects

Haku Discord bot

Haku does it to alert people from the server with top deals and broken deals of Dealabs website.

Limit

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

About

Unofficial API for the website Pepper made with ExpressJS & TypeScript.


Languages

Language:TypeScript 100.0%