Target

With Web Scraper API, you can scrape and parse various types of Target pages; below is an overview of all supported scrapers and their respective source values.

Getting started

Source
Description
Dedicated parser

target

Access any Target URL directly with additional localization options.

No

target_search

Search page for a search term of your choice.

Yes

target_product

Product page of a product ID of your choice.

Yes

target_category

Category page based on Target's taxonomy node ID.

No

Create your API user credentials: Sign up for a free trial or purchase the product in the Oxylabs dashboard to create your API user credentials (USERNAME and PASSWORD).

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.

Optionally, you can include additional parameters such as user_agent_type, parse, render and more to customize your scraping request. Read more: Features

Target Source

The target source allows you to retrieve any Target page by providing a direct URL. This is useful for accessing specific Target pages that aren't covered by the specialized sources.

Request samples

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
    "source": "target",
    "url": "https://www.target.com/c/deals/-/N-4lwvo",
    "render": "html"
}'

Request parameter values

Generic

Parameter
Description
Default Value

source

Sets the scraper.

target

url

Direct URL (link) to any Target page.

-

render

Enables JavaScript rendering when set to html. More info.

-

callback_url

URL to your callback endpoint. More info.

user_agent_type

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

desktop

- mandatory parameter

Localization

Adapt results to specific stores and delivery locations.

Parameter
Description
Type

store_id

Set the store location.

Integer

delivery_zip

Set the shipping to location.

String

Last updated

Was this helpful?