
ASDA Grocery Scraper
Pricing
$30.00/month + usage
Go to Store


ASDA Grocery Scraper
Scrape ASDA.com Groceries
0.0 (0)
Pricing
$30.00/month + usage
2
Total users
185
Monthly users
7
Runs succeeded
98%
Last modified
a year ago
Get Url with query parameters
Closed
coordinated_thundertube opened this issue
2 years ago
I am able to create a task for a specific query for example: query => 'pasta', 'pagination' => 20 using the create new task function. I am creating an URL that I am importing into my PHP code.
Is there a way to specify the query parameter and the pagination from the request?
Ex: tps://api.apify.com/v2/datasets/dzMViUqPImDpkxvCy/items?token=***&query=pasta&pagination=5
coordinated_thundertube
2 years ago
Sorted
$payload = json_encode( array( "query"=> 'pasta', 'limit' => 5, 'facets' => false ) );curl_setopt($ch, CURLOPT_URL,"https://api.apify.com/v2/acts/jupri~asda-scraper/run-sync-get-dataset-items?token=[your_token]");curl_setopt($ch, CURLOPT_POST, 1);curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);$server_output = curl_exec($ch);$jsonArrayResponse = json_decode($server_output);var_dump($jsonArrayResponse);

2 years ago
Hi Alex. parameter pagination
doesn't exist. You should use limit