Skip to content

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/fileA public Pixeldrain file by its id or viewer URL: name, size, checksum, availability and the direct download link.
GET/pixeldrain/statsViews, downloads and bandwidth of one public Pixeldrain file.

file

GET/v1/pixeldrain/file

A 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

url
string
required
Pixeldrain viewer URL (https://pixeldrain.com/u/<id>) or the file id.
e.g. 5UZcgpfV
tunnel
string
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.
proxy
string
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.
profileId
string
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
availabilitystring
canDownloadboolean
downloadUrlstring
downloadsinteger (int64)
idstring
mimeTypestring
namestring
sha256string
sizeinteger (int64)
thumbnailUrlstring
uploadedAtstring
viewerUrlstring
viewsinteger (int64)
curl "https://api.hoshime.com/v1/pixeldrain/file?url=5UZcgpfV" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/stats

Views, downloads and bandwidth of one public Pixeldrain file.

scope social:read1 unitcached 5 min

Parameters

url
string
required
Pixeldrain viewer URL (https://pixeldrain.com/u/<id>) or the file id.
e.g. 5UZcgpfV
tunnel
string
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.
proxy
string
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.
profileId
string
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
bandwidthinteger (int64)
downloadsinteger (int64)
idstring
paidBandwidthinteger (int64)
viewsinteger (int64)
curl "https://api.hoshime.com/v1/pixeldrain/stats?url=5UZcgpfV" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open