具
Pixeldrain API
2 endpointsUtilitiesGlobalsocial:read2 real examples
Returns public Pixeldrain file details with download link, plus view, download and bandwidth statistics of a file.
View as Markdown| GET | /pixeldrain/file | A public Pixeldrain file by its id or viewer URL: name, size, checksum, availability and the direct download link. |
| GET | /pixeldrain/stats | Views, downloads and bandwidth of one public Pixeldrain file. |
file
GET
/v1/pixeldrain/fileA public Pixeldrain file by its id or viewer URL: name, size, checksum, availability and the direct download link.
scope social:read1 unitcached 5 min
Parameters
urlstring required | Pixeldrain viewer URL (https://pixeldrain.com/u/<id>) or the file id. e.g. 5UZcgpfV |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
availability | string |
canDownload | boolean |
downloadUrl | string |
downloads | integer (int64) |
id | string |
mimeType | string |
name | string |
sha256 | string |
size | integer (int64) |
thumbnailUrl | string |
uploadedAt | string |
viewerUrl | string |
views | integer (int64) |
curl "https://api.hoshime.com/v1/pixeldrain/file?url=5UZcgpfV" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pixeldrain/file?url=5UZcgpfV", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pixeldrain/file?url=5UZcgpfV", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "availability": "", "canDownload": true, "downloadUrl": "https://pixeldrain.com/api/file/5UZcgpfV?download", "downloads": 856, "id": "5UZcgpfV", "mimeType": "application/x-rar-compressed", "name": "APPR2622win-yasir252.rar", "sha256": "d004d510c52de2389e515eb4e3b96cfdb90c006b0af53c7e22b773b7e9f771b7", "size": 4419530686, "thumbnailUrl": "https://pixeldrain.com/api/file/5UZcgpfV/thumbnail", "uploadedAt": "2026-05-10T17:38:00.677Z", "viewerUrl": "https://pixeldrain.com/u/5UZcgpfV", "views": 744 }, "meta": { "cached": false, "endpoint": "file", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pixeldrain", "requestId": "req_2Xb9kQ…", "units": 1 } }
stats
GET
/v1/pixeldrain/statsViews, downloads and bandwidth of one public Pixeldrain file.
scope social:read1 unitcached 5 min
Parameters
urlstring required | Pixeldrain viewer URL (https://pixeldrain.com/u/<id>) or the file id. e.g. 5UZcgpfV |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
bandwidth | integer (int64) |
downloads | integer (int64) |
id | string |
paidBandwidth | integer (int64) |
views | integer (int64) |
curl "https://api.hoshime.com/v1/pixeldrain/stats?url=5UZcgpfV" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pixeldrain/stats?url=5UZcgpfV", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pixeldrain/stats?url=5UZcgpfV", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "bandwidth": 2728247035393, "downloads": 856, "id": "5UZcgpfV", "paidBandwidth": 4419530686, "views": 744 }, "meta": { "cached": false, "endpoint": "stats", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pixeldrain", "requestId": "req_2Xb9kQ…", "units": 1 } }