1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchQueries": ["coffee shop"],
10 "matchPlaces": [
11 "The Miners Coffee, Železná 14, Praha",
12 {
13 "name": "La Pecora Bianca",
14 "address": "20 W 40th St",
15 "city": "New York",
16 "id": "crm-42",
17 },
18 ],
19 "centerLat": 50.0875,
20 "centerLng": 14.4213,
21 "radiusKm": 1,
22 "maxPlaces": 50,
23 "proxyConfiguration": {
24 "useApifyProxy": True,
25 "apifyProxyGroups": ["RESIDENTIAL"],
26 },
27}
28
29
30run = client.actor("datarelay/google-maps-api").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37