1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "items": [
9 {
10 "success": True,
11 "query_phrase": "star wars",
12 "trademark_wordmark": "star wars",
13 "serial_number": 73149856,
14 "status": "LIVE",
15 "filing_date": "1977-11-25",
16 "registration_date": "1979-10-30",
17 "classes": "25",
18 "__source": {
19 "actor": "dev00/uspto-trademark-api",
20 "actorId": "nhSY7qeLJUsvkXQTH",
21 "runId": "1UQYwy4rLd96omF0V",
22 "datasetId": "bV1vfVZVsUCA3PT1R",
23 "sampleRowIndex": 0,
24 "projection": "Public business-record fields only; observed values unchanged. Added __source is provenance, not upstream payload.",
25 },
26 },
27 {
28 "success": True,
29 "query_phrase": "star wars",
30 "trademark_wordmark": "star wars",
31 "serial_number": 73487823,
32 "status": "LIVE",
33 "filing_date": "1984-06-29",
34 "registration_date": "1985-11-19",
35 "classes": "25",
36 "__source": {
37 "actor": "dev00/uspto-trademark-api",
38 "actorId": "nhSY7qeLJUsvkXQTH",
39 "runId": "1UQYwy4rLd96omF0V",
40 "datasetId": "bV1vfVZVsUCA3PT1R",
41 "sampleRowIndex": 1,
42 "projection": "Public business-record fields only; observed values unchanged. Added __source is provenance, not upstream payload.",
43 },
44 },
45 {
46 "success": True,
47 "query_phrase": "star wars",
48 "trademark_wordmark": "star wars",
49 "serial_number": 75306994,
50 "status": "LIVE",
51 "filing_date": "1997-06-11",
52 "registration_date": "2002-01-29",
53 "classes": "25",
54 "__source": {
55 "actor": "dev00/uspto-trademark-api",
56 "actorId": "nhSY7qeLJUsvkXQTH",
57 "runId": "1UQYwy4rLd96omF0V",
58 "datasetId": "bV1vfVZVsUCA3PT1R",
59 "sampleRowIndex": 2,
60 "projection": "Public business-record fields only; observed values unchanged. Added __source is provenance, not upstream payload.",
61 },
62 },
63 ] }
64
65
66run = client.actor("zinin/trademark-class-overlap-review").call(run_input=run_input)
67
68
69print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
70for item in client.dataset(run.default_dataset_id).iterate_items():
71 print(item)
72
73