具
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/embed | The oEmbed description of a YouTube, TikTok, X or Pinterest link: title, author, thumbnail and embed HTML. |
| GET | /oembed/providers | The providers the embed endpoint serves and the hosts it accepts for each. |
embed
GET
/v1/oembed/embedThe oEmbed description of a YouTube, TikTok, X or Pinterest link: title, author, thumbnail and embed HTML.
scope social:read1 unitcached 1 h
Parameters
urlstring required | https link to a video, track or post on a supported provider. e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |
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
14 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
height | integer (int64) |
html | string |
provider | string |
thumbnailUrl | string |
title | string |
type | string |
url | string |
width | integer (int64) |
curl "https://api.hoshime.com/v1/oembed/embed?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/oembed/embed?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/oembed/embed?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/providersThe providers the embed endpoint serves and the hosts it accepts for each.
scope social:read1 unitpaginated
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
2 fields
hosts | string[] |
name | string |
curl "https://api.hoshime.com/v1/oembed/providers" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/oembed/providers", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/oembed/providers", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }