1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "documents": [
12 "# Project Status Report\n\n**Project:** Website Redesign\n**Date:** 2026-07-26\n**Status:** On track\n\n## Summary\n\nThe redesign is progressing well. All *core* pages are complete, and the team is now focused on **performance optimization**.\n\n## Milestones\n\n1. Wireframes approved\n2. Homepage rebuilt\n3. Performance audit (in progress)\n4. Launch (pending)\n\n## Open Issues\n\n- Mobile navigation needs a fix on Safari\n- Legal review of footer copy still pending\n\n## Budget\n\n| Category | Budgeted | Spent |\n|---|---|---|\n| Design | $8,000 | $7,200 |\n| Development | $15,000 | $9,500 |\n| QA | $4,000 | $1,000 |\n\nSee the [full project brief](https://example.com/brief) for details.\n"
13 ]
14};
15
16
17const run = await client.actor("raional/markdown-to-pdf-converter").call(input);
18
19
20console.log('Results from dataset');
21console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
22const { items } = await client.dataset(run.defaultDatasetId).listItems();
23items.forEach((item) => {
24 console.dir(item);
25});
26
27