# Screener Search

`POST` `/v1/quote/ai/screener/search`

Filter stocks by strategy ID or custom indicator conditions, with pagination support.

## Parameters

### Request Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `market` | string | Yes | Market to screen, e.g. `US`, `HK`, `CN`. When a strategy is used, taken from the strategy. |
| `filters` | array | Yes | Filter conditions. Each item is `{ "key": "filter_pettm", "min": "10", "max": "30", "tech_values": {} }`. |
| `returns` | array | Yes | Indicator keys to return for each match, e.g. `filter_pettm`. |
| `page` | integer | Yes | Page number (0-indexed). |
| `size` | integer | Yes | Page size. |

## Request Example

```bash
curl --request POST \
  --url 'https://openapi.longbridge.com/v1/quote/ai/screener/search' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{"market":"<market>","filters":[],"returns":[],"page":0,"size":0}'
```

## Response

### Response Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `total` | integer | No | Total number of matching stocks. |
| `items` | object[] | No | Matched stock list. |
| `└ symbol` | string | No | Security symbol, e.g. `WXT.US`. |
| `└ name` | string | No | Security name. |
| `└ indicators` | object[] | No | Indicator values for this stock. |
| `└ ∟ key` | string | No | Indicator key, e.g. `filter_pettm`. |
| `└ ∟ name` | string | No | Indicator display name. |
| `└ ∟ value` | string | No | Indicator value as a string; empty when unavailable. |
| `└ ∟ unit` | string | No | Value unit, e.g. `%`, `B`. |

### Response JSON Example

```json
{
  "code": 0,
  "message": "success",
  "data": {
    "total": 88,
    "page": 0,
    "market": "US",
    "items": [
      {
        "symbol": "AAPL.US",
        "name": "Apple Inc.",
        "prevchg": 0.62,
        "marketcap": 3241500000000,
        "pettm": 32.15,
        "pbmrq": 50.21,
        "salesgrowthyoy": 8.04
      },
      {
        "symbol": "MSFT.US",
        "name": "Microsoft",
        "prevchg": 1.05,
        "marketcap": 3085000000000,
        "pettm": 35.42,
        "pbmrq": 12.87,
        "salesgrowthyoy": 12.61
      }
    ]
  }
}
```
