Build powerful integrations with RankAgent AI's RESTful API
All API requests require authentication using an API key. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEYGet your API key from your account settings dashboard after logging in.
All API endpoints are relative to the base URL:
https://api.rankagentai.io/v1/users/:idRetrieve user profile information including creator stats and verification status.
{
"id": "usr_123456",
"name": "John Creator",
"type": "creator",
"verified": true,
"stats": {
"followers": 125000,
"engagement_rate": 4.8,
"avg_views": 85000
},
"platforms": ["youtube", "instagram", "tiktok"]
}/analytics/:userIdFetch detailed analytics data for a specific user across all connected platforms.
{
"userId": "usr_123456",
"period": {
"start": "2025-01-01",
"end": "2025-01-31"
},
"metrics": {
"total_views": 2150000,
"total_engagement": 98500,
"engagement_rate": 4.58,
"follower_growth": 12500,
"avg_watch_time": "8:24"
},
"platforms": {
"youtube": { "views": 1200000, "engagement": 58000 },
"instagram": { "views": 650000, "engagement": 28000 },
"tiktok": { "views": 300000, "engagement": 12500 }
}
}/scan/contentPerform an AI-powered SEO scan on a specific piece of content.
{
"url": "https://youtube.com/watch?v=example",
"platform": "youtube",
"options": {
"deep_scan": true,
"include_recommendations": true
}
}{
"scan_id": "scn_789012",
"url": "https://youtube.com/watch?v=example",
"score": 87,
"metrics": {
"seo_score": 85,
"engagement_quality": 92,
"content_authenticity": 94
},
"recommendations": [
"Optimize video title for search keywords",
"Add more relevant tags",
"Improve thumbnail contrast"
]
}/search/creatorsSearch for creators based on various criteria including niche, engagement rate, and follower count.
{
"results": [
{
"id": "usr_123456",
"name": "TechReviewer Pro",
"niche": "technology",
"verified": true,
"followers": 250000,
"engagement_rate": 5.2,
"platforms": ["youtube", "instagram"]
}
],
"total": 147,
"page": 1,
"per_page": 20
}Rate limit headers are included in every response to help you track your usage.
400The request was malformed or missing required parameters
401Invalid or missing API key
403You don't have permission to access this resource
404The requested resource doesn't exist
429Rate limit exceeded - please slow down your requests
500Something went wrong on our end - please try again later