Search
Find every asset that matches your conditions
Search returns every stock, ETF and crypto asset that matches all of your filters on one date, with the fields you choose. Any field in Schema can be filtered, returned or sorted on: technical bands, fundamentals, analyst data, insiders, index membership, and the market's own condition. It costs 1 credit per 100 rows returned, and at least 1.
Field names are flat, like momentum_rsi_zone, the same names Schema lists. Summary nests the same fields (momentum.rsi_zone).
Filters
filters is required: a JSON array of 1 to 10 filters, and a row must match every one. Each filter is an object:
| op | Meaning | Works on |
|---|---|---|
eq, neq | Equal, not equal | Every field. For true/false fields, the only two that work |
in | Any of a list | Text and number fields. The list holds values of the field's type |
gt, gte, lt, lte | Greater than (or equal), less than (or equal) | Number fields only |
Bands are text and take the values listed for each field in Summary or Schema. Number fields end in their unit, such as _pct, _ratio or _percentile, so you can filter a band and its number side by side: volume_ratio_zone and volume_ratio.
Encode the JSON in the URL. With curl, -G and --data-urlencode do it for you, as in every example here.
Fields, sorting and pages
| Parameter | Default | Description |
|---|---|---|
fields | a standard set | The fields to return, as a JSON array or a comma-separated list, up to 30. ticker is always included. Without it you get 25 core fields: identity, trend, momentum, extremes, volatility, volume, patterns and valuation |
sort_by | ticker, A–Z | Any ticker field, such as market_cap_usd or fundamentals_valuation_percentile |
sort_direction | desc | asc or desc, when sort_by is set |
limit | 20 | Rows to return, up to 250 |
offset | 0 | Rows to skip, up to 10,000 |
More rows. The response doesn't say how many rows match in total. When result_count equals your limit, there may be more: send the same request with offset raised by limit, until a page comes back short. Keep sort_by the same across pages.
Dates
| Parameter | Default | Description |
|---|---|---|
timeframe | daily | daily or weekly. Some fields are weekly only, such as trend_stage |
date | latest | A past date, YYYY-MM-DD. A date without a row of its own reads the newest row before it: up to 10 days back on daily, 14 on weekly |
start, end | — | A range of dates instead of one. Needs at least one market filter, which picks the dates to search |
Latest. Without date, each asset class is read on its own newest date, because crypto trades at weekends and stocks don't. latest_dates_by_asset_class gives each date, and date is set only when they're all the same.
A past date. With date, the response adds requested_date and the date each asset class was read on, in row_dates_by_asset_class. How far back you can read depends on your plan.
Finding what just changed
Every tracked band comes with marker fields you can filter, return and sort on like any other:
| Field | Meaning |
|---|---|
<band>_periods | How long the band has held its value, in rows. 1 means it changed on this row |
<band>_prev | On the row where it changed, the value it left. null otherwise |
<band>_stability | How settled the value is: fresh, holding, established or volatile |
<band>_flips_recent_count | How often it changed recently, over <band>_flips_lookback ("30d" daily, "12w" weekly) |
_periods = 1 with _prev finds assets that just moved from one value to another:
Index and fund members
| Parameter | Description |
|---|---|
member_of | Only members of an index on each row's date: sp500, sp400, sp600, sp100, nasdaq100, russell1000 or russell2000 |
held_by | Only assets a fund held on each row's date, by fund ticker (IVV, VFIAX) or SEC series id. Find funds with Funds |
Membership comes from the funds' own holdings reports, so it can lag the official index by 2–5 months. It costs no extra credits.
Market and economy conditions
The market_* and macro_* fields from Market & Macro describe a whole date, not one asset. You can mix them into a search:
- As a filter, they keep only the dates when the condition held. On a single date, that means all or nothing.
- In
fields, they add that date's value to every row. - With
startandend, every date in the range where the market filter held is searched in one request. Rows then carry theirdate, newest first.
They can't be used in sort_by, since they're the same for every row on a date.
Response fields
| Field | Type | Description |
|---|---|---|
results | object[] | The matching rows, with the fields in fields. Any value can be null when it doesn't apply or isn't available, such as fundamentals for crypto |
result_count | integer | Rows in results |
fields | string[] | The fields in each row |
timeframe | string | The timeframe searched |
date | string | null | The date searched, when every asset class shares one |
date_mode, latest_dates_by_asset_class | string, object | Without date: each asset class's newest date |
requested_date, row_dates_by_asset_class | string, object | With date: the date you asked for, and the date read for each asset class |
start, end | string | With a range: the dates searched |
filter_count, market_filter_count | integer | Filters applied, and how many were market filters |
membership | object | With member_of or held_by: what was applied |
offset | integer | With offset: the rows skipped |
band_contract | string | Version of the band definitions. Compare band values only between responses with the same one |
No matches is not an error: you get 200 with an empty results list.
Errors
| Status | error.type | Cause | What to do |
|---|---|---|---|
400 | invalid_parameter | Missing or malformed filters, more than 10 filters, an unknown field, an operator that doesn't fit the field, more than 30 fields, a market field in sort_by, date together with start/end, or a range without a market filter. | Read the message: it names the problem. Check field names with Schema. |
403 | tier_restricted | A date before your plan's first readable date. | Use a later date, or upgrade at the upgrade_url in the response. |
404 | no_data | Nothing on or shortly before date. | Try another date, or the other timeframe. |
404 | not_found | The held_by fund doesn't exist. | Find the fund with Funds. |
Errors aren't charged. Authentication and rate-limit errors are on Authentication and Errors & Caching.