# Tipranks — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Discover top-performing stocks and access detailed analyst ratings and earnings forecasts to make informed investment decisions. Get real-time stock information including performance metrics and expert analyst opinions all in one place.

**Category:** Finance & Markets | **Website:** [tipranks.com/](https://tipranks.com/) | **Docs:** [parse.bot/marketplace/697e5f16-1200-4c29-a181-c580bb62981f/tipranks-com-api](https://parse.bot/marketplace/697e5f16-1200-4c29-a181-c580bb62981f/tipranks-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-tipranks-com-api-697e5f16/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_best_stocks

Fetches top stocks ranked by TipRanks Smart Score and sorted by consensus upside potential. Each stock includes analyst detailed ratings (name, firm, price target, action) and earnings reports that caused greater than 6% price movement. The screener data refreshes periodically; results reflect TipRanks' current top-scored universe. Returns a single page capped by limit.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of top stocks to return. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tipranks-com-api-697e5f16/get_best_stocks \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>"}'
```

### get_stock_info

Returns comprehensive analysis for a single stock ticker including company fundamentals (CEO, sector, industry, employees), current price, analyst consensus breakdown (buy/hold/sell counts, price target range, upside), individual analyst ratings with price targets and actions, and historical earnings reports that moved the stock price more than 6%. Requires a valid US or international ticker symbol recognized by TipRanks.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ticker` | string | Yes | Stock ticker symbol (e.g. AAPL, TSLA, MSFT). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tipranks-com-api-697e5f16/get_stock_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker":"<string>"}'
```

### get_top_stocks_and_analysts

Returns a combined view of the top 10 TipRanks SmartScore stocks (ranked by score) and the top 10 Wall Street analysts (ranked by TipRanks star rating). Each stock includes company name, ticker, smart score, current price, and consensus upside. Each analyst includes rank, name, firm, sector, success rate, average return, rating distribution, and their most recent stock analysis (ticker, position, action, price target, date). Data refreshes periodically from TipRanks' screener and expert ranking systems.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tipranks-com-api-697e5f16/get_top_stocks_and_analysts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
