# Stock screener API for long-term investors

Let Claude or ChatGPT screen every US stock and ETF for dividends, value and quality, today or on any past day.

Page: https://tickerbot.io/solutions/long-term-investors/

## What you’ll build: Connect Claude or ChatGPT as your market research agent

- **Ask in plain English.** Ask about today or any past day, including the stocks you hold.

## How you’ll build it: No code, just your agent

1. **Get a free API key.** Sign up in a minute, with no card required.
2. **Connect Claude or ChatGPT.** Add our MCP server in a few clicks, with no code to write.
3. **Ask.** Each question becomes one screen, on any day since 2000.

## Example outcomes: You look back to any year since 2000

- Which big, steady companies yielded over 3% at under 20 times earnings at the start of 2020? **10.**
- Which large caps traded under 12 times earnings with over 15% return on equity at the end of 2021? **8.**
- Which large caps grew earnings over 15% with a dividend at the end of 2022? **30.**
- Which large caps had over 20% return on equity, low debt and a 2% yield on June 30, 2023? **25.**
- Which large caps were oversold on March 16, 2020? **264.**

The call behind the first answer:

POST /v3/screen/tickers

```bash
curl -X POST https://api.tickerbot.io/v3/screen/tickers \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{
    "where": "dividend_yield() > 0.03 AND beta() < 0.8 AND pe() < 20 AND market_cap() > 5e10",
    "at": "2020-01-02",
    "select": ["ticker", "dividend_yield()", "pe()"],
    "order": "market_cap() desc",
    "limit": 3
  }'
```

```json
{
  "at": "2020-01-02T21:00:00Z",
  "data": [
    { "ticker": "T", "t": "2020-01-02T21:00:00Z", "dividend_yield()": 0.052, "pe()": 17.4 },
    { "ticker": "VZ", "t": "2020-01-02T21:00:00Z", "dividend_yield()": 0.04, "pe()": 15.7 },
    { "ticker": "PFE", "t": "2020-01-02T21:00:00Z", "dividend_yield()": 0.037, "pe()": 13.6 }
  ],
  "count": 3,
  "next_cursor": "c2Nhbjoz",
  "_meta": { … }
}
```


## Get started

- Get a free API key: https://tickerbot.io/signup/
- Connect your agent over MCP: https://tickerbot.io/docs/mcp/ (setup for coding agents: https://tickerbot.io/agent-setup/SKILL.md)
- Docs: https://tickerbot.io/docs/ (Markdown: https://tickerbot.io/docs.md)
