1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "ledgerText": """client,site,contract,date,clientType,needs,preferences,tendencies,amount,status,deliveryPath,nextTime,leadTimeHours,askedAndReceived,cautions
10BloomCafe,CrowdWorks,C-101,2026-09-02,Cafe owner running Instagram,3 Instagram posts for the autumn menu,Warm beige tones; no stock-photo look,Replies within hours; friendly,6000,completed,/work/bloomcafe/2026-09,Send two color options first,26,Logo and menu photos (received),
11BloomCafe,CrowdWorks,C-118,2026-10-05,Cafe owner running Instagram,Halloween post and story,Same beige palette; short copy,Quick approval,4000,completed,/work/bloomcafe/2026-10,Keep the copy under 20 words,20,Logo already on file,
12Kito Design,Lancers,L-552,2026-09-15,Design agency (contest style),Spa campaign banner 1080x1080,Strict brief: colors and fonts fixed,Formal; does not announce results,1000,delivered,/work/kito/spa,Follow the brief exactly; no extra options,5,Brief PDF (received),Asked to continue on LINE
13Kito Design,Lancers,L-590,2026-10-20,Design agency (contest style),Winter banner set,Fonts fixed; NG word list,Slow replies,1000,not selected,/work/kito/winter,Check the NG words twice,4,,Invited to a paid course
14SunnyClinic,Coconala,K-77,2026-10-01,Small clinic,A4 flyer for flu shots,Clean white; large type for seniors,Careful; asks many questions,15000,completed,/work/sunny/flyer,Prepare a print-ready PDF and a PNG,48,Opening hours and map (received),
15SunnyClinic,Coconala,K-91,2026-11-02,Small clinic,Website banner for the new opening hours,Same layout as the flyer,Repeat client; trusts us,8000,in progress,/work/sunny/banner,Reuse the flyer colors,,Hours already received,
16""",
17 "client": "BloomCafe",
18 "request": "Christmas Instagram post with the same warm look",
19}
20
21
22run = client.actor("kotaro-project/client-history-brief").call(run_input=run_input)
23
24
25print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
26for item in client.dataset(run.default_dataset_id).iterate_items():
27 print(item)
28
29