> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tinyfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TinySearch Reference — Runs

> List your past searches with their status, result counts, and request IDs

List the searches made with your API key, with each search's status code, result count, and request ID. Use it to audit usage or to find the `request_id` of a failed search. All requests require the `X-API-Key` header. See [Authentication](https://docs.tinyfish.ai/authentication.md).

## Endpoints

| Endpoint | Method | Purpose |
| - | - | - |
| `https://api.search.tinyfish.ai/usage` | `GET` | List search runs |

## List Search Runs

```
GET https://api.search.tinyfish.ai/usage?status=failed&limit=20
```

In an organization, a workflow key reads only records made by its team's workflow keys, never its creator's own. See [Who sees what](https://docs.tinyfish.ai/key-concepts/organizations.md#who-sees-what).

### Parameters

**start\_after** `string`

ISO 8601 timestamp lower bound for when the search was made.

**end\_before** `string`

ISO 8601 timestamp upper bound for when the search was made.

**status** `string`

Filter by outcome: `completed` or `failed`.

**limit** `integer` (default: 100)

Records per page, 1–1000.

**page** `integer` (default: 1)

Page number, starting from `1`.

**owner** `string`

Whose records to list: `me` (the default for a personal key) or `team`, the searches made by the team's workflow keys. `team` is the only choice for a workflow key, and a personal key outside a team is rejected with HTTP 400.

### Response

```json theme={null}
{
  "items": [
    {
      "id": "1234567",
      "request_id": "3f9c0a52-0000-0000-0000-000000000000",
      "query": "web automation tools",
      "status_code": 200,
      "result_count": 10,
      "response_size_bytes": 18234,
      "created_at": "2026-11-18T04:12:09.000Z",
      "results": []
    }
  ],
  "total": 1,
  "limit": 100,
  "page": 1,
  "total_pages": 1,
  "has_more": false
}
```

**items** `object[]`

The search runs on this page.

**total** `number`

Records matching the filters. For a team list (a workflow key, or `owner=team`) this is a lower bound; page with `has_more`.

**limit** `number`

Records per page.

**page** `number`

The current page number.

**total\_pages** `number`

Pages implied by `total`; a lower bound wherever `total` is one.

**has\_more** `boolean`

Whether another page follows.

### `items[]`

**id** `string`

Run ID.

**request\_id** `string`

The request's correlation ID. Include it when reporting a problem.

**query** `string`

The search query.

**status\_code** `number`

HTTP status the search returned.

**result\_count** `number`

Number of results returned.

**response\_size\_bytes** `number | null`

Size of the response, when known.

**created\_at** `string`

When the search was made, as an ISO 8601 timestamp.

**results** `object[] | null`

The results returned for that search, in the same shape as the [Search response](https://docs.tinyfish.ai/tinysearch/api/search.md#results).

### Raw HTTP

```bash cURL theme={null}
curl -G "https://api.search.tinyfish.ai/usage" \
  --data-urlencode "status=failed" \
  --data-urlencode "limit=20" \
  -H "X-API-Key: $TINYFISH_API_KEY"
```

### Errors

| Status | Meaning |
| - | - |
| `400` | Invalid parameter, such as `limit` outside 1–1000, `page` below 1, or `owner=team` without a team |
| `401` | Missing or invalid API key |
| `404` | TinySearch is not available |
| `429` | Rate limit exceeded |
| `500` | Internal server error |
| `503` | Search service unavailable, retry with backoff |

## Related

> [card] [Search](https://docs.tinyfish.ai/tinysearch/api/search.md)
>
> Run a search

> [card] [TinySearch Reference](https://docs.tinyfish.ai/tinysearch/reference)
>
> Errors, rate limits, and billing


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.