Skip to content

oEmbed API

2 endpointsUtilitiesGlobalsocial:read2 real examples

Returns oEmbed data for links from YouTube, TikTok, X and Pinterest, plus supported providers.

View as Markdown
GET/oembed/embedThe oEmbed description of a YouTube, TikTok, X or Pinterest link: title, author, thumbnail and embed HTML.
GET/oembed/providersThe providers the embed endpoint serves and the hosts it accepts for each.

embed

GET/v1/oembed/embed

The oEmbed description of a YouTube, TikTok, X or Pinterest link: title, author, thumbnail and embed HTML.

scope social:read1 unitcached 1 h

Parameters

url
string
required
https link to a video, track or post on a supported provider.
e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ
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

14 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
heightinteger (int64)
htmlstring
providerstring
thumbnailUrlstring
titlestring
typestring
urlstring
widthinteger (int64)
curl "https://api.hoshime.com/v1/oembed/embed?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "author": {
      "avatarUrl": "",
      "id": "",
      "name": "Rick Astley",
      "url": "https://www.youtube.com/@RickAstleyYT",
      "username": ""
    },
    "height": 113,
    "html": "<iframe width=\"200\" height=\"113\" src=\"https://www.youtube.com/embed/dQw4w9WgXcQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autopl…",
    "provider": "youtube",
    "thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
    "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
    "type": "video",
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "width": 200
  },
  "meta": {
    "cached": false,
    "endpoint": "embed",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "oembed",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

providers

GET/v1/oembed/providers

The providers the embed endpoint serves and the hosts it accepts for each.

scope social:read1 unitpaginated

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

2 fields
hostsstring[]
namestring
curl "https://api.hoshime.com/v1/oembed/providers" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "hosts": [
        "youtube.com",
        "www.youtube.com"
      ],
      "name": "youtube"
    },
    {
      "hosts": [
        "vimeo.com",
        "www.vimeo.com"
      ],
      "name": "vimeo"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "providers",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "oembed",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open