1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "responses": [
9 {
10 "status": 200,
11 "data": {
12 "platform": "tiktok",
13 "images": [],
14 "videos": [{ "quality": "synthetic" }],
15 "audios": None,
16 },
17 },
18 { "status": 401 },
19 {
20 "status": 200,
21 "data": {
22 "platform": "instagram",
23 "images": [
24 {},
25 {},
26 ],
27 "videos": [],
28 },
29 },
30 ] }
31
32
33run = client.actor("mrzhangbo/easydown-api-response-inspector").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40