Instagram profil verilerini çekmek için REST API
X-API-Key header'ı ile doğrulanır.
X-API-Key: your-secret-api-key
curl -X GET http://localhost:3000/health \ -H "X-API-Key: your-api-key"
{
"status": "ok",
"timestamp": "2025-11-18T22:00:00.000Z"
}
# Temel kullanım (tüm veriler) curl -X GET "http://localhost:3000/api/scrape/instagram" \ -H "X-API-Key: your-api-key" # Sadece profil bilgisi (listeler olmadan) curl -X GET "http://localhost:3000/api/scrape/instagram?includeFollowers=false&includeFollowing=false&includePosts=false" \ -H "X-API-Key: your-api-key" # İlk 50 takipçi ve 50 takip edilen curl -X GET "http://localhost:3000/api/scrape/instagram?maxFollowers=50&maxFollowing=50&includePosts=false" \ -H "X-API-Key: your-api-key" # Sadece 20 post detayı curl -X GET "http://localhost:3000/api/scrape/instagram?maxPosts=20&includeFollowers=false&includeFollowing=false" \ -H "X-API-Key: your-api-key" # Sadece story'leri çek curl -X GET "http://localhost:3000/api/scrape/instagram?includeFollowers=false&includeFollowing=false&includePosts=false" \ -H "X-API-Key: your-api-key"
{
"success": true,
"data": {
"username": "instagram",
"fullName": "Instagram",
"bio": "Bio text",
"profilePicUrl": "https://...",
"isVerified": true,
"isPrivate": false,
"externalUrl": "https://...",
"stats": {
"postsCount": 1234,
"followersCount": 500000000,
"followingCount": 123
},
"hasStory": true,
"stories": [
{
"type": "image",
"url": "https://...",
"thumbnail": "https://..."
},
{
"type": "video",
"url": "https://...",
"thumbnail": "https://..."
}
],
"followers": [
{
"username": "user1",
"fullName": "User One",
"profileUrl": "https://instagram.com/user1"
}
],
"following": [
{
"username": "user2",
"fullName": "User Two",
"profileUrl": "https://instagram.com/user2"
}
],
"posts": [
{
"postUrl": "https://instagram.com/p/ABC123/",
"thumbnail": "https://...",
"alt": "Photo description",
"likes": 1250,
"comments": 45,
"caption": "Check out this post! #instagram",
"timestamp": "2024-01-15T10:30:00.000Z",
"isVideo": false,
"isCarousel": true
}
]
},
"options": {
"maxFollowers": 50,
"maxFollowing": 50,
"maxPosts": 12,
"includeFollowers": true,
"includeFollowing": true,
"includePosts": true,
"includeStories": true
},
"timestamp": "2025-11-18T22:00:00.000Z"
}
{
"success": false,
"error": "Unauthorized - API key required"
}
{
"success": false,
"error": "Error message",
"timestamp": "2025-11-18T22:00:00.000Z"
}