$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "places": [
< {
< "title": "Sample Bakery (demo)",
< "subTitle": null,
< "description": "A fictional demo bakery used to seed sample input for this Actor.",
< "ownerDescription": null,
< "price": "$$",
< "categoryName": "Bakery",
< "categories": [
< "Bakery",
< "Cafe"
< ],
< "address": "1 Demo Street, Sample City, Sample Prefecture, Japan",
< "neighborhood": "Sample District",
< "street": "1 Demo Street",
< "city": "Sample City",
< "postalCode": "100-0001",
< "state": "Sample Prefecture",
< "countryCode": "JP",
< "website": "https://example.com",
< "phone": "+81 3-1234-5678",
< "phoneUnformatted": "+81312345678",
< "claimThisBusiness": false,
< "location": {
< "lat": 35.681236,
< "lng": 139.767125
< },
< "menu": null,
< "totalScore": 4.7,
< "permanentlyClosed": false,
< "temporarilyClosed": false,
< "placeId": "DEMO_PLACE_ID_001",
< "fid": "demo:001",
< "cid": "1000000000000000001",
< "reviewsCount": 120,
< "imagesCount": 25,
< "openingHours": [
< {
< "day": "Monday",
< "hours": "8 AM to 6 PM"
< },
< {
< "day": "Tuesday",
< "hours": "8 AM to 6 PM"
< }
< ],
< "url": "https://www.google.com/maps/search/?api=1&query=Sample%20Bakery%20demo&query_place_id=DEMO_PLACE_ID_001",
< "searchString": "bakery",
< "language": "en",
< "rank": 1,
< "isAdvertisement": false
< },
< {
< "title": "Sample Nail Salon (demo)",
< "subTitle": null,
< "description": null,
< "ownerDescription": null,
< "price": null,
< "categoryName": "Nail salon",
< "categories": [
< "Nail salon"
< ],
< "address": "2 Demo Street, Sample City, Sample Prefecture, Japan",
< "neighborhood": "Sample District",
< "street": "2 Demo Street",
< "city": "Sample City",
< "postalCode": "100-0002",
< "state": "Sample Prefecture",
< "countryCode": "JP",
< "website": null,
< "phone": "",
< "phoneUnformatted": "",
< "claimThisBusiness": true,
< "location": {
< "lat": 35.6813,
< "lng": 139.7672
< },
< "menu": null,
< "totalScore": 4.2,
< "permanentlyClosed": false,
< "temporarilyClosed": false,
< "placeId": "DEMO_PLACE_ID_002",
< "fid": "demo:002",
< "cid": "1000000000000000002",
< "reviewsCount": 3,
< "imagesCount": 1,
< "openingHours": [],
< "url": "https://www.google.com/maps/search/?api=1&query=Sample%20Nail%20Salon%20demo&query_place_id=DEMO_PLACE_ID_002",
< "searchString": "nail salon",
< "language": "en",
< "rank": 2,
< "isAdvertisement": false
< },
< {
< "title": "Sample Yoga Studio (demo)",
< "subTitle": null,
< "description": "A fictional demo studio used to test unreachable-website handling.",
< "ownerDescription": null,
< "price": null,
< "categoryName": "Yoga studio",
< "categories": [
< "Yoga studio",
< "Fitness center"
< ],
< "address": "3 Demo Street, Sample City, Sample Prefecture, Japan",
< "neighborhood": "Sample District",
< "street": "3 Demo Street",
< "city": "Sample City",
< "postalCode": "100-0003",
< "state": "Sample Prefecture",
< "countryCode": "JP",
< "website": "https://no-such-site.invalid",
< "phone": "+81 3-9876-5432",
< "phoneUnformatted": "+81398765432",
< "claimThisBusiness": false,
< "location": {
< "lat": 35.6814,
< "lng": 139.7673
< },
< "menu": null,
< "totalScore": 4.5,
< "permanentlyClosed": false,
< "temporarilyClosed": false,
< "placeId": "DEMO_PLACE_ID_003",
< "fid": "demo:003",
< "cid": "1000000000000000003",
< "reviewsCount": 58,
< "imagesCount": 10,
< "openingHours": [
< {
< "day": "Monday",
< "hours": "7 AM to 9 PM"
< }
< ],
< "url": "https://www.google.com/maps/search/?api=1&query=Sample%20Yoga%20Studio%20demo&query_place_id=DEMO_PLACE_ID_003",
< "searchString": "yoga studio",
< "language": "en",
< "rank": 3,
< "isAdvertisement": false
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/reverenced_garnet~apify-gmaps-nap-checker/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'