POST /v1/creators/profiles/refresh
Creator profile refresh API: queue a fresh crawl of a stored profile
Send a platform and username to queue a fresh crawl of that profile. requested: true means this call queued it; requested: false means a crawl was already queued or the account is known not to exist, and that answer is free. Poll the refresh status endpoint until refresh_pending is false, then read the new copy with the creator profile endpoint.
- Price
- $0.0005 per call
- Batch
- No
- Failed calls
- Not charged
Example request
curl -X POST 'https://api.virev.ai/v1/creators/profiles/refresh' \
-H "Authorization: Bearer $VIREV_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"platform":"instagram","username":"nasa"}'import os
import requests
response = requests.request(
"POST",
"https://api.virev.ai/v1/creators/profiles/refresh",
json={
"platform": "instagram",
"username": "nasa",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Request body
{
"platform": "instagram",
"username": "nasa"
}Example response
The example response of the API reference.
{
"data": {
"platform": "instagram",
"username": "nasa",
"state": "pending",
"requested": true,
"via": "direct"
},
"meta": {
"cost": "$0.0005",
"balance": "$9.9995",
"request_id": "req_2eae4fd7f814aa3ca6c5fb17d79b2239"
}
}How it works
Queues a fresh crawl of one stored profile. requested: true means this call queued it and bills $0.0005. requested: false is free: a crawl was already queued (state: pending), or the account is known not to exist (state: unavailable). Poll /v1/creators/profiles/refresh-status until refresh_pending is false, then read the fresh copy with /v1/creators/profile.
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. |