1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "analyze_supplied",
10 "market": {
11 "label": "Exampleville, ZZ (fictional)",
12 "countryCode": "US",
13 },
14 "rightsBasis": "otherwise_authorized",
15 "freshnessHorizonDays": 3650,
16 "records": [
17 {
18 "name": "Fictional Brand Alpha",
19 "address": "100 Fictional Foundry Way, Exampleville, ZZ 00000",
20 "sourceLabel": "fictional_operator_export",
21 "sourceRecordId": "alpha-001",
22 "observedAt": "2026-08-01T12:00:00Z",
23 "website": "https://alpha.example.invalid",
24 "category": "delivery restaurant",
25 "operatingObservation": "delivery_only",
26 },
27 {
28 "name": "Fictional Brand Beta",
29 "address": "100 Fictional Foundry Way, Exampleville, ZZ 00000",
30 "sourceLabel": "fictional_licensed_directory",
31 "sourceRecordId": "beta-001",
32 "observedAt": "2026-08-02T12:00:00Z",
33 "website": "https://beta.example.invalid",
34 "category": "restaurant",
35 },
36 {
37 "name": "Fictional Brand Alpha",
38 "address": "100 Fictional Foundry Way, Exampleville, ZZ 00000",
39 "sourceLabel": "fictional_operator_export",
40 "sourceRecordId": "alpha-001",
41 "observedAt": "2026-08-01T12:00:00Z",
42 "website": "https://alpha.example.invalid",
43 "category": "delivery restaurant",
44 "operatingObservation": "delivery_only",
45 },
46 ],
47}
48
49
50run = client.actor("critd/ghost-kitchen-detector").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57