API Documentation
REST JSON API. No auth required for the public endpoints. Built for programmatic access to LeanForge keyword data.
Endpoints
Content type
Free rate limit (per IP)
Base URL
https://lean-forge.net/api/v1Endpoints
/api/v1/keywordsList all keywords with pagination
/api/v1/keywords/trendingTrending keywords (rising direction)
/api/v1/keywords/:slugGet a single keyword with trend data
/api/v1/categoriesList all categories
/api/v1/categories/:slugGet a single category with its keywords
/api/v1/trendsList trend data points, filterable
/api/v1/trends/dailyGoogle Trends daily trends
/api/v1/trends/compareCompare 2-5 keywords side by side
/api/v1/trends/:keywordId/timeline90-day timeline for a keyword
/healthLiveness probe (Railway healthcheck)
/health/deepDeep probe: DB + Redis + uptime
Example: fetch trending
curl https://lean-forge.net/api/v1/keywords/trending?limit=10
{
"data": [
{
"id": "...",
"term": "AI code review",
"slug": "ai-code-review",
"category": "ai",
"trendScore": 87,
"velocity": 23.4,
"direction": "rising",
"searchVolume": 12400,
"difficulty": 42,
"cpc": 1.85,
"source": "google_trends",
"isActive": true
}
],
"_meta": {
"total": 80,
"limit": 10,
"offset": 0,
"regent_cta": {
"headline": "Ready to rank for this keyword?",
"url": "https://seo-ai-regent.com/?ref=keyword-trend-api"
}
}
}Rate limiting
The public API is rate-limited to 100 requests per 15 minutes per IP. Response headers include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. If you need a higher limit, the Starter and Growth plans raise it to 1,000 and 10,000 requests per 15 minutes.