Напиши Telegram бота на Python для поиска пиратских игр. 

API поиска:
Welcome to the Rezi API Docs
Thank you for your interest in the Rezi API! It's pretty simple so it won't take long to get through. You most likely found this page from the site, Rezi.one. For those who don't know, Rezi is a pirated game search engine that is extremely popular online for pirates. It is found in many megathreads such as the r/Piracy megathread, the r/PiratedGames megathread, and the r/FREEMEDIAHECKYEAH megathread, as well as mentioned numerous other places throughout the internet.

The Rezi API is here for everyone, to integrate into websites and applications for completely free. A lot of work went into the process of gathering all of these games and putting them all in one spot, so please feel free to use it. To get started go to the bottom of this page and move to the next page.

Working with the Rezi API
Meilisearch
Rezi is built on Meilisearch. Meilisearch is a great search engine built in Rust for ultimate speed. Along with Rezi, I also use Meilisearch for the Rakun search engine, a pirated anime search engine. They are a great company and have really created a great product. They have acknowledged Rezi and Rakun, and I'm very grateful for them not kicking either product off their platform.

Because everything is based on Meilisearch, this documentation is a bit short. For more documentation on the extent of use and details for Meilisearch (as well as usage for other languages), read their documentation.

❗️
For searching you will need to use the public search API key. It is available here:

e2a1974678b37386fef69bb3638a1fb36263b78a8be244c04795ada0fa250d3d
🚧
The public key only has access to the following items: search, documents.get, indexes.get, and stats.get.

📘
If you need any help you can create an Issue on the Github, or join the Discord Server below for support.

Searching with the Rezi API
POST
https://search.rezi.one/indexes/rezi/search
LOG IN TO SEE FULL REQUEST HISTORY
TIME	STATUS	USER AGENT	
Make a request to see history.
0 Requests This Month

Searching with the Rezi API
Searching is the biggest part of Rezi, and is what makes Rezi so great. The speed, and precision makes it perfect for anyone who is wanting a perfect game search engine.

❗️
For searching you will need to use the public search API key. It is available here:

e2a1974678b37386fef69bb3638a1fb36263b78a8be244c04795ada0fa250d3d
🚧
The max limit is 1000 documents. Please use the GET endpoint to scrape Rezi.

If you build something using the Rezi API, contact me! I want to see it and I'll promote it!
Reference: Meilisearch Search Docs

BODY PARAMS
q
string
required
Defaults to Cyberpunk 2077
The name of the game you want to search for.

Cyberpunk 2077
limit
int32
Defaults to 20
The max amount of results you want to get.

20
HEADERS
Content-Type
string
required
Defaults to application/json
application/json
RESPONSES

200
200


400
400

AUTHORIZATION
HEADER
e2a1974678b37386fef69bb3638a1fb36263b78a8be244c04795ada0fa250d3d

REQUEST
python -m pip install requests
1
import requests
2
​
3
url = "https://search.rezi.one/indexes/rezi/search"
4
​
5
payload = {
6
    "q": "Cyberpunk 2077",
7
    "limit": 20
8
}
9
headers = {
10
    "accept": "application/json",
11
    "Content-Type": "application/json",
12
    "Authorization": "Bearer e2a1974678b37386fef69bb3638a1fb36263b78a8be244c04795ada0fa250d3d"
13
}
14
​
15
response = requests.post(url, json=payload, headers=headers)
16
​
17
print(response.text)

Try It!
RESPONSE
211
      "icon": "PC",
212
      "link": "https://gamesdrive.net/Thread-Cyberpunk-2077-v-1-23",
213
      "playable": "False",
214
      "system": "pc,chovka,repack",
215
      "title": "Cyberpunk 2077 [v 1 23]",
216
      "igdb_url": "https://igdb.com/games/cyberpunk-2077",
217
      "site": "Gamesdrive"
218
    },
219
    {
220
      "id": "81b9a637-0a08-4178-afed-3f01b67ced44202410-0501-3859-",
221
      "bios": null,
222
      "core": null,
223
      "icon": "PC",
224
      "link": "https://gamesdrive.net/Thread-Cyberpunk-2077-v-1-3-DLCs",
225
      "playable": "False",
226
      "system": "pc,chovka,repack",
227
      "title": "Cyberpunk 2077 [v 1 3 + DLCs]",
228
      "igdb_url": "https://igdb.com/games/cyberpunk-2077",
229
      "site": "Gamesdrive"
230
    },
231
    {
232
      "id": "d75dc9fc-699b-4b3c-9571-297c3ea9f293202410-0501-4159-",
233
      "bios": null,
234
      "core": null,
235
      "icon": "PC",
236
      "link": "https://gamesdrive.net/Thread-Cyberpunk-2077-v1-2-Bonus-Content-MULTi18",
237
      "playable": "False",
238
      "system": "pc,dodi,repack",
239
      "title": "Cyberpunk 2077 (v1 2 + Bonus Content + MULTi18)",
240
      "igdb_url": "https://igdb.com/games/cyberpunk-2077",
241
      "site": "Gamesdrive"
242
    }
243
  ],
244
  "query": "Cyberpunk 2077",
245
  "processingTimeMs": 4,
246
  "limit": 20,
247
  "offset": 0,
248
  "estimatedTotalHits": 53
249
}

Get Search Status
GET
https://search.rezi.one/health
LOG IN TO SEE FULL REQUEST HISTORY
TIME	STATUS	USER AGENT	
Make a request to see history.

Getting the search status
This is useful for making sure the API is up and available. Sometimes it may be down or unhealthy. If you are building an app based off of Rezi, it is important to know that this is free and may not be able to be up with 100% uptime. Please get the search status before sending searches.

Reference: Meilisearch Health Docs

RESPONSES

200
200


503
503

REQUEST
python -m pip install requests
1
import requests
2
​
3
url = "https://search.rezi.one/health"
4
​
5
headers = {"accept": "application/json"}
6
​
7
response = requests.get(url, headers=headers)
8
​
9
print(response.text)

Try It!
RESPONSE
1
{
2
  "status": "available"
3
}

Scraping the Rezi API
GET
https://search.rezi.one/indexes/rezi/documents
LOG IN TO SEE FULL REQUEST HISTORY
TIME	STATUS	USER AGENT	
Make a request to see history.
0 Requests This Month

Scraping and getting all items
I understand that getting all the items that Rezi has to offer may be useful to some people, so I am making this available. If there is abuse on this endpoint, I will be shutting it down. Please don't make a lot of requests, and please save or cache the results if you need the data a lot.

Reference: Meilisearch Documents Docs

QUERY PARAMS
offset
int32
Defaults to 0
Number of documents to skip.

0
limit
int32
Defaults to 1500
Number of documents to return

1500
fields
string
Defaults to *
Document attributes to show (case-sensitive, comma-separated)

*
RESPONSES

200
200


400
400