GET /v1/creators/avatars
Instagram profile picture API: avatar URLs for up to 100 handles
Send up to 100 comma-separated Instagram handles in usernames and get a { handle: url } map of profile pictures. The URL is our permanent mirror copy when we hold one, else the Instagram CDN URL, which expires. A handle we do not store maps to null.
- Price
- $0.0002 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl
curl 'https://api.virev.ai/v1/creators/avatars?usernames=natgeo%2Cnike' \
-H "Authorization: Bearer $VIREV_API_KEY"python
import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/creators/avatars",
params={
"usernames": "natgeo,nike",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
usernames required | query | string | Comma-separated Instagram handles, up to 100. A leading @ is dropped. |
Example response
The example response of the API reference.
json
{
"data": {
"natgeo": "https://f005.backblazeb2.com/file/influencer-prod/production/crawler/instagram_account/1182.webp",
"nike": "https://api.virev.ai/v1/media/instagram_account/3882/profile_pic?e=1796256000&s=fe092697b56bedf6666c18542c67eeb1"
},
"meta": {
"cost": "$0.0002",
"balance": "$326.8510",
"request_id": "req_95ddf6d8a65c412ea25c9c695bd033a2"
}
}How it works
Profile picture URLs for up to 100 Instagram handles, as { handle: url }. The URL is our permanent mirror copy when we hold one, else the platform CDN URL, which expires. A handle we do not hold maps to null, and a call that finds no avatar costs $0.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |