Search
Extract Target search results with parsed data for organic listings, including pricing, ratings and brand info, with support for store, fulfillment type and delivery ZIP localization.
The target_search source retrieves Target search result pages. With "parse": true the response is structured JSON (fields described in the data dictionary below); without it, content holds the page HTML.
Request samples
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "target_search",
"query": "iphone",
"parse": true
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'target_search',
'query': 'iphone',
'parse': True
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())Request parameter values
source
Sets the scraper.
target_search
query
The keyword or phrase to search for products.
-
parse
Returns parsed data when set to true. Explore the output data dictionary.
false
fulfillment_type, store_id, delivery_zip
Optional localization and availability filters, see Localization and Filtering.
-
- mandatory parameter
Response example
A parsed search page for the query iphone (the organic list is shortened to one item):
Localization and Filtering
fulfillment_type
Filters the results by how the product can be obtained. Available values: pickup, shipping, shop_in_store. Target applies the matching filter to the results page.
-
store_id
Target store number as an integer, e.g. 1771. Only existing store numbers are accepted.
-
delivery_zip
Delivery ZIP code as a string, e.g. "10001".
-
Output data dictionary
HTML example

JSON structure
The table below presents a detailed list of each search results page element we parse, along with its description and data type. The table also includes some metadata.
url
The URL of the search results page.
string
results
Container for the search results.
object
results.organic
List of organic (non-paid) search results.
array
organic.url
The URL of the product page.
string
organic.title
The title of the product.
string
organic.brand_name
The name of the brand.
string
organic.image
URL of the product image.
string
organic.product_id
The Target product ID (TCIN).
string
organic.price_data
Container for the product price data.
object
organic.price_data.price
The price of the product.
float
organic.price_data.currency
The currency of the price.
string
organic.price_data.comparison_price
The regular price the current price is compared against, if discounted.
float
organic.price_data.upper_price
The upper price if there is a price range.
float
organic.rating_data
Container for the product rating data.
object
organic.rating_data.count
The number of ratings.
integer
organic.rating_data.score
The average rating score.
float
organic.rating_data.reviews_url
The URL of the product's reviews section.
string
organic.shipping_message
The shipping or delivery message shown for the product, if present.
string
parse_status_code
The status code of the parsing job. You can see the parser status codes described here.
integer
created_at
The timestamp when the scraping job was created.
timestamp
updated_at
The timestamp when the scraping job was finished.
timestamp
page
The page number in the pagination of results.
integer
status_code
The HTTP status code of the scraped page.
integer
parser_type
The type of parser used to extract the data.
string
job_id
The ID of the job associated with the scraping job.
string
Last updated
Was this helpful?