The HTTP 415 Unsupported Media Type error occurs when the server cannot process the request due to an unsupported format in the payload. This issue may relate to the Content-Type or Content-Encoding specified in the request. The server detects this incompatibility by analyzing the submitted data.
The `Content-Type` header in the request is a format not supported by the server.
The `Content-Encoding` header specifies an encoding that the server is unable to process.
The server is unable to handle or recognize the data structure of the payload after inspecting it.
The request is targeting an endpoint that specifically requires a different content format than what is provided.
# Request example curl -X GET https://sandbox.oxylabs.io/ -H 'Accept: application/xhtml+xml' -H 'Accept-Encoding: br' -H 'User-Agent: Safari/537.36'
Try Scraper API with 5K results
Ensure the Content-Type header in your HTTP request matches the format the server is capable of processing.
Verify that the payload format is supported by the server by checking the server's documentation or configuration.
Convert your data into a compatible format before sending it to the server.
Add or update the Accept header in your request to match the media types supported by the server.
# Response example HTTP/1.1 415 Unsupported Media Type Content-Type: text/plain; charset=utf-8 Content-Length: 35 Unsupported media type requested.
Web scraper API
Public data delivery from a majority of websites
From
49