1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "goalDescription": "Diesel BMW estates priced clearly under market, accident-free, under 150,000 km — cars I can resell within a month.",
10 "maxDiscoveryChargeUsd": 0.5,
11 "sourceMode": "list",
12 "itemsList": [
13 {
14 "id": "389104001",
15 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104001",
16 "shortTitle": "BMW 320d",
17 "subTitle": "Touring Sport Line Navi LED",
18 "make": "BMW",
19 "model": "320d",
20 "price": {
21 "value": 19490,
22 "currency": "EUR",
23 "negotiable": False,
24 },
25 "attributes": [
26 {
27 "tag": "mileage",
28 "label": "Mileage",
29 "value": "96,000 km",
30 },
31 {
32 "tag": "firstRegistration",
33 "label": "First registration",
34 "value": "03/2018",
35 },
36 {
37 "tag": "power",
38 "label": "Power",
39 "value": "140 kW (190 hp)",
40 },
41 {
42 "tag": "fuel",
43 "label": "Fuel",
44 "value": "Diesel",
45 },
46 {
47 "tag": "numberOfPreviousOwners",
48 "label": "Number of vehicle owners",
49 "value": "2",
50 },
51 {
52 "tag": "hu",
53 "label": "HU",
54 "value": "03/2027",
55 },
56 {
57 "tag": "category",
58 "label": "Category",
59 "value": "Estate Car",
60 },
61 {
62 "tag": "color",
63 "label": "Colour",
64 "value": "Black",
65 },
66 ],
67 "accidentFree": True,
68 "currentlyDamaged": False,
69 "roadworthy": True,
70 "isNew": False,
71 "contact": {
72 "type": "Dealer",
73 "name": "Autohaus Brandl GmbH",
74 "address2": "80331 München",
75 "phones": ["+49 89 5550 101"],
76 "rating": 4.6,
77 },
78 "location": {
79 "city": "80331 München",
80 "postalCode": "80331",
81 },
82 "htmlDescription": "<p>Scheckheftgepflegt, Navi Professional, LED, Anhängerkupplung. Finanzierung möglich.</p>",
83 "priceRating": "FAIR_PRICE",
84 },
85 {
86 "id": "389104002",
87 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104002",
88 "shortTitle": "BMW 320d",
89 "subTitle": "Touring Advantage Aut. Klimaaut.",
90 "make": "BMW",
91 "model": "320d",
92 "price": {
93 "value": 18900,
94 "currency": "EUR",
95 "negotiable": False,
96 },
97 "attributes": [
98 {
99 "tag": "mileage",
100 "label": "Mileage",
101 "value": "112,000 km",
102 },
103 {
104 "tag": "firstRegistration",
105 "label": "First registration",
106 "value": "05/2018",
107 },
108 {
109 "tag": "power",
110 "label": "Power",
111 "value": "140 kW (190 hp)",
112 },
113 {
114 "tag": "fuel",
115 "label": "Fuel",
116 "value": "Diesel",
117 },
118 {
119 "tag": "numberOfPreviousOwners",
120 "label": "Number of vehicle owners",
121 "value": "2",
122 },
123 {
124 "tag": "hu",
125 "label": "HU",
126 "value": "03/2027",
127 },
128 {
129 "tag": "category",
130 "label": "Category",
131 "value": "Estate Car",
132 },
133 {
134 "tag": "color",
135 "label": "Colour",
136 "value": "Black",
137 },
138 ],
139 "accidentFree": True,
140 "currentlyDamaged": False,
141 "roadworthy": True,
142 "isNew": False,
143 "contact": {
144 "type": "Dealer",
145 "name": "Autohaus Brandl GmbH",
146 "address2": "80331 München",
147 "phones": ["+49 89 5550 101"],
148 "rating": 4.6,
149 },
150 "location": {
151 "city": "80331 München",
152 "postalCode": "80331",
153 },
154 "htmlDescription": "<p>Automatik, Sitzheizung, PDC. HU/AU neu. Inzahlungnahme möglich.</p>",
155 "priceRating": "FAIR_PRICE",
156 },
157 {
158 "id": "389104003",
159 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104003",
160 "shortTitle": "BMW 320d",
161 "subTitle": "Touring Luxury Line HUD",
162 "make": "BMW",
163 "model": "320d",
164 "price": {
165 "value": 19950,
166 "currency": "EUR",
167 "negotiable": False,
168 },
169 "attributes": [
170 {
171 "tag": "mileage",
172 "label": "Mileage",
173 "value": "101,000 km",
174 },
175 {
176 "tag": "firstRegistration",
177 "label": "First registration",
178 "value": "02/2018",
179 },
180 {
181 "tag": "power",
182 "label": "Power",
183 "value": "140 kW (190 hp)",
184 },
185 {
186 "tag": "fuel",
187 "label": "Fuel",
188 "value": "Diesel",
189 },
190 {
191 "tag": "numberOfPreviousOwners",
192 "label": "Number of vehicle owners",
193 "value": "2",
194 },
195 {
196 "tag": "hu",
197 "label": "HU",
198 "value": "03/2027",
199 },
200 {
201 "tag": "category",
202 "label": "Category",
203 "value": "Estate Car",
204 },
205 {
206 "tag": "color",
207 "label": "Colour",
208 "value": "Black",
209 },
210 ],
211 "accidentFree": True,
212 "currentlyDamaged": False,
213 "roadworthy": True,
214 "isNew": False,
215 "contact": {
216 "type": "Dealer",
217 "name": "Kraft Automobile",
218 "address2": "50667 Köln",
219 "phones": ["+49 221 5550 202"],
220 "rating": 4.6,
221 },
222 "location": {
223 "city": "50667 Köln",
224 "postalCode": "80331",
225 },
226 "htmlDescription": "<p>Head-up-Display, Leder, Harman Kardon. Unfallfrei, scheckheftgepflegt.</p>",
227 "priceRating": "FAIR_PRICE",
228 },
229 {
230 "id": "389104004",
231 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104004",
232 "shortTitle": "BMW 320d",
233 "subTitle": "Touring M Sport Panorama",
234 "make": "BMW",
235 "model": "320d",
236 "price": {
237 "value": 20490,
238 "currency": "EUR",
239 "negotiable": False,
240 },
241 "attributes": [
242 {
243 "tag": "mileage",
244 "label": "Mileage",
245 "value": "88,000 km",
246 },
247 {
248 "tag": "firstRegistration",
249 "label": "First registration",
250 "value": "09/2018",
251 },
252 {
253 "tag": "power",
254 "label": "Power",
255 "value": "140 kW (190 hp)",
256 },
257 {
258 "tag": "fuel",
259 "label": "Fuel",
260 "value": "Diesel",
261 },
262 {
263 "tag": "numberOfPreviousOwners",
264 "label": "Number of vehicle owners",
265 "value": "2",
266 },
267 {
268 "tag": "hu",
269 "label": "HU",
270 "value": "03/2027",
271 },
272 {
273 "tag": "category",
274 "label": "Category",
275 "value": "Estate Car",
276 },
277 {
278 "tag": "color",
279 "label": "Colour",
280 "value": "Black",
281 },
282 ],
283 "accidentFree": True,
284 "currentlyDamaged": False,
285 "roadworthy": True,
286 "isNew": False,
287 "contact": {
288 "type": "Dealer",
289 "name": "Kraft Automobile",
290 "address2": "50667 Köln",
291 "phones": ["+49 221 5550 202"],
292 "rating": 4.6,
293 },
294 "location": {
295 "city": "50667 Köln",
296 "postalCode": "80331",
297 },
298 "htmlDescription": "<p>M Sportpaket, Panoramadach, 19 Zoll. Garantie 12 Monate.</p>",
299 "priceRating": "INCREASED_PRICE",
300 },
301 {
302 "id": "389104005",
303 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104005",
304 "shortTitle": "BMW 320d",
305 "subTitle": "Touring Aut. AHK Navi",
306 "make": "BMW",
307 "model": "320d",
308 "price": {
309 "value": 18490,
310 "currency": "EUR",
311 "negotiable": False,
312 },
313 "attributes": [
314 {
315 "tag": "mileage",
316 "label": "Mileage",
317 "value": "118,000 km",
318 },
319 {
320 "tag": "firstRegistration",
321 "label": "First registration",
322 "value": "01/2018",
323 },
324 {
325 "tag": "power",
326 "label": "Power",
327 "value": "140 kW (190 hp)",
328 },
329 {
330 "tag": "fuel",
331 "label": "Fuel",
332 "value": "Diesel",
333 },
334 {
335 "tag": "numberOfPreviousOwners",
336 "label": "Number of vehicle owners",
337 "value": "2",
338 },
339 {
340 "tag": "hu",
341 "label": "HU",
342 "value": "03/2027",
343 },
344 {
345 "tag": "category",
346 "label": "Category",
347 "value": "Estate Car",
348 },
349 {
350 "tag": "color",
351 "label": "Colour",
352 "value": "Black",
353 },
354 ],
355 "accidentFree": True,
356 "currentlyDamaged": False,
357 "roadworthy": True,
358 "isNew": False,
359 "contact": {
360 "type": "Dealer",
361 "name": "Autohaus Meyer",
362 "address2": "30159 Hannover",
363 "phones": ["+49 511 5550 303"],
364 "rating": 4.6,
365 },
366 "location": {
367 "city": "30159 Hannover",
368 "postalCode": "80331",
369 },
370 "htmlDescription": "<p>Gepflegter Dienstwagen, Navi, Tempomat, AHK. Garantie möglich.</p>",
371 "priceRating": "FAIR_PRICE",
372 },
373 {
374 "id": "389104006",
375 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104006",
376 "shortTitle": "BMW 320d",
377 "subTitle": "Touring Advantage LED Kamera",
378 "make": "BMW",
379 "model": "320d",
380 "price": {
381 "value": 19250,
382 "currency": "EUR",
383 "negotiable": False,
384 },
385 "attributes": [
386 {
387 "tag": "mileage",
388 "label": "Mileage",
389 "value": "104,000 km",
390 },
391 {
392 "tag": "firstRegistration",
393 "label": "First registration",
394 "value": "04/2018",
395 },
396 {
397 "tag": "power",
398 "label": "Power",
399 "value": "140 kW (190 hp)",
400 },
401 {
402 "tag": "fuel",
403 "label": "Fuel",
404 "value": "Diesel",
405 },
406 {
407 "tag": "numberOfPreviousOwners",
408 "label": "Number of vehicle owners",
409 "value": "2",
410 },
411 {
412 "tag": "hu",
413 "label": "HU",
414 "value": "03/2027",
415 },
416 {
417 "tag": "category",
418 "label": "Category",
419 "value": "Estate Car",
420 },
421 {
422 "tag": "color",
423 "label": "Colour",
424 "value": "Black",
425 },
426 ],
427 "accidentFree": True,
428 "currentlyDamaged": False,
429 "roadworthy": True,
430 "isNew": False,
431 "contact": {
432 "type": "Dealer",
433 "name": "Autohaus Meyer",
434 "address2": "30159 Hannover",
435 "phones": ["+49 511 5550 303"],
436 "rating": 4.6,
437 },
438 "location": {
439 "city": "30159 Hannover",
440 "postalCode": "80331",
441 },
442 "htmlDescription": "<p>Rückfahrkamera, LED, Sitzheizung vorn. Nichtraucherfahrzeug.</p>",
443 "priceRating": "FAIR_PRICE",
444 },
445 {
446 "id": "389104007",
447 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104007",
448 "shortTitle": "BMW 320d",
449 "subTitle": "Touring Aut. Navi Xenon, Privatverkauf",
450 "make": "BMW",
451 "model": "320d",
452 "price": {
453 "value": 14990,
454 "currency": "EUR",
455 "negotiable": True,
456 },
457 "attributes": [
458 {
459 "tag": "mileage",
460 "label": "Mileage",
461 "value": "99,500 km",
462 },
463 {
464 "tag": "firstRegistration",
465 "label": "First registration",
466 "value": "03/2018",
467 },
468 {
469 "tag": "power",
470 "label": "Power",
471 "value": "140 kW (190 hp)",
472 },
473 {
474 "tag": "fuel",
475 "label": "Fuel",
476 "value": "Diesel",
477 },
478 {
479 "tag": "numberOfPreviousOwners",
480 "label": "Number of vehicle owners",
481 "value": "1",
482 },
483 {
484 "tag": "hu",
485 "label": "HU",
486 "value": "03/2027",
487 },
488 {
489 "tag": "category",
490 "label": "Category",
491 "value": "Estate Car",
492 },
493 {
494 "tag": "color",
495 "label": "Colour",
496 "value": "Black",
497 },
498 ],
499 "accidentFree": True,
500 "currentlyDamaged": False,
501 "roadworthy": True,
502 "isNew": False,
503 "contact": {
504 "type": "Private",
505 "name": "Thomas K.",
506 "address2": "85748 Garching",
507 "phones": ["+49 170 5550 404"],
508 "rating": None,
509 },
510 "location": {
511 "city": "85748 Garching",
512 "postalCode": "80331",
513 },
514 "htmlDescription": "<p>Scheckheftgepflegt, 1. Hand, HU neu, neue Bremsen. Privatverkauf, keine Garantie oder Rücknahme. Besichtigung nach Termin.</p>",
515 "priceRating": "VERY_GOOD_PRICE",
516 },
517 {
518 "id": "389104008",
519 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104008",
520 "shortTitle": "BMW 320d",
521 "subTitle": "Touring Sport Line Aut.",
522 "make": "BMW",
523 "model": "320d",
524 "price": {
525 "value": 16490,
526 "currency": "EUR",
527 "negotiable": False,
528 },
529 "attributes": [
530 {
531 "tag": "mileage",
532 "label": "Mileage",
533 "value": "107,000 km",
534 },
535 {
536 "tag": "firstRegistration",
537 "label": "First registration",
538 "value": "06/2018",
539 },
540 {
541 "tag": "power",
542 "label": "Power",
543 "value": "140 kW (190 hp)",
544 },
545 {
546 "tag": "fuel",
547 "label": "Fuel",
548 "value": "Diesel",
549 },
550 {
551 "tag": "numberOfPreviousOwners",
552 "label": "Number of vehicle owners",
553 "value": "2",
554 },
555 {
556 "tag": "hu",
557 "label": "HU",
558 "value": "03/2027",
559 },
560 {
561 "tag": "category",
562 "label": "Category",
563 "value": "Estate Car",
564 },
565 {
566 "tag": "color",
567 "label": "Colour",
568 "value": "Black",
569 },
570 ],
571 "accidentFree": True,
572 "currentlyDamaged": False,
573 "roadworthy": True,
574 "isNew": False,
575 "contact": {
576 "type": "Dealer",
577 "name": "Autohaus Schulte",
578 "address2": "44137 Dortmund",
579 "phones": ["+49 231 5550 505"],
580 "rating": 4.6,
581 },
582 "location": {
583 "city": "44137 Dortmund",
584 "postalCode": "80331",
585 },
586 "htmlDescription": "<p>Hinweis: Das Fahrzeug wurde als Mietwagen genutzt. Navi, Klimaautomatik, Tempomat.</p>",
587 "priceRating": "GOOD_PRICE",
588 "priceDropFromLastSeen": 1200,
589 },
590 {
591 "id": "389104009",
592 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104009",
593 "shortTitle": "BMW 320d",
594 "subTitle": "Touring Aut. Export Unfallfahrzeug",
595 "make": "BMW",
596 "model": "320d",
597 "price": {
598 "value": 13800,
599 "currency": "EUR",
600 "negotiable": False,
601 },
602 "attributes": [
603 {
604 "tag": "mileage",
605 "label": "Mileage",
606 "value": "108,000 km",
607 },
608 {
609 "tag": "firstRegistration",
610 "label": "First registration",
611 "value": "05/2018",
612 },
613 {
614 "tag": "power",
615 "label": "Power",
616 "value": "140 kW (190 hp)",
617 },
618 {
619 "tag": "fuel",
620 "label": "Fuel",
621 "value": "Diesel",
622 },
623 {
624 "tag": "numberOfPreviousOwners",
625 "label": "Number of vehicle owners",
626 "value": "2",
627 },
628 {
629 "tag": "hu",
630 "label": "HU",
631 "value": "abgelaufen",
632 },
633 {
634 "tag": "category",
635 "label": "Category",
636 "value": "Estate Car",
637 },
638 {
639 "tag": "color",
640 "label": "Colour",
641 "value": "Black",
642 },
643 ],
644 "accidentFree": False,
645 "currentlyDamaged": True,
646 "roadworthy": False,
647 "isNew": False,
648 "contact": {
649 "type": "Dealer",
650 "name": "Autohandel Yildiz",
651 "address2": "45127 Essen",
652 "phones": ["+49 201 5550 606"],
653 "rating": 4.6,
654 },
655 "location": {
656 "city": "45127 Essen",
657 "postalCode": "80331",
658 },
659 "htmlDescription": "<p>Unfallschaden hinten rechts, nicht repariert. Nur Export oder Händler. Bastlerfahrzeug, Motor läuft unruhig.</p>",
660 "priceRating": "VERY_GOOD_PRICE",
661 },
662 {
663 "id": "389104010",
664 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104010",
665 "shortTitle": "Audi A4",
666 "subTitle": "Avant 35 TDI S line Matrix-LED",
667 "make": "Audi",
668 "model": "A4",
669 "price": {
670 "value": 28900,
671 "currency": "EUR",
672 "negotiable": False,
673 "net": 24286,
674 },
675 "attributes": [
676 {
677 "tag": "mileage",
678 "label": "Mileage",
679 "value": "45,000 km",
680 },
681 {
682 "tag": "firstRegistration",
683 "label": "First registration",
684 "value": "07/2020",
685 },
686 {
687 "tag": "power",
688 "label": "Power",
689 "value": "140 kW (190 hp)",
690 },
691 {
692 "tag": "fuel",
693 "label": "Fuel",
694 "value": "Diesel",
695 },
696 {
697 "tag": "numberOfPreviousOwners",
698 "label": "Number of vehicle owners",
699 "value": "1",
700 },
701 {
702 "tag": "hu",
703 "label": "HU",
704 "value": "03/2027",
705 },
706 {
707 "tag": "category",
708 "label": "Category",
709 "value": "Estate Car",
710 },
711 {
712 "tag": "color",
713 "label": "Colour",
714 "value": "Grey",
715 },
716 ],
717 "accidentFree": True,
718 "currentlyDamaged": False,
719 "roadworthy": True,
720 "isNew": False,
721 "contact": {
722 "type": "Dealer",
723 "name": "Audi Zentrum Süd",
724 "address2": "70173 Stuttgart",
725 "phones": ["+49 711 5550 707"],
726 "rating": 4.6,
727 },
728 "location": {
729 "city": "70173 Stuttgart",
730 "postalCode": "80331",
731 },
732 "htmlDescription": "<p>Sehr gepflegt, Matrix-LED, virtuelles Cockpit, Servicepaket bis 2027.</p>",
733 "priceRating": "GOOD_PRICE",
734 "contactEmail": "verkauf@audi-zentrum-sued.example",
735 "contactWebsite": "https://www.audi-zentrum-sued.example",
736 },
737 {
738 "id": "389104011",
739 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104011",
740 "shortTitle": "VW Golf",
741 "subTitle": "VIII 2.0 TDI Life DSG",
742 "make": "VW",
743 "model": "Golf",
744 "price": {
745 "value": 21900,
746 "currency": "EUR",
747 "negotiable": False,
748 },
749 "attributes": [
750 {
751 "tag": "mileage",
752 "label": "Mileage",
753 "value": "38,000 km",
754 },
755 {
756 "tag": "firstRegistration",
757 "label": "First registration",
758 "value": "10/2021",
759 },
760 {
761 "tag": "power",
762 "label": "Power",
763 "value": "110 kW (150 hp)",
764 },
765 {
766 "tag": "fuel",
767 "label": "Fuel",
768 "value": "Diesel",
769 },
770 {
771 "tag": "numberOfPreviousOwners",
772 "label": "Number of vehicle owners",
773 "value": "2",
774 },
775 {
776 "tag": "hu",
777 "label": "HU",
778 "value": "03/2027",
779 },
780 {
781 "tag": "category",
782 "label": "Category",
783 "value": "Small Car",
784 },
785 {
786 "tag": "color",
787 "label": "Colour",
788 "value": "Black",
789 },
790 ],
791 "accidentFree": True,
792 "currentlyDamaged": False,
793 "roadworthy": True,
794 "isNew": False,
795 "contact": {
796 "type": "Dealer",
797 "name": "Autohaus Brandl GmbH",
798 "address2": "80331 München",
799 "phones": ["+49 89 5550 101"],
800 "rating": 4.6,
801 },
802 "location": {
803 "city": "80331 München",
804 "postalCode": "80331",
805 },
806 "htmlDescription": "<p>Garantie bis 2026, Navi, ACC, Spurhalteassistent.</p>",
807 },
808 {
809 "id": "389104012",
810 "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=389104012",
811 "shortTitle": "Skoda Octavia",
812 "subTitle": "Combi 2.0 TDI Style",
813 "make": "Skoda",
814 "model": "Octavia",
815 "price": {
816 "value": 17400,
817 "currency": "EUR",
818 "negotiable": False,
819 },
820 "attributes": [
821 {
822 "tag": "mileage",
823 "label": "Mileage",
824 "value": "91,000 km",
825 },
826 {
827 "tag": "firstRegistration",
828 "label": "First registration",
829 "value": "11/2019",
830 },
831 {
832 "tag": "power",
833 "label": "Power",
834 "value": "110 kW (150 hp)",
835 },
836 {
837 "tag": "fuel",
838 "label": "Fuel",
839 "value": "Diesel",
840 },
841 {
842 "tag": "numberOfPreviousOwners",
843 "label": "Number of vehicle owners",
844 "value": "2",
845 },
846 {
847 "tag": "hu",
848 "label": "HU",
849 "value": "abgelaufen",
850 },
851 {
852 "tag": "category",
853 "label": "Category",
854 "value": "Estate Car",
855 },
856 {
857 "tag": "color",
858 "label": "Colour",
859 "value": "Black",
860 },
861 ],
862 "accidentFree": True,
863 "currentlyDamaged": False,
864 "roadworthy": True,
865 "isNew": False,
866 "contact": {
867 "type": "Dealer",
868 "name": "Autohaus Meyer",
869 "address2": "30159 Hannover",
870 "phones": ["+49 511 5550 303"],
871 "rating": 4.6,
872 },
873 "location": {
874 "city": "30159 Hannover",
875 "postalCode": "80331",
876 },
877 "htmlDescription": "<p>Fahrzeug ohne HU, Bremsen müssen gemacht werden.</p>",
878 },
879 ],
880}
881
882
883run = client.actor("rich_minds/used-car-deal-finder-ai").call(run_input=run_input)
884
885
886print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
887for item in client.dataset(run.default_dataset_id).iterate_items():
888 print(item)
889
890