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

compass/google-places-api

Developed by

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

87

Monthly users

296

Runs succeeded

97%

Response time

1.8 days

Last modified

an hour ago

YN

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

Closed
yearning_nurture opened this issue
15 days 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.

Pricing

Pricing model

Pay per result 

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.

Price per 1,000 items

$4.00