1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "site": {
12 "origin": "https://example.com",
13 "name": "Example Studio"
14 },
15 "pages": [
16 {
17 "id": "home",
18 "path": "/",
19 "title": "Example Studio — Design and development",
20 "description": "Example Studio designs and develops websites.",
21 "language": "en",
22 "indexable": true
23 },
24 {
25 "id": "guide",
26 "path": "/guides/launch",
27 "title": "Site Launch Checklist",
28 "description": "A practical checklist for launching a website.",
29 "language": "en",
30 "indexable": true,
31 "lastModified": "2026-10-01"
32 },
33 {
34 "id": "alias",
35 "path": "/old-guide",
36 "title": "Site Launch Checklist",
37 "description": "An older address for the site launch checklist.",
38 "language": "en",
39 "indexable": true,
40 "canonicalPath": "/guides/launch"
41 },
42 {
43 "id": "thankyou",
44 "path": "/thank-you",
45 "title": "Thank you",
46 "description": "Confirmation that a requested action was received.",
47 "language": "en",
48 "indexable": false
49 }
50 ]
51};
52
53
54const run = await client.actor("bread-kim/seo-geo-launch-config-pack").call(input);
55
56
57console.log('Results from dataset');
58console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
59const { items } = await client.dataset(run.defaultDatasetId).listItems();
60items.forEach((item) => {
61 console.dir(item);
62});
63
64