# Chuck Norris Facts API

> Returns random, searchable and categorized Chuck Norris facts, and single facts by id.

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

A random Chuck Norris fact, optionally from one category.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `category` | string | no | Category name from chucknorris/categories, such as dev. |
| `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: `categories` (Category[]), `categories[].name` (string), `id` (string), `text` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/chucknorris/random" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/chucknorris/search

Chuck Norris facts that contain a text, with the total number of matches.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Text the facts contain, such as roundhouse. (e.g. roundhouse) |
| `limit` | integer | no | Items per page, 1 to 100. (default 10) |
| `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: `categories` (Category[]), `categories[].name` (string), `id` (string), `text` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/chucknorris/search?query=roundhouse" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/chucknorris/categories

The categories of Chuck Norris facts.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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)

```bash
curl "https://api.hoshime.com/v1/chucknorris/categories" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/chucknorris/joke

One Chuck Norris fact by its id, with its categories.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Fact id, such as nFJqJ3zGQSqH8pv4ZtE9yA. (e.g. nFJqJ3zGQSqH8pv4ZtE9yA) |
| `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: `categories` (Category[]), `categories[].name` (string), `id` (string), `text` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/chucknorris/joke?id=nFJqJ3zGQSqH8pv4ZtE9yA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
