# Random User Generator API

> Returns random fictional user profiles, repeatable by seed and page, or filtered by nationality.

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

Random fictional users. A seed makes the answer repeatable.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 50. (default 1; e.g. 2) |
| `seed` | string | no | Letters and digits; the same seed returns the same users. (e.g. hoshime) |
| `gender` | string | no | Only users of this gender. (one of male, female) |
| `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: `age` (integer (int64)), `birthDate` (string), `city` (string), `country` (string), `email` (string), `firstName` (string), `gender` (string), `id` (string), `lastName` (string), `phone` (string), `pictureUrl` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/randomuser/users?limit=2&seed=hoshime" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/randomuser/seededPage

One page of the users of a seed. The same seed and page always return the same users, so the list can be walked with cursor.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `seed` | string | yes | Letters and digits, 1 to 32; the same seed returns the same users. (e.g. hoshime) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10; e.g. 2) |
| `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: `age` (integer (int64)), `birthDate` (string), `city` (string), `country` (string), `email` (string), `firstName` (string), `gender` (string), `id` (string), `lastName` (string), `phone` (string), `pictureUrl` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/randomuser/seededPage?seed=hoshime&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/randomuser/nationality

Random fictional users of one country, by its two-letter code.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `nat` | string | yes | Country code such as gb or us. (one of au, br, ca, ch, de, dk, es, fi, fr, gb, ie, in, ir, mx, nl, no, nz, rs, tr, ua, us; e.g. gb) |
| `limit` | integer | no | Items per page, 1 to 50. (default 1; e.g. 2) |
| `seed` | string | no | Letters and digits; the same seed returns the same users. (e.g. hoshime) |
| `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: `age` (integer (int64)), `birthDate` (string), `city` (string), `country` (string), `email` (string), `firstName` (string), `gender` (string), `id` (string), `lastName` (string), `phone` (string), `pictureUrl` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/randomuser/nationality?nat=gb&limit=2&seed=hoshime" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
