Search

Find every asset that matches your conditions

GET https://api.tickerdb.com/v1/search

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.

curl
curl -G "https://api.tickerdb.com/v1/search" \ --data-urlencode 'filters=[{"field":"momentum_rsi_zone","op":"eq","value":"oversold"}]' \ --data-urlencode 'fields=["ticker","sector","momentum_rsi_zone","trend_direction"]' \ --data-urlencode 'limit=2' \ -H "Authorization: Bearer YOUR_API_KEY"
Response
{ "timeframe": "daily", "date": "2026-04-03", "date_mode": "per_asset_class_latest", "latest_dates_by_asset_class": { "stock": "2026-04-03", "etf": "2026-04-03" }, "band_contract": "bands-2.15.0", "fields": ["ticker", "sector", "momentum_rsi_zone", "trend_direction"], "filter_count": 1, "result_count": 2, "results": [ { "ticker": "ADBE", "sector": "Technology", "momentum_rsi_zone": "oversold", "trend_direction": "downtrend" }, { "ticker": "CVS", "sector": "Healthcare", "momentum_rsi_zone": "oversold", "trend_direction": "strong_downtrend" } ] }

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:

{"field": "momentum_rsi_zone", "op": "in", "value": ["oversold", "deep_oversold"]}
opMeaningWorks on
eq, neqEqual, not equalEvery field. For true/false fields, the only two that work
inAny of a listText and number fields. The list holds values of the field's type
gt, gte, lt, lteGreater 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

ParameterDefaultDescription
fieldsa standard setThe 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_byticker, A–ZAny ticker field, such as market_cap_usd or fundamentals_valuation_percentile
sort_directiondescasc or desc, when sort_by is set
limit20Rows to return, up to 250
offset0Rows 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.

The 50 cheapest stocks against their own history
curl -G "https://api.tickerdb.com/v1/search" \ --data-urlencode 'filters=[{"field":"fundamentals_valuation_zone","op":"in","value":["deep_value","undervalued"]}]' \ --data-urlencode 'fields=["ticker","sector","fundamentals_valuation_zone","fundamentals_valuation_percentile"]' \ --data-urlencode 'sort_by=fundamentals_valuation_percentile' \ --data-urlencode 'sort_direction=asc' \ --data-urlencode 'limit=50' \ -H "Authorization: Bearer YOUR_API_KEY"

Dates

ParameterDefaultDescription
timeframedailydaily or weekly. Some fields are weekly only, such as trend_stage
datelatestA 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.

The five largest stocks on 2025-06-13
curl -G "https://api.tickerdb.com/v1/search" \ --data-urlencode 'filters=[{"field":"asset_class","op":"eq","value":"stock"}]' \ --data-urlencode 'date=2025-06-13' \ --data-urlencode 'fields=["ticker","market_cap_usd","market_cap_tier"]' \ --data-urlencode 'sort_by=market_cap_usd' \ --data-urlencode 'limit=5' \ -H "Authorization: Bearer YOUR_API_KEY"

Finding what just changed

Every tracked band comes with marker fields you can filter, return and sort on like any other:

FieldMeaning
<band>_periodsHow long the band has held its value, in rows. 1 means it changed on this row
<band>_prevOn the row where it changed, the value it left. null otherwise
<band>_stabilityHow settled the value is: fresh, holding, established or volatile
<band>_flips_recent_countHow 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:

Trends that just turned up out of a downtrend
curl -G "https://api.tickerdb.com/v1/search" \ --data-urlencode 'filters=[{"field":"trend_direction_periods","op":"eq","value":1},{"field":"trend_direction_prev","op":"in","value":["downtrend","strong_downtrend"]}]' \ --data-urlencode 'fields=["ticker","trend_direction","trend_direction_prev","trend_direction_flips_recent_count","trend_direction_stability"]' \ -H "Authorization: Bearer YOUR_API_KEY"

Index and fund members

ParameterDescription
member_ofOnly members of an index on each row's date: sp500, sp400, sp600, sp100, nasdaq100, russell1000 or russell2000
held_byOnly 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.

Oversold S&P 500 members on 2024-06-28
curl -G "https://api.tickerdb.com/v1/search" \ --data-urlencode 'filters=[{"field":"momentum_rsi_zone","op":"in","value":["oversold","deep_oversold"]}]' \ --data-urlencode 'date=2024-06-28' \ --data-urlencode 'member_of=sp500' \ -H "Authorization: Bearer YOUR_API_KEY"

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 start and end, every date in the range where the market filter held is searched in one request. Rows then carry their date, newest first.

They can't be used in sort_by, since they're the same for every row on a date.

Oversold stocks on the days market breadth was washed out, 2020–2026
curl -G "https://api.tickerdb.com/v1/search" \ --data-urlencode 'filters=[{"field":"market_breadth_ma200_zone","op":"eq","value":"washed_out"},{"field":"momentum_rsi_zone","op":"in","value":["oversold","deep_oversold"]}]' \ --data-urlencode 'start=2020-01-01' \ --data-urlencode 'end=2026-10-31' \ --data-urlencode 'fields=["ticker","momentum_rsi_zone","market_breadth_ma200_zone"]' \ -H "Authorization: Bearer YOUR_API_KEY"

Response fields

FieldTypeDescription
resultsobject[]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_countintegerRows in results
fieldsstring[]The fields in each row
timeframestringThe timeframe searched
datestring | nullThe date searched, when every asset class shares one
date_mode, latest_dates_by_asset_classstring, objectWithout date: each asset class's newest date
requested_date, row_dates_by_asset_classstring, objectWith date: the date you asked for, and the date read for each asset class
start, endstringWith a range: the dates searched
filter_count, market_filter_countintegerFilters applied, and how many were market filters
membershipobjectWith member_of or held_by: what was applied
offsetintegerWith offset: the rows skipped
band_contractstringVersion 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

Statuserror.typeCauseWhat to do
400invalid_parameterMissing 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.
403tier_restrictedA date before your plan's first readable date.Use a later date, or upgrade at the upgrade_url in the response.
404no_dataNothing on or shortly before date.Try another date, or the other timeframe.
404not_foundThe 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.

More examples

A band and its number side by side: heavy volume, well below the 50-day average
curl -G "https://api.tickerdb.com/v1/search" \ --data-urlencode 'filters=[{"field":"volume_ratio","op":"gte","value":3},{"field":"trend_distance_ma50_pct","op":"lt","value":-10}]' \ --data-urlencode 'fields=["ticker","volume_ratio_zone","volume_ratio","trend_distance_ma50_zone","trend_distance_ma50_pct"]' \ --data-urlencode 'sort_by=volume_ratio' \ -H "Authorization: Bearer YOUR_API_KEY"
Small caps in IWM where several insiders are buying
curl -G "https://api.tickerdb.com/v1/search" \ --data-urlencode 'filters=[{"field":"insider_cluster_buying_state","op":"in","value":["several","cluster"]}]' \ --data-urlencode 'held_by=IWM' \ --data-urlencode 'fields=["ticker","sector","insider_cluster_buying_state","market_cap_usd"]' \ -H "Authorization: Bearer YOUR_API_KEY"