Errors are returned as a JSON response with the following shape:
1{2 "error": {3 "type": "not_found_error",4 "message": "Video not found",5 "param": "video_id",6 "details": [...]7 }8}
type
message
param
details
validation_error
authentication_error
not_found_error
rate_limit_error
server_error
Every response includes an X-Request-ID header for log correlation:
X-Request-ID
X-Request-ID: a1b2c3d4e5f6...
This is not duplicated in the response body. Please include this ID when reporting issues.