# Metabot — 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.

> Get the latest winning Teamfight Tactics team compositions with detailed champion statistics, optimal item builds, trait synergies, and real-time performance metrics to dominate your ranked games. Instantly access current meta strategies sourced from top player data to build and pilot the strongest comps.

**Category:** Sports | **Website:** [metabot.gg/api/tft](https://metabot.gg/api/tft) | **Docs:** [parse.bot/marketplace/02520e8c-cc46-403b-846c-e6ff069dedc6/metabot-gg-api](https://parse.bot/marketplace/02520e8c-cc46-403b-846c-e6ff069dedc6/metabot-gg-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-metabot-gg-api-02520e8c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_team_comps

Fetches the current patch's meta team compositions for TFT. Each composition includes its tier rating, performance metrics (average placement, first-place rate, top-4 rate, pick rate), required champions with costs and recommended star levels, carry champions with recommended items, active traits, and top item builds. Results are sorted by the chosen metric. Data refreshes hourly from ranked match statistics.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sort` | string | No | Metric to sort compositions by. winRate sorts by top-4 rate (placing in top 4 out of 8 players), firstPlaceRate by actual first-place finishes, placement by average placement (ascending), pickRate by contested frequency. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-metabot-gg-api-02520e8c/get_team_comps \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sort":"<string>"}'
```
