# URL Meta API

> Returns a public page's metadata, HTTP headers, feeds, hreflang alternates, icons, schema.org structured data and its readable article text as Markdown.

Category: Developer & Tech. Region: global. 10 endpoints at `https://api.hoshime.com/v1/urlmeta/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/urlmeta
## GET /v1/urlmeta/meta

Title, description, canonical URL, language, OpenGraph and Twitter card tags and favicon of a public page.

Scope: `social:read` · Units: 1 · Cached: 30 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://example.com/) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `canonical` (string), `description` (string), `favicon` (string), `finalUrl` (string), `language` (string), `openGraph` (OpenGraph), `openGraph.description` (string), `openGraph.image` (string), `openGraph.siteName` (string), `openGraph.title` (string), `openGraph.type` (string), `openGraph.url` (string), `title` (string), `twitter` (Twitter), `twitter.card` (string), `twitter.description` (string), `twitter.image` (string), `twitter.title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/urlmeta/meta?url=https%3A%2F%2Fexample.com%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/headers

HTTP status and response headers a public page answers with, after redirects.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://example.com/) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `finalUrl` (string), `items` (Header[]), `items[].name` (string), `items[].value` (string), `status` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/urlmeta/headers?url=https%3A%2F%2Fexample.com%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/feeds

RSS, Atom and JSON feeds that a public page advertises to readers.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://go.dev/blog/) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `title` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/urlmeta/feeds?url=https%3A%2F%2Fgo.dev%2Fblog%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/alternates

Other language and regional versions of a public page, from its hreflang links.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://en.wikipedia.org/wiki/Go_(programming_language)) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `lang` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/urlmeta/alternates?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FGo_%28programming_language%29" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/icons

Every icon a public page names: favicons, Apple touch icons and mask icons, with their sizes.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://go.dev/blog/) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `rel` (string), `sizes` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/urlmeta/icons?url=https%3A%2F%2Fgo.dev%2Fblog%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/structuredData

The schema.org items a public page declares in JSON-LD: each item's type and name.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://en.wikipedia.org/wiki/Go_(programming_language)) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `name` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/urlmeta/structuredData?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FGo_%28programming_language%29" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/links

The links of a public page in document order, each resolved to an absolute address and marked internal or external.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://go.dev/blog/) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `external` (boolean), `rel` (string), `text` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/urlmeta/links?url=https%3A%2F%2Fgo.dev%2Fblog%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/article

Readable main content of a public web page or article as plain text and Markdown, without navigation, ads and other clutter, with title, author, site name, publish time, language, excerpt and word count.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://go.dev/blog/slog) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `byline` (string), `excerpt` (string), `finalUrl` (string), `language` (string), `markdown` (string), `publishedAt` (string), `siteName` (string), `text` (string), `title` (string), `url` (string), `wordCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/urlmeta/article?url=https%3A%2F%2Fgo.dev%2Fblog%2Fslog" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/images

The images of a public page in document order, each with its address, alt text and declared width and height.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://go.dev/blog/) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `alt` (string), `height` (any), `url` (string), `width` (any)

```bash
curl "https://api.hoshime.com/v1/urlmeta/images?url=https%3A%2F%2Fgo.dev%2Fblog%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urlmeta/robots

The robots.txt rules of the site a public page belongs to: its sitemap addresses and the allow and disallow rules of each user agent group.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public http or https page URL, such as https://example.com/. (e.g. https://www.bbc.com/) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `groups` (Group[]), `groups[].allow` (string[]), `groups[].disallow` (string[]), `groups[].userAgent` (string), `sitemaps` (string[])

```bash
curl "https://api.hoshime.com/v1/urlmeta/robots?url=https%3A%2F%2Fwww.bbc.com%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
