1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "seoIssues": [
10 {
11 "type": "broken_internal_links",
12 "affectedPages": 47,
13 },
14 {
15 "type": "missing_meta_description",
16 "affectedPages": 132,
17 },
18 {
19 "type": "canonical_error",
20 "affectedPages": 12,
21 },
22 {
23 "type": "missing_alt_text",
24 "affectedPages": 300,
25 },
26 {
27 "type": "redirect_loops",
28 "affectedPages": 4,
29 },
30 {
31 "type": "orphan_page",
32 "affectedPages": 7,
33 },
34 ],
35 "analysisMode": "balanced",
36 "groupSimilarIssues": True,
37 "includeRecommendations": True,
38 "siteName": "",
39}
40
41
42run = client.actor("riad_h/seo-fix-priority-engine").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49