Google Maps Business Scraper avatar
Google Maps Business Scraper

Pricing

$4.00 / 1,000 places

Go to Store
Google Maps Business Scraper

Google Maps Business Scraper

Developed by

Compass

Compass

Maintained by Apify

Extract place data from Google Maps fast. Just paste Google place URL or Google place id and get business data including contact details, prices, categories, opening hours, menus & more. Export scraped data, run the scraper via API, schedule and monitor runs, or integrate with other tools.

4.8 (5)

Pricing

$4.00 / 1,000 places

91

Total users

2.2k

Monthly users

326

Runs succeeded

>99%

Issue response

4.9 days

Last modified

6 hours ago

YN

Empty Response from run-sync API Despite Data Being Fetched on Apify Dashboard

Closed

yearning_nurture opened this issue
2 months ago

I am using the run-sync API endpoint to execute the compass~google-places-api actor. While the actor successfully fetches data (as confirmed on the Apify Dashboard), the API response itself is empty.

The API request successfully returns a 201 Created status, but the data field in the response is completely empty. Below are the details of my request and response:

API Request code: const response = await axios({ method: "post", url: https://api.apify.com/v2/acts/compass~google-places-api/run-sync, headers: { Authorization: Bearer ${apifyApiToken}, "Content-Type": "application/json", }, data: { placeIds: [placeId], waitSecs: 300, waitForFinish: 300, }, });

console.log("Response:", response);

Response: { "status": 201, "statusText": "Created", "headers": { "content-type": "text/plain; charset=utf-8", "content-length": "0" }, "data": "" }

ondrejklinovsky avatar

Hey,

thanks for reaching out. The run-sync endpoint returns the data that are stored in run's KVS under OUTPUT key, which this actor doesn't do. Instead, it stores the results in dataset, so try to use run-sync-get-dataset-items endpoint and you should get the results.