Get a public Instagram profile by username, with optional raw provider data.
Endpoint
- Path:
/api/v1/instagram/profile - Cost: 1 credit per successful request
Query parameters
| Name | Required | Description | Example |
|---|---|---|---|
username | Yes | The Instagram username without the @ symbol. | instagram |
raw | No | Include the unchanged provider response in the raw field. Defaults to false. | true |
curl --get 'https://api.sociallisteningapi.com/api/v1/instagram/profile' \
--data-urlencode 'username=instagram' \
--data-urlencode 'raw=true' \
--header 'x-api-key: YOUR_API_KEY'Responses
{
"success": true,
"platform": "instagram",
"endpoint": "/api/v1/instagram/profile",
"data": {
"id": "25025320",
"platform": "instagram",
"username": "instagram",
"display_name": "Instagram",
"avatar_url": "https://example.com/instagram.jpg",
"bio": "Discover what's new on Instagram.",
"verified": true,
"followers": 686000000,
"following": 184,
"posts_count": 8000,
"likes_count": null,
"url": "https://www.instagram.com/instagram/",
"location": null,
"external_url": "https://about.instagram.com/",
"private": false,
"joined_at": null,
"ext": {
"category_name": "Digital creator",
"business_category_name": null,
"business_email": null,
"business_phone_number": null,
"is_business_account": false,
"is_professional_account": true,
"bio_links": [],
"pronouns": []
}
},
"pagination": {
"next_cursor": null,
"has_more": false,
"page_size": 1
},
"raw": {
"success": true,
"credits_remaining": 99,
"credits_charged": 1,
"data": {
"user": {}
},
"status": "ok"
},
"request_id": "req_example123",
"credits_used": 1,
"credits_remaining": 99
}