Instagram Public Profile (No Auth)
Fetch a public Instagram profile anonymously, including profile metadata and paginated posts.
/v1/instagram/public-profileSend Authorization: Bearer YOUR_API_KEY. Get an API key →
Parameters
Send these fields in a flat JSON body. Add _run to choose execution options.
usernamestringRequiredInstagram username to scrape anonymously. Minimum length: 1. Maximum length: 2000.
limitintegerOptionalNumber of posts to fetch (1-50). Preferred name; count remains supported. Default: 12. Minimum: 1. Maximum: 50.
afterstringOptionalPagination cursor from a previous response.
Advanced & compatibility inputs 1
countintegerOptionalNumber of posts to fetch (1-50). You can also use limit. Default: 12. Minimum: 1. Maximum: 50.
Response
Every response describes a run. Read result once run_status is succeeded.
run_id- The run to track. Keep it when contacting support.
run_status- Queued, running, waiting for sign-in, succeeded, or failed. Check this even after an HTTP 200.
status_url- Poll this URL while the run is pending. Keep the same run instead of starting another request.
result- The endpoint’s returned data. The example is illustrative; actual fields may be empty or unavailable.
error- On failure, inspect its code, message, retryable and action fields.
View the complete output schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"success",
"profile",
"posts",
"pagination"
],
"properties": {
"posts": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"code",
"media_type",
"is_video"
],
"properties": {
"id": {
"type": "string"
},
"code": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"username": {
"type": "string"
}
},
"additionalProperties": false
},
"caption": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"is_video": {
"type": "boolean"
},
"media_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"timestamp": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"dimensions": {
"type": "object",
"properties": {
"width": {
"type": "number"
},
"height": {
"type": "number"
}
},
"additionalProperties": false
},
"like_count": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"media_type": {
"type": "number"
},
"display_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"media_items": {
"type": "array",
"items": {
"type": "object"
}
},
"comment_count": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"thumbnail_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"accessibility_caption": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"additionalProperties": true
}
},
"profile": {
"type": "object",
"required": [
"id",
"username",
"followers",
"following",
"total_posts",
"is_private",
"is_verified"
],
"properties": {
"id": {
"type": "string"
},
"username": {
"type": "string"
},
"biography": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"followers": {
"type": "number"
},
"following": {
"type": "number"
},
"full_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"is_private": {
"type": "boolean"
},
"is_verified": {
"type": "boolean"
},
"total_posts": {
"type": "number"
},
"external_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"profile_pic_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"profile_pic_url_hd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"additionalProperties": true
},
"success": {
"type": "boolean"
},
"pagination": {
"type": "object",
"required": [
"has_next_page",
"end_cursor",
"count"
],
"properties": {
"count": {
"type": "number"
},
"end_cursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"has_next_page": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}View a polled run response
{
"run_id": "00000000-0000-4000-8000-000000000001",
"task_key": "instagram-public-profile",
"task_name": "Instagram Public Profile (No Auth)",
"run_status": "succeeded",
"status_url": "/v1/runs/00000000-0000-4000-8000-000000000001",
"result": {
"posts": [
{
"id": "id-1",
"code": "sample",
"owner": {
"id": "id-1",
"username": "Stylish Shoreditch Loft with Balcony"
},
"caption": "sample",
"is_video": true,
"media_url": "https://example.com/item-1",
"timestamp": "sample",
"dimensions": {
"width": 1.5,
"height": 1.5
},
"like_count": 1,
"media_type": 1.5,
"display_url": "https://example.com/item-1",
"media_items": [
{}
],
"comment_count": 1,
"thumbnail_url": "https://images.example.com/thumbnail_url-1.jpg",
"accessibility_caption": "sample"
}
],
"profile": {
"id": "id-1",
"username": "Stylish Shoreditch Loft with Balcony",
"biography": "sample",
"followers": 1.5,
"following": 1.5,
"full_name": "Stylish Shoreditch Loft with Balcony",
"is_private": true,
"is_verified": true,
"total_posts": 180,
"external_url": "https://example.com/item-1",
"profile_pic_url": "https://example.com/item-1",
"profile_pic_url_hd": "https://example.com/item-1"
},
"success": true,
"pagination": {
"count": 1,
"end_cursor": "cursor-page-1",
"has_next_page": true
}
},
"error": null
}Errors & retries
400Fix the fields listed inerrorsbefore retrying.428Connect the requested website account using the returned sign-in link.429Wait for the duration inRetry-After.5xxRetry transient failures with backoff. Keep the request ID.
A failed run has its own error inside the response. Retry it only when error.retryable is true.
More examples
Async request with polling
RUN=$(curl -s -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/instagram/public-profile" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username":"natgeo"}')
RUN_ID=$(echo "$RUN" | jq -er '.run_id // empty') || { echo "$RUN" >&2; exit 1; }
POLL_DELAY=3
while true; do
RESULT=$(curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/runs/$RUN_ID")
STATUS=$(echo "$RESULT" | jq -r '.run_status')
if [[ "$STATUS" =~ ^(succeeded|failed|errored|cancelled|canceled|expired)$ ]]; then
echo "$RESULT"
break
fi
sleep "$(awk "BEGIN { print $POLL_DELAY * (0.9 + ($RANDOM % 21) / 100) }")"
POLL_DELAY=$((POLL_DELAY < 30 ? POLL_DELAY * 2 : 30))
[ "$POLL_DELAY" -gt 30 ] && POLL_DELAY=30
doneWait-for-results request
curl -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/instagram/public-profile" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username":"natgeo","_run":{"async":false}}'Canonical & compatibility routes
You can also send the same JSON body to /v1/tasks/instagram-public-profile/runs.