🌱 Vegan Places Finder avatar
🌱 Vegan Places Finder

Deprecated

Pricing

Pay per usage

Go to Store
🌱 Vegan Places Finder

🌱 Vegan Places Finder

Deprecated

Developed by

Natasha Lekh

Natasha Lekh

Maintained by Apify

🌱 This no-code extraction tool will find all vegan restaurants on Google Maps and extract their details. Just enter the country and city of your search, e.g. Chicago, USA, and hit Start. Easy scraping of map data from the web for beginners.

0.0 (0)

Pricing

Pay per usage

6

Total users

91

Monthly users

1

Runs succeeded

95%

Last modified

a month ago

UZ

How to use with html and js

Closed

user-ZPSCZzPyw6nbSxRkp opened this issue
2 years ago

Hi! I would love to try your api, but im using simple html css and js for my website, how can i fetch data from this api using just js?

lukaskrivka avatar

Hi Natasha,

Yes, you can use this API with our JS client or API. See the API tab on the top right with example

import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with API token const client = new ApifyClient({ token: '<YOUR_API_TOKEN>', });

// Prepare Actor input const input = { "countryCode": "us", "city": "Pittsburg", "maxCrawledPlacesPerSearch": 10 };

(async () => { // Run the Actor and wait for it to finish const run = await client.actor("mPSyG35Lffj5ybtgz/hh5GL7s6JL3wgmn1G").call(input);

// Fetch and print actor results from the run's dataset (if any)
console.log('Results from dataset');
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});

})();