1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "assessments": [{
9 "actorRef": {
10 "actorId": "example-actor-id",
11 "slug": "page-metadata-extractor",
12 "name": "Page Metadata Extractor",
13 },
14 "correlationId": "example-1",
15 "manifest": {
16 "name": "page-metadata-extractor",
17 "title": "Page Metadata Extractor",
18 "description": "Turn public webpage URLs into structured metadata records.",
19 "version": "0.1",
20 },
21 "inputSchema": {
22 "type": "object",
23 "properties": { "urls": {
24 "type": "array",
25 "items": { "type": "string" },
26 } },
27 "required": ["urls"],
28 "additionalProperties": False,
29 },
30 "exampleInput": { "urls": ["https://example.com"] },
31 "pricing": {
32 "pricingModel": "PAY_PER_EVENT",
33 "events": { "page-processed": { "priceUsd": 0.001 } },
34 },
35 }] }
36
37
38run = client.actor("skilled_glee/actor-quality-guard").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45