# GET /v2/rules/{id}

**Get one rule**

Returns the rule doc.

## Plan access

- **Plan access.** Included on every plan.
- **Rate limit.** Hobby 60/min · Pro 2,000/min · Scale 10,000/min.
- **Capacity.** Hobby 5 · Pro 25 · Scale 100 · Enterprise unlimited.

## Query / path parameters

| Name | In | Type | Required | Description |
|------|----|----|----------|-------------|
| `id` | path | string | yes | Rule slug. |

## Status codes

- **200** — The rule doc.
- **404** — `not_found`.

## Sample response

```json
{
  "as_of": "2026-05-14T11:41:01.000Z",
  "id": "smallcap_breakouts",
  "name": "Small-cap breakouts",
  "description": "Breakouts under $2B market cap",
  "q": "breakout AND market_cap < 2000000000",
  "universe_id": null,
  "order": "day_change_pct",
  "dir": "desc",
  "fields": ["pe_ratio"],
  "created_at": 1778720416,
  "updated_at": 1778720416
}
```

## Examples

### Get one rule

Request:

```shell
curl https://api.tickerbot.io/v2/rules/smallcap_breakouts \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (`200`):

```json
{
  "as_of": "2026-05-14T11:41:01.000Z",
  "id": "smallcap_breakouts",
  "name": "Small-cap breakouts",
  "description": "Breakouts under $2B market cap",
  "q": "breakout AND market_cap < 2000000000",
  "universe_id": null,
  "order": "day_change_pct",
  "dir": "desc",
  "fields": ["pe_ratio"],
  "created_at": 1778720416,
  "updated_at": 1778720416
}
```

---

Interactive sandbox + parameter editor: https://tickerbot.io/api/endpoints/rules/get
