1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "listings": [
10 {
11 "listingId": "demo-1",
12 "listingUrl": "https://example.com/listing/1",
13 "title": "Piso 3 hab Madrid",
14 "description": "Piso en herencia, urge vender, negociable, a reformar.",
15 "price": 189000,
16 "currency": "EUR",
17 "publishedAt": "2026-05-01T10:00:00Z",
18 },
19 {
20 "listingId": "demo-2",
21 "listingUrl": "https://example.com/listing/2",
22 "title": "Flat near metro",
23 "description": "Charming flat near metro, recently renovated, move-in ready.",
24 "price": 320000,
25 "currency": "EUR",
26 "publishedAt": "2026-09-20T10:00:00Z",
27 },
28 {
29 "listingId": "demo-3",
30 "listingUrl": "https://example.com/listing/3",
31 "title": "Estate sale home",
32 "description": "Beautiful home sold as-is, estate sale, cash only preferred.",
33 "price": 275000,
34 "currency": "USD",
35 "previousPrice": 310000,
36 "publishedAt": "2026-01-15T10:00:00Z",
37 },
38 ],
39 "asOfDate": "2026-10-04",
40}
41
42
43run = client.actor("noahadler/listing-motivation-enricher").call(run_input=run_input)
44
45
46print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50