GET /v1/discover/by-tag/{tag} returns trending APIs for a single tag, ranked by 30-day usage and subscriber count. Use this when an agent knows the domain (e.g. "llm", "weather", "payments") but not a specific provider.
tag (path) — single tag, case-sensitive, URL-encodedlimit (query, default 12, max 50)sort (query) — trending (default) or recentcurl "https://apitree.ai/api/v1/discover/by-tag/llm?limit=3"
{
"tag": "llm",
"sort": "trending",
"apis": [
{ "slug": "openai-chat", "name": "OpenAI Chat Completions", "calls30d": 128400, ... },
{ "slug": "anthropic-messages", "name": "Anthropic Messages", "calls30d": 94120, ... },
...
],
"count": 3
}trending_by_tag — same endpoint, exposed to Claude/Cursorapitree.trendingByTag(tag, { limit, sort })discover_for_agent for natural-language intent