GET /v1/crawl/threads/profile
Threads profile API: a Threads profile page by handle
Send a Threads handle without the @ in user and get the profile page's HTML document, which carries the bio and follower data. A page with no profile data is not billed.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl
curl 'https://api.virev.ai/v1/crawl/threads/profile?user=zuck' \
-H "Authorization: Bearer $VIREV_API_KEY"python
import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/crawl/threads/profile",
params={
"user": "zuck",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
user required | query | string | The Threads handle, without the @. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
json
{
"data": {
"final_url": "https://www.threads.com/@zuck",
"status": 200,
"content_type": "text/html; charset=\"utf-8\"",
"payload_kind": "text",
"response_headers": {
"cache-control": "private, no-cache, no-store, must-revalidate",
"expires": "Sat, 01 Jan 2000 00:00:00 GMT",
"content-type": "text/html; charset=\"utf-8\""
},
"body": "<!DOCTYPE html><html class=\"_9dls _aoqh\" lang=\"en\" dir=\"ltr\"><head><link data-default-icon=\"https://static.cdninstagram.com/rsrc.php/y4/r/pctUncuduBn.svg\" rel=\"icon\" type=\"image/svg+xml\" href=\"https://static.cdninstagram.com/rsrc.php/y4/r/p…"
},
"meta": {
"cost": "$0.0005",
"balance": "$3.0720",
"request_id": "req_2abb5ab4357f1d7f6dbf8668c6af2362"
}
}How it works
A Threads profile page — the document, with bio and follower data embedded in the HTML. A page with no profile data is not billed.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | The page does not exist: its site answered 404 or 410 for this input. You are not charged. |
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. |