Troubleshooting
Web API status codes, error response formats, retry policy, and common troubleshooting solutions.
Status codes
200 OK
Realtime result in the response body
–
202 ACCEPTED
Async job accepted
–
400 MALFORMED_REQUEST_BODY
Request body is not valid JSON
No, fix payload formatting.
400 VALIDATION_ERROR
One or more fields failed validation.
No, fix all entries in errors[] before resending.
401 UNAUTHORIZED
Authentication error (missing, invalid, malformed, or revoked key). No response body on this status.
No, fix credentials.
404 NOT_FOUND
A path under /search doesn't exist or async request_id does not exist or is expired.
No
405 METHOD_NOT_ALLOWED
Incorrect HTTP method used (endpoints require POST).
No
408 REQUEST_TIMEOUT
/scrape only. The scraper didn't answer within the server's wait window
Yes, with backoff.
429 TOO_MANY_REQUESTS
Rate limit or quota exceeded. See Common errors
Rate limit: yes, with backoff. Quota: no.
500 REQUEST_FAILED_AFTER_TOO_MANY_RETRIES
All upstream engines failed. Not charged.
Yes, with backoff.
500 INTERNAL_SERVER_ERROR
Unexpected system fault
Yes, with backoff.
503 SERVICE_UNAVAILABLE
Upstream service temporarily unavailable
Yes, with backoff.
5xx
Other transient upstream failure
Yes, up to ~3 attempts with backoff.
Error response
/search failures use an RFC 9457 problem document, served as application/problem+json:
status
HTTP status code matching the response status line.
number
state
Present on faulted 500 responses ("faulted"). Successful calls return "done".
string
title
Machine-readable error code. Branch application logic on this field.
string
detail
Human-readable explanation of the error. Do not match against this prose text.
string
instance
Trace identifier for the request. Include in support inquiries.
string
metadata.request_id
19-digit request handle used for tracking and support.
string
metadata.timestamp
Unix epoch timestamp in seconds.
number
params
All parameters used for the request with applied defaults. Present on validated requests (e.g., 500), absent on 400.
object
errors[]
List of parameter failures. Present on VALIDATION_ERROR only.
array
errors[].pointer
JSON Pointer identifying the rejected field (e.g., #/max_results).
string
errors[].detail
Explanation of why the specific field was rejected.
string
Retries
Retry 408, 429, and 5xx with exponential backoff and jitter, capped at ~3 attempts:
On sustained 429, lower concurrency rather than shortening the backoff. Retrying faster against a rate limit will not solve it.
Common errors & solutions
1. Rate limit vs. quota exhaustion (429)
Both rate limit violations (exceeding requests-per-second concurrency) and account quota exhaustion return an HTTP 429 Too Many Requests code.
Solution: If an HTTP 429 persists across multiple backoff attempts spanning more than 30 seconds, your account has exhausted its monthly request quota. Inspect your active usage limits in the Oxylabs Dashboard.
2. Timeouts on JavaScript-heavy pages (run_js: true)
Headless browser rendering (run_js: true) or complex target sites require significantly more processing time than standard HTML fetches, often more than a typical default client timeout (5–10s).
Solution: Set client timeouts to ~150 seconds. For anything likely to run long regardless, use Async Delivery instead of holding the connection open.
Media-specific errors (/scrape/media)
/media and its sub-endpoint jobs can finish with HTTP 200 and state: "done", but return no data or file with media-specific error in results[0].metadata.statuses.video_download:
11201
VIDEO_DELETED
The YouTube video was deleted.
Open the URL in a browser to confirm the video is still there. Retrying the same video won't help.
11202
VIDEO_UNAVAILABLE
YouTube reports the video as unavailable.
Open the video in a browser to check that it plays. If it does, contact support with the job's request_id.
11203
VIDEO_PRIVATE
The uploader set the video to private, so only they and invited viewers can see it.
Use a public video.
11204
VIDEO_GEO_RESTRICTED
The video isn't available in the region the job ran from.
If you need this video, contact support with the job's request_id.
11205
VIDEO_LIVE
The video is a livestream in progress.
Retry after the stream has ended.
11206
VIDEO_AGE_RESTRICTED
The video is age-restricted.
Age-restricted videos can't be retrieved. Use a different video.
11207
VIDEO_MEMBER_ONLY
The video is only available to paying channel members.
Members-only videos can't be retrieved. Use a different video.
11208
VIDEO_PREMIUM_ONLY
The video requires a YouTube Premium subscription.
Premium-only videos can't be retrieved. Use a different video.
11209
VIDEO_LIVE_OR_TOO_LONG
The video is either a livestream in progress or too long to download. /media/youtube/download only.
If the video is live, retry after the stream has ended. Videos up to 12 hours long can be downloaded.
11210
VIDEO_TOO_LONG
The video is too long to download. /media/youtube/download only.
Videos up to 12 hours long can be downloaded. Use a shorter video.
11211
VIDEO_SIGN_IN_REQUIRED
YouTube requires signing in to view the video. /media/youtube/download only.
Videos that require sign-in can't be downloaded. Use a different video.
11301
MEDIA_UNAVAILABLE
The video was deleted, or the post it belonged to no longer exists.
Open the URL in a browser to confirm the video is still there. Retrying the same URL won't help.
11302
MEDIA_PRIVATE
The video, or the account that posted it, is private. Only public videos can be downloaded.
Use a URL to a public video.
11303
MEDIA_GEO_RESTRICTED
The video isn't available in the job's region. The /media endpoint has no location parameter, so the region can't be changed in the request.
If you need this video, contact support with the job's request_id.
11304
MEDIA_UNSUPPORTED
No video found in URL: a photo or slideshow post, a livestream, a post with no video, or a video that is too long or too large to download.
Check that the URL matches one of the accepted URL formats and points to a single recorded video.
Video doesn't arrive in your bucket
storage.url is not validated. A misspelled bucket or path is accepted, and the job runs and is billed, but the upload fails.
Check storage.type and storage.url before sending. For s3_compatible and tos, storage.url must be a full URL with credentials, e.g. https://key:secret@host/bucket/path.
Reporting a problem
If an API issue persists, capture the unique request handle from the response payload before opening a ticket with Oxylabs Technical Support.
Response field:
metadata.request_id(e.g.,"1788875675880097469")Gateway error field:
trace_id(e.g.,"d940ba3c-2109-4391-a292-9f2c0613a656")
Including the request_id or trace_id allows our support to immediately locate jobs, proxy node routing data, and upstream response codes.
Last updated
Was this helpful?