Get Usenet Cached Availability
GET /v1/api/usenet/checkcached
GET https://api.torbox.app/v1/api/usenet/checkcached
- Operation ID:
get_usenet_cached_availability - Group: Usenet
- Auth: API key,
Authorization: Bearer <api key>(Sign in with TorBox gives the same key)
Overview
Takes in a list of comma separated usenet hashes and checks if the usenet download is cached. This endpoint only gets a max of around 100 at a time, due to http limits in queries. If you want to do more, you can simply do more hash queries. Such as:
?hash=XXXX&hash=XXXX&hash=XXXX
or ?hash=XXXX,XXXX&hash=XXXX&hash=XXXX,XXXX
and this will work too. Performance is very fast. Less than 1 second per 100. Time is approximately O(log n) time for those interested in taking it to its max. That is without caching as well. This endpoint stores a cache for an hour.
You may also pass a format parameter with the format you want the data in. Options are either object or list. You can view examples of both below.
To get the hash of a usenet download, you can read this document for all of the strategies.
Authorization
Requires an API key using the Authorization Bearer Header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
hash | query | string[] | no | The list of usenet hashes you want to check. Comma seperated. To find the hash, md5 the link of the usenet link or file. |
format | query | string | no | Format you want the data in. Acceptable is either "object" or "list". List is the most performant option as it doesn't require modification of the list. |
list_files | query | boolean | no | Allows you to list the files found inside the cached data. Optional. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
hashes | string[] | yes |
Responses
200Successful Response400Bad Request401Unauthorized403Forbidden404Not Found422Validation Error429Too Many Requests500Internal Server Error503Service Unavailable