Skip to content

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/expandThe redirect chain of a short link and its final URL. The final page itself is not fetched.
GET/unshorten/shortenersThe short-link domains that expand marks as shorteners.

expand

GET/v1/unshorten/expand

The redirect chain of a short link and its final URL. The final page itself is not fetched.

scope social:read1 unitcached 10 min

Parameters

url
string
required
The short link or any http or https URL.
e.g. http://www.wikipedia.org
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

10 fields
chainHop[]
locationstring
statusinteger (int64)
urlstring
domainstring
finalUrlstring
inputUrlstring
redirectsinteger (int64)
shortenerboolean
stoppedstring
curl "https://api.hoshime.com/v1/unshorten/expand?url=http%3A%2F%2Fwww.wikipedia.org" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/shorteners

The short-link domains that expand marks as shorteners.

scope social:read1 unitcached 24 hpaginated

Parameters

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

1 fields
domainstring
curl "https://api.hoshime.com/v1/unshorten/shorteners" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open