Documentation has been updated: see help center and changelog in one place.

URL

The bing source is designed to retrieve the content of direct URLs of various Bing pages. Instead of sending multiple parameters, you can provide us with a direct URL for the required Bing page. We do not strip any parameters or alter your URLs in any other way.

Request samples

In this example, we make a request to retrieve a result for the provided URL.

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "bing",
        "url": "https://www.bing.com/search?q=nike"
    }'
Output example
{
    "results": [
        {
            "content": "<!DOCTYPE html>
            CONTENT
            </html>",
            "created_at": "2024-07-01 08:46:47",
            "updated_at": "2024-07-01 08:46:48",
            "page": 1,
            "url": "https://www.bing.com/search?q=nike",
            "job_id": "7213463035497697281",
            "status_code": 200
        }
    ]
}

We use synchronous Realtime integration method in our examples. If you would like to use Proxy Endpoint or asynchronous Push-Pull integration, refer to the integration methods section.

Request parameter values

Parameter
Description
Default Value

source

Sets the scraper.

bing

url

Direct URL (link) to Bing page

-

render

Enables JavaScript rendering when set to html. More info.

-

parse

Returns parsed data when set to true. Limited to URLs of specific Bing page types.

-

callback_url

URL to your callback endpoint. More info.

-

user_agent_type

Device type and browser. The full list can be found here.

desktop

geo_location

Specifies the location for search results. Supports city, state, country, or coordinate formats. Read more.

-

- mandatory parameter

Last updated

Was this helpful?