1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "inline",
10 "currentSnapshot": {
11 "format": "records",
12 "records": [
13 {
14 "id": 101,
15 "full_name": "acme/payments",
16 "private": False,
17 "archived": False,
18 "fork": False,
19 "default_branch": "main",
20 "has_issues": True,
21 "license": { "spdx_id": "MIT" },
22 "latest_release_at": "2026-09-01T10:00:00Z",
23 "updated_at": "2026-09-20T12:00:00Z",
24 },
25 {
26 "id": 202,
27 "full_name": "acme/legacy-api",
28 "private": True,
29 "archived": True,
30 "fork": False,
31 "default_branch": "main",
32 "has_issues": False,
33 "license": None,
34 "latest_release_at": None,
35 "updated_at": "2025-01-10T09:00:00Z",
36 },
37 ],
38 },
39 "priorSnapshot": {
40 "format": "records",
41 "records": [{
42 "id": 101,
43 "full_name": "acme/payments",
44 "private": False,
45 "archived": False,
46 "fork": False,
47 "default_branch": "master",
48 "has_issues": True,
49 "license": { "spdx_id": "MIT" },
50 "latest_release_at": "2026-08-01T10:00:00Z",
51 "updated_at": "2026-08-15T12:00:00Z",
52 }],
53 },
54 "asOf": "2026-09-24T12:00:00Z",
55}
56
57
58run = client.actor("first_watch/github-repository-metadata-export").call(run_input=run_input)
59
60
61print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
62for item in client.dataset(run.default_dataset_id).iterate_items():
63 print(item)
64
65