Skip to content

Commit d071549

Browse files
Create file
1 parent 6fc8c62 commit d071549

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

docs/targetSearch.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# targetSearch Documentation
2+
3+
## Brief Description
4+
5+
targetSearch is a JSON object that defines the configuration for performing product searches on Target's website and extracting structured data from the search results.
6+
7+
## Usage
8+
9+
This object is typically used as part of a larger system or API for scraping product data from Target. It defines the query parameters, URL structure, and parsing options for making Target product search requests and processing the results.
10+
11+
## Parameters
12+
13+
The `query_builder` property contains the following key parameters:
14+
15+
* `query` (string, required): The search term to look for on Target
16+
17+
* `offset` (number, optional): Pagination offset for search results
18+
19+
* `category` (string, optional): Target category ID to filter results
20+
21+
* `fulfillment` (enum, optional): Fulfillment method filter (e.g. "Pickup", "Shipping")
22+
23+
* `sort_by` (enum, optional): Sort order for results (e.g. "Relevance", "Price: Low to High")
24+
25+
## Return Value
26+
27+
This object does not return a value directly, but defines the structure for search requests and responses. The `example_response` shows the expected data format returned from a search, including product details like name, brand, price, ratings, etc.
28+
29+
## Examples
30+
31+
```javascript
32+
// Example search request
33+
{
34+
"endpoint": "https://api.webit.live/api/v1/realtime/ecommerce/target/search",
35+
"method": "POST",
36+
"headers": {
37+
"Authorization": "Basic <TOKEN>",
38+
"Content-Type": "application/json"
39+
},
40+
"body": {
41+
"query": "iron flask"
42+
}
43+
}
44+
```
45+
46+
## Notes or Considerations
47+
48+
* This object is meant to be used as part of a larger scraping/API system and not directly by end users
49+
50+
* It includes configurations for rendering the page and capturing network requests, which may require a headless browser
51+
52+
* The search functionality supports various filters and sorting options that can be customized
53+
54+
* Respect Target's terms of service and rate limits when using this for scraping

0 commit comments

Comments
 (0)