A screener you can call from code
The screener answers questions like "which large flexi cap funds have the best five-year record?" in a browser. The WealthTicker API answers the same question from a script, a dashboard or a scheduled job, with the same engine behind it. Write a query, get back fund objects.
This post covers the query language and runs one screen on data to 2 November 2026.
The query in one line
/funds takes a q parameter: comparisons joined by AND.
sub category = Flexi Cap Fund AND aum > 10000 AND expense ratio < 1
- Numeric fields:
aum(in ₹ crore),1m,3m,6m,ytd,1y cagr,3y cagr,5y cagr,10y cagr,since inception,volatility,sharpe,sortino,max drawdown,alpha,beta,r squared,treynor,info ratio,tracking error, up/down capture,expense ratio,pe ratio,pb ratio,avg market cap,ratingandnav. - Text fields (
=or!=only):category,sub category,amc,plan,option,name. - Operators:
>,<,>=,<=,=,!=.
There is no OR and no brackets yet. If the parser can't read a clause, the response is a 400 invalid_query that names it, so a typo fails loudly instead of quietly matching nothing. It is the same language as the site's query builder, so you can draft a screen there, check its results by eye, and paste the expression into code.
A worked screen: big, reasonably cheap flexi cap funds
Say you want flexi cap funds with more than ₹10,000 crore of assets and an expense ratio under 1%, Direct Growth plans only, ranked by five-year CAGR:
curl -G -H "X-Api-Key: $WT_KEY" "https://wealthticker.in/api/v1/funds" \
--data-urlencode "q=sub category = Flexi Cap Fund AND aum > 10000 AND expense ratio < 1" \
-d plan=Direct -d option=Growth -d sort=ret5y -d dir=desc -d limit=5
On 2 November 2026 data, meta.total was 9. The first five:
| Fund | 5Y CAGR | 3Y CAGR | 1Y | Expense | Max drawdown |
|---|---|---|---|---|---|
| HDFC Flexi Cap Fund | 15.39% | 15.98% | −2.59% | 0.75% | −41.84% |
| ICICI Prudential Flexi Cap Fund | 13.73% | 15.41% | 0.05% | 0.88% | −19.71% |
| Parag Parikh Flexi Cap Fund | 10.80% | 12.46% | −4.92% | 0.69% | −31.20% |
| Aditya Birla Sun Life Flexi Cap Fund | 10.66% | 15.29% | 2.55% | 0.91% | −38.59% |
| Franklin India Flexi Cap Fund | 9.85% | 10.67% | −7.25% | 0.99% | −37.72% |
The flexi cap sub-category's five-year average, from /categories, was 9.95%, so even the fifth fund on this list sat just under it.
Two things in the table are worth a second look.
Maximum drawdown is measured over each fund's own history. ICICI Prudential's −19.71% looks far milder than HDFC's −41.84%. But the ICICI plan launched in 2021, after the 2020 crash, while HDFC's figure includes it. The response also carries risk.maxDrawdown3y, which compares the funds over the same three years: −13.32% for HDFC and −19.71% for ICICI.
Volatility and beta tell different stories. Parag Parikh's beta against the Nifty 500 TRI was 0.60 and its volatility 9.87%, the lowest of the five. Its five-year CAGR was mid-table. The full fund object carries those risk figures, so a second ranking needs no extra call.
Paging, sorting and the conventions that trip people up
limitgoes up to 500 andpagesteps through the rest.meta.totaltells you how many matched.sorttakes any of about 30 column ids (ret1y,ret3y,ret5y,sharpe,expenseRatio,aum,maxDrawdownand so on), withdir=ascordesc.auminsideqis in crore, butaumin the response is in rupees: HDFC Flexi Cap's 1109250750000 is ₹1,10,925 crore.- Returns under a year (
1m,3m,6m,ytd) are absolute; one year and longer are CAGR. - ETFs and side-pocketed schemes are left out unless you ask for
category=ETFor passcodes. ETFs trade at a market price, not at NAV.
Turning a screen into a habit
A query is most useful when it runs on a schedule. A cron job that runs the screen above once a month and diffs the result against last month's shows when a fund enters or drops out: it shrank under ₹10,000 crore, raised its fee, or slipped in the ranking. The best flexi cap fund ranking is that kind of comparison done by hand, and how the best-of-category lists are ranked explains a fuller method than one sort column.
A screen is a shortlist, not a recommendation; past returns say nothing certain about future ones. /funds is on every plan, free included (100 requests a day). The developers page lists every parameter and the full response shape.
Frequently asked questions
Can I screen mutual funds through an API?
Yes. The WealthTicker API's /funds endpoint takes a q parameter written in the same language as the site's query builder, for example sub category = Flexi Cap Fund AND aum > 10000 AND expense ratio < 1. It returns matching funds with their returns, risk and cost, sorted on any of about 30 columns, up to 500 per page.
What fields can a mutual fund API query filter on?
Numbers: AUM in crore, returns from 1 month to 10-year CAGR and since inception, volatility, Sharpe, Sortino, maximum drawdown, alpha, beta, R squared, tracking error, capture ratios, expense ratio, P/E, P/B, average market cap, rating and NAV. Text: category, sub category, AMC, plan, option and name.
Does the query support OR conditions?
Not yet. Clauses are joined with AND, and there are no brackets. To combine two sub-categories, run two queries, or use the category parameter alongside q. A malformed expression returns a 400 invalid_query error that names the clause it could not read.
This is commentary on published data, not investment advice. WealthTicker is not a SEBI-registered adviser or distributor. Figures are WealthTicker’s own calculations from public data — AMFI’s fund NAVs and disclosures, NSE’s index and FII/DII files, and the fund houses’ monthly portfolios (how we calculate). They are as of the dates stated and can be revised by their source.
Keep reading
Mutual fund NAV history in Python: a worked example
Pull daily mutual fund NAV history into pandas from the WealthTicker API, then reproduce a fund's CAGR, one-year return and maximum drawdown yourself.
CAGR vs absolute return: 100% in 5 years is 14.9% a year
A fund that doubles in 5 years returned 100% in absolute terms but 14.9% a year. How to convert between the two, with worked examples.
How to read max drawdown on a fund page, with three funds
Max drawdown is the worst fall from a NAV peak. HDFC Flexi Cap's is -41.8% over its life but -13.3% over three years. Two windows, two answers.
