具
Unshorten API
2 endpointsUtilitiesGlobalsocial:read2 real examples
Returns the redirect chain and final URL of a short link, and the list of known short-link domains.
View as Markdown| GET | /unshorten/expand | The redirect chain of a short link and its final URL. The final page itself is not fetched. |
| GET | /unshorten/shorteners | The short-link domains that expand marks as shorteners. |
expand
GET
/v1/unshorten/expandThe redirect chain of a short link and its final URL. The final page itself is not fetched.
scope social:read1 unitcached 10 min
Parameters
urlstring required | The short link or any http or https URL. e.g. http://www.wikipedia.org |
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
10 fields
chain | Hop[] |
location | string |
status | integer (int64) |
url | string |
domain | string |
finalUrl | string |
inputUrl | string |
redirects | integer (int64) |
shortener | boolean |
stopped | string |
curl "https://api.hoshime.com/v1/unshorten/expand?url=http%3A%2F%2Fwww.wikipedia.org" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/unshorten/expand?url=http%3A%2F%2Fwww.wikipedia.org", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/unshorten/expand?url=http%3A%2F%2Fwww.wikipedia.org", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "chain": [ { "location": "https://www.wikipedia.org/", "status": 301, "url": "http://www.wikipedia.org" }, { "location": "", "status": 200, "url": "https://www.wikipedia.org/" } ], "domain": "www.wikipedia.org", "finalUrl": "https://www.wikipedia.org/", "inputUrl": "http://www.wikipedia.org", "redirects": 1, "shortener": false, "stopped": "" }, "meta": { "cached": false, "endpoint": "expand", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "unshorten", "requestId": "req_2Xb9kQ…", "units": 1 } }
shorteners
GET
/v1/unshorten/shortenersThe short-link domains that expand marks as shorteners.
scope social:read1 unitcached 24 hpaginated
Parameters
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
1 fields
domain | string |
curl "https://api.hoshime.com/v1/unshorten/shorteners" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/unshorten/shorteners", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/unshorten/shorteners", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "domain": "bit.ly" }, { "domain": "bitly.is" } ], "meta": { "cached": false, "endpoint": "shorteners", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "unshorten", "requestId": "req_2Xb9kQ…", "units": 1 } }