[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-apify-apify-sdk-integration":3,"mdc-dkwtqw-key":43,"related-org-apify-apify-sdk-integration":2477,"related-repo-apify-apify-sdk-integration":2619},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":32,"repoUrl":33,"updatedAt":34,"license":35,"forks":36,"topics":37,"repo":38,"sourceUrl":41,"mdContent":42},"apify-sdk-integration","integrate Apify SDK into applications","Integrate Apify into an existing JavaScript\u002FTypeScript or Python application using the apify-client package. Use when adding web scraping, automation, or data extraction capabilities to an existing app via the Apify API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"apify","Apify","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fapify.png",[12,14,17,20,23,26,29],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Automation","automation",{"name":18,"slug":19,"type":13},"Web Scraping","web-scraping",{"name":21,"slug":22,"type":13},"TypeScript","typescript",{"name":24,"slug":25,"type":13},"JavaScript","javascript",{"name":27,"slug":28,"type":13},"Python","python",{"name":30,"slug":31,"type":13},"SDK","sdk",2231,"https:\u002F\u002Fgithub.com\u002Fapify\u002Fagent-skills","2026-05-16T05:56:15.416714",null,244,[],{"repoUrl":33,"stars":32,"forks":36,"topics":39,"description":40},[],"Collection of Apify Agent Skills","https:\u002F\u002Fgithub.com\u002Fapify\u002Fagent-skills\u002Ftree\u002FHEAD\u002Fskills\u002Fapify-sdk-integration","---\nname: apify-sdk-integration\ndescription: Integrate Apify into an existing JavaScript\u002FTypeScript or Python application using the apify-client package. Use when adding web scraping, automation, or data extraction capabilities to an existing app via the Apify API.\n---\n\n# Apify SDK Integration\n\nAdd Apify Actor execution to an existing application. This skill covers the `apify-client` package for JS\u002FTS and Python, plus the REST API for other languages.\n\n## When to Use This Skill\n\n- Adding web scraping or automation to an existing app\n- Calling Apify Actors programmatically from application code\n- Building a product that uses Apify as a backend service\n- Integrating Actor results into a data pipeline\n\n## Critical: Package Naming\n\n> **`apify-client`** is the API client for **calling** Actors from your app.\n> **`apify`** is the SDK for **building** Actors (wrong package for this use case).\n>\n> Always install `apify-client`. Never install `apify` for integration work.\n\n## Prerequisites\n\nThe user needs an `APIFY_TOKEN`. Direct them to **Console > Settings > Integrations** at https:\u002F\u002Fconsole.apify.com\u002Fsettings\u002Fintegrations to create one. If they don't have an account: https:\u002F\u002Fconsole.apify.com\u002Fsign-up (free, no credit card).\n\nStore the token securely — environment variable or secrets manager, never hardcoded.\n\n## Finding the Right Actor\n\nBefore writing integration code, find the Actor that fits the user's needs. Use the MCP tools if available:\n- `search-actors` — search the Apify Store by keyword\n- `fetch-actor-details` — get the Actor's input schema, output format, and pricing\n\nAlternatively, browse https:\u002F\u002Fapify.com\u002Fstore. Append `.md` to any Actor's Store URL to get its docs in markdown.\n\n## JavaScript \u002F TypeScript\n\n### Install\n\n```bash\nnpm install apify-client\n```\n\n### Synchronous Execution (wait for results)\n\n```typescript\nimport { ApifyClient } from 'apify-client';\n\nconst client = new ApifyClient({ token: process.env.APIFY_TOKEN });\n\nconst run = await client.actor('apify\u002Fweb-scraper').call({\n    startUrls: [{ url: 'https:\u002F\u002Fexample.com' }],\n    maxPagesPerCrawl: 10,\n});\n\nconst { items } = await client.dataset(run.defaultDatasetId).listItems();\n```\n\n`.call()` blocks until the Actor finishes. Use for short-running Actors (under a few minutes).\n\n### Asynchronous Execution (start and poll\u002Fretrieve later)\n\n```typescript\nconst run = await client.actor('apify\u002Fweb-scraper').start({\n    startUrls: [{ url: 'https:\u002F\u002Fexample.com' }],\n});\n\n\u002F\u002F Poll for completion\nconst finishedRun = await client.run(run.id).waitForFinish();\n\n\u002F\u002F Retrieve results\nconst { items } = await client.dataset(finishedRun.defaultDatasetId).listItems();\n```\n\nUse `.start()` + `.waitForFinish()` for long-running Actors or when you need the run ID immediately.\n\n### Retrieving Results\n\n```typescript\n\u002F\u002F Dataset items (structured data from pushData)\nconst { items } = await client.dataset(run.defaultDatasetId).listItems({\n    limit: 100,\n    offset: 0,\n});\n\n\u002F\u002F Key-value store (files, screenshots, etc.)\nconst record = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');\n```\n\n### Error Handling\n\n```typescript\ntry {\n    const run = await client.actor('apify\u002Fweb-scraper').call(input);\n\n    if (run.status !== 'SUCCEEDED') {\n        const log = await client.log(run.id).get();\n        throw new Error(`Actor failed with status ${run.status}: ${log}`);\n    }\n\n    const { items } = await client.dataset(run.defaultDatasetId).listItems();\n} catch (error) {\n    if (error.message?.includes('not found')) {\n        \u002F\u002F Actor ID is wrong or Actor was deleted\n    } else if (error.statusCode === 401) {\n        \u002F\u002F Invalid or missing APIFY_TOKEN\n    }\n    throw error;\n}\n```\n\n## Python\n\n### Install\n\n```bash\npip install apify-client\n```\n\n### Synchronous Execution\n\n```python\nfrom apify_client import ApifyClient\nimport os\n\nclient = ApifyClient(token=os.environ['APIFY_TOKEN'])\n\nrun = client.actor('apify\u002Fweb-scraper').call(run_input={\n    'startUrls': [{'url': 'https:\u002F\u002Fexample.com'}],\n    'maxPagesPerCrawl': 10,\n})\n\nitems = client.dataset(run['defaultDatasetId']).list_items().items\n```\n\n### Asynchronous Execution\n\n```python\nrun = client.actor('apify\u002Fweb-scraper').start(run_input={\n    'startUrls': [{'url': 'https:\u002F\u002Fexample.com'}],\n})\n\n# Poll for completion\nfinished_run = client.run(run['id']).wait_for_finish()\n\nitems = client.dataset(finished_run['defaultDatasetId']).list_items().items\n```\n\n### Async Client (asyncio)\n\n```python\nfrom apify_client import ApifyClientAsync\n\nclient = ApifyClientAsync(token=os.environ['APIFY_TOKEN'])\n\nrun = await client.actor('apify\u002Fweb-scraper').call(run_input={\n    'startUrls': [{'url': 'https:\u002F\u002Fexample.com'}],\n})\n\nitems = (await client.dataset(run['defaultDatasetId']).list_items()).items\n```\n\n## REST API (Any Language)\n\nFor languages without an official client, use the REST API directly.\n\n### Start a Run\n\n```\nPOST https:\u002F\u002Fapi.apify.com\u002Fv2\u002Facts\u002F{actorId}\u002Fruns\nAuthorization: Bearer \u003CAPIFY_TOKEN>\nContent-Type: application\u002Fjson\n\n{ \"startUrls\": [{ \"url\": \"https:\u002F\u002Fexample.com\" }] }\n```\n\n### Get Run Status\n\n```\nGET https:\u002F\u002Fapi.apify.com\u002Fv2\u002Facts\u002F{actorId}\u002Fruns\u002F{runId}\nAuthorization: Bearer \u003CAPIFY_TOKEN>\n```\n\n### Get Dataset Items\n\n```\nGET https:\u002F\u002Fapi.apify.com\u002Fv2\u002Fdatasets\u002F{datasetId}\u002Fitems?format=json\nAuthorization: Bearer \u003CAPIFY_TOKEN>\n```\n\nFull API reference: https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fv2\n\n## Best Practices\n\n- **Set timeouts:** Pass `timeoutSecs` in the Actor input or use `waitSecs` on `.call()` to avoid indefinite waits.\n- **Paginate large datasets:** Use `limit` and `offset` when retrieving dataset items. Default limit is 250K items.\n- **Reuse clients:** Create one `ApifyClient` instance and reuse it across calls.\n- **Handle Actor-specific input:** Every Actor has its own input schema. Use `fetch-actor-details` MCP tool or append `.md` to the Actor's Store URL to get the schema before constructing input.\n\n## Documentation\n\n- Apify API client for JS: https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fclient\u002Fjs\n- Apify API client for Python: https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fclient\u002Fpython\n- REST API reference: https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fv2\n- Apify docs (LLM-friendly): https:\u002F\u002Fdocs.apify.com\u002Fllms.txt\n- Apify docs (full): https:\u002F\u002Fdocs.apify.com\u002Fllms-full.txt\n\nIf the Apify MCP server is available, use `search-apify-docs` and `fetch-apify-docs` tools for contextual documentation lookups during development.\n",{"data":44,"body":45},{"name":4,"description":6},{"type":46,"children":47},"root",[48,56,71,78,103,109,170,176,214,219,225,230,255,276,282,289,323,329,749,760,766,1069,1090,1096,1330,1336,1926,1930,1935,1958,1964,2057,2063,2130,2136,2210,2216,2221,2227,2237,2243,2252,2258,2267,2278,2284,2388,2394,2451,2471],{"type":49,"tag":50,"props":51,"children":52},"element","h1",{"id":4},[53],{"type":54,"value":55},"text","Apify SDK Integration",{"type":49,"tag":57,"props":58,"children":59},"p",{},[60,62,69],{"type":54,"value":61},"Add Apify Actor execution to an existing application. This skill covers the ",{"type":49,"tag":63,"props":64,"children":66},"code",{"className":65},[],[67],{"type":54,"value":68},"apify-client",{"type":54,"value":70}," package for JS\u002FTS and Python, plus the REST API for other languages.",{"type":49,"tag":72,"props":73,"children":75},"h2",{"id":74},"when-to-use-this-skill",[76],{"type":54,"value":77},"When to Use This Skill",{"type":49,"tag":79,"props":80,"children":81},"ul",{},[82,88,93,98],{"type":49,"tag":83,"props":84,"children":85},"li",{},[86],{"type":54,"value":87},"Adding web scraping or automation to an existing app",{"type":49,"tag":83,"props":89,"children":90},{},[91],{"type":54,"value":92},"Calling Apify Actors programmatically from application code",{"type":49,"tag":83,"props":94,"children":95},{},[96],{"type":54,"value":97},"Building a product that uses Apify as a backend service",{"type":49,"tag":83,"props":99,"children":100},{},[101],{"type":54,"value":102},"Integrating Actor results into a data pipeline",{"type":49,"tag":72,"props":104,"children":106},{"id":105},"critical-package-naming",[107],{"type":54,"value":108},"Critical: Package Naming",{"type":49,"tag":110,"props":111,"children":112},"blockquote",{},[113,151],{"type":49,"tag":57,"props":114,"children":115},{},[116,125,127,132,134,142,144,149],{"type":49,"tag":117,"props":118,"children":119},"strong",{},[120],{"type":49,"tag":63,"props":121,"children":123},{"className":122},[],[124],{"type":54,"value":68},{"type":54,"value":126}," is the API client for ",{"type":49,"tag":117,"props":128,"children":129},{},[130],{"type":54,"value":131},"calling",{"type":54,"value":133}," Actors from your app.\n",{"type":49,"tag":117,"props":135,"children":136},{},[137],{"type":49,"tag":63,"props":138,"children":140},{"className":139},[],[141],{"type":54,"value":8},{"type":54,"value":143}," is the SDK for ",{"type":49,"tag":117,"props":145,"children":146},{},[147],{"type":54,"value":148},"building",{"type":54,"value":150}," Actors (wrong package for this use case).",{"type":49,"tag":57,"props":152,"children":153},{},[154,156,161,163,168],{"type":54,"value":155},"Always install ",{"type":49,"tag":63,"props":157,"children":159},{"className":158},[],[160],{"type":54,"value":68},{"type":54,"value":162},". Never install ",{"type":49,"tag":63,"props":164,"children":166},{"className":165},[],[167],{"type":54,"value":8},{"type":54,"value":169}," for integration work.",{"type":49,"tag":72,"props":171,"children":173},{"id":172},"prerequisites",[174],{"type":54,"value":175},"Prerequisites",{"type":49,"tag":57,"props":177,"children":178},{},[179,181,187,189,194,196,204,206,212],{"type":54,"value":180},"The user needs an ",{"type":49,"tag":63,"props":182,"children":184},{"className":183},[],[185],{"type":54,"value":186},"APIFY_TOKEN",{"type":54,"value":188},". Direct them to ",{"type":49,"tag":117,"props":190,"children":191},{},[192],{"type":54,"value":193},"Console > Settings > Integrations",{"type":54,"value":195}," at ",{"type":49,"tag":197,"props":198,"children":202},"a",{"href":199,"rel":200},"https:\u002F\u002Fconsole.apify.com\u002Fsettings\u002Fintegrations",[201],"nofollow",[203],{"type":54,"value":199},{"type":54,"value":205}," to create one. If they don't have an account: ",{"type":49,"tag":197,"props":207,"children":210},{"href":208,"rel":209},"https:\u002F\u002Fconsole.apify.com\u002Fsign-up",[201],[211],{"type":54,"value":208},{"type":54,"value":213}," (free, no credit card).",{"type":49,"tag":57,"props":215,"children":216},{},[217],{"type":54,"value":218},"Store the token securely — environment variable or secrets manager, never hardcoded.",{"type":49,"tag":72,"props":220,"children":222},{"id":221},"finding-the-right-actor",[223],{"type":54,"value":224},"Finding the Right Actor",{"type":49,"tag":57,"props":226,"children":227},{},[228],{"type":54,"value":229},"Before writing integration code, find the Actor that fits the user's needs. Use the MCP tools if available:",{"type":49,"tag":79,"props":231,"children":232},{},[233,244],{"type":49,"tag":83,"props":234,"children":235},{},[236,242],{"type":49,"tag":63,"props":237,"children":239},{"className":238},[],[240],{"type":54,"value":241},"search-actors",{"type":54,"value":243}," — search the Apify Store by keyword",{"type":49,"tag":83,"props":245,"children":246},{},[247,253],{"type":49,"tag":63,"props":248,"children":250},{"className":249},[],[251],{"type":54,"value":252},"fetch-actor-details",{"type":54,"value":254}," — get the Actor's input schema, output format, and pricing",{"type":49,"tag":57,"props":256,"children":257},{},[258,260,266,268,274],{"type":54,"value":259},"Alternatively, browse ",{"type":49,"tag":197,"props":261,"children":264},{"href":262,"rel":263},"https:\u002F\u002Fapify.com\u002Fstore",[201],[265],{"type":54,"value":262},{"type":54,"value":267},". Append ",{"type":49,"tag":63,"props":269,"children":271},{"className":270},[],[272],{"type":54,"value":273},".md",{"type":54,"value":275}," to any Actor's Store URL to get its docs in markdown.",{"type":49,"tag":72,"props":277,"children":279},{"id":278},"javascript-typescript",[280],{"type":54,"value":281},"JavaScript \u002F TypeScript",{"type":49,"tag":283,"props":284,"children":286},"h3",{"id":285},"install",[287],{"type":54,"value":288},"Install",{"type":49,"tag":290,"props":291,"children":296},"pre",{"className":292,"code":293,"language":294,"meta":295,"style":295},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install apify-client\n","bash","",[297],{"type":49,"tag":63,"props":298,"children":299},{"__ignoreMap":295},[300],{"type":49,"tag":301,"props":302,"children":305},"span",{"class":303,"line":304},"line",1,[306,312,318],{"type":49,"tag":301,"props":307,"children":309},{"style":308},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[310],{"type":54,"value":311},"npm",{"type":49,"tag":301,"props":313,"children":315},{"style":314},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[316],{"type":54,"value":317}," install",{"type":49,"tag":301,"props":319,"children":320},{"style":314},[321],{"type":54,"value":322}," apify-client\n",{"type":49,"tag":283,"props":324,"children":326},{"id":325},"synchronous-execution-wait-for-results",[327],{"type":54,"value":328},"Synchronous Execution (wait for results)",{"type":49,"tag":290,"props":330,"children":333},{"className":331,"code":332,"language":22,"meta":295,"style":295},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { ApifyClient } from 'apify-client';\n\nconst client = new ApifyClient({ token: process.env.APIFY_TOKEN });\n\nconst run = await client.actor('apify\u002Fweb-scraper').call({\n    startUrls: [{ url: 'https:\u002F\u002Fexample.com' }],\n    maxPagesPerCrawl: 10,\n});\n\nconst { items } = await client.dataset(run.defaultDatasetId).listItems();\n",[334],{"type":49,"tag":63,"props":335,"children":336},{"__ignoreMap":295},[337,387,397,486,494,569,627,650,666,674],{"type":49,"tag":301,"props":338,"children":339},{"class":303,"line":304},[340,346,352,358,363,368,373,377,382],{"type":49,"tag":301,"props":341,"children":343},{"style":342},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[344],{"type":54,"value":345},"import",{"type":49,"tag":301,"props":347,"children":349},{"style":348},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[350],{"type":54,"value":351}," {",{"type":49,"tag":301,"props":353,"children":355},{"style":354},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[356],{"type":54,"value":357}," ApifyClient",{"type":49,"tag":301,"props":359,"children":360},{"style":348},[361],{"type":54,"value":362}," }",{"type":49,"tag":301,"props":364,"children":365},{"style":342},[366],{"type":54,"value":367}," from",{"type":49,"tag":301,"props":369,"children":370},{"style":348},[371],{"type":54,"value":372}," '",{"type":49,"tag":301,"props":374,"children":375},{"style":314},[376],{"type":54,"value":68},{"type":49,"tag":301,"props":378,"children":379},{"style":348},[380],{"type":54,"value":381},"'",{"type":49,"tag":301,"props":383,"children":384},{"style":348},[385],{"type":54,"value":386},";\n",{"type":49,"tag":301,"props":388,"children":390},{"class":303,"line":389},2,[391],{"type":49,"tag":301,"props":392,"children":394},{"emptyLinePlaceholder":393},true,[395],{"type":54,"value":396},"\n",{"type":49,"tag":301,"props":398,"children":400},{"class":303,"line":399},3,[401,407,412,417,422,427,432,437,443,448,453,458,463,467,472,477,482],{"type":49,"tag":301,"props":402,"children":404},{"style":403},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[405],{"type":54,"value":406},"const",{"type":49,"tag":301,"props":408,"children":409},{"style":354},[410],{"type":54,"value":411}," client ",{"type":49,"tag":301,"props":413,"children":414},{"style":348},[415],{"type":54,"value":416},"=",{"type":49,"tag":301,"props":418,"children":419},{"style":348},[420],{"type":54,"value":421}," new",{"type":49,"tag":301,"props":423,"children":425},{"style":424},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[426],{"type":54,"value":357},{"type":49,"tag":301,"props":428,"children":429},{"style":354},[430],{"type":54,"value":431},"(",{"type":49,"tag":301,"props":433,"children":434},{"style":348},[435],{"type":54,"value":436},"{",{"type":49,"tag":301,"props":438,"children":440},{"style":439},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[441],{"type":54,"value":442}," token",{"type":49,"tag":301,"props":444,"children":445},{"style":348},[446],{"type":54,"value":447},":",{"type":49,"tag":301,"props":449,"children":450},{"style":354},[451],{"type":54,"value":452}," process",{"type":49,"tag":301,"props":454,"children":455},{"style":348},[456],{"type":54,"value":457},".",{"type":49,"tag":301,"props":459,"children":460},{"style":354},[461],{"type":54,"value":462},"env",{"type":49,"tag":301,"props":464,"children":465},{"style":348},[466],{"type":54,"value":457},{"type":49,"tag":301,"props":468,"children":469},{"style":354},[470],{"type":54,"value":471},"APIFY_TOKEN ",{"type":49,"tag":301,"props":473,"children":474},{"style":348},[475],{"type":54,"value":476},"}",{"type":49,"tag":301,"props":478,"children":479},{"style":354},[480],{"type":54,"value":481},")",{"type":49,"tag":301,"props":483,"children":484},{"style":348},[485],{"type":54,"value":386},{"type":49,"tag":301,"props":487,"children":489},{"class":303,"line":488},4,[490],{"type":49,"tag":301,"props":491,"children":492},{"emptyLinePlaceholder":393},[493],{"type":54,"value":396},{"type":49,"tag":301,"props":495,"children":497},{"class":303,"line":496},5,[498,502,507,511,516,521,525,530,534,538,543,547,551,555,560,564],{"type":49,"tag":301,"props":499,"children":500},{"style":403},[501],{"type":54,"value":406},{"type":49,"tag":301,"props":503,"children":504},{"style":354},[505],{"type":54,"value":506}," run ",{"type":49,"tag":301,"props":508,"children":509},{"style":348},[510],{"type":54,"value":416},{"type":49,"tag":301,"props":512,"children":513},{"style":342},[514],{"type":54,"value":515}," await",{"type":49,"tag":301,"props":517,"children":518},{"style":354},[519],{"type":54,"value":520}," client",{"type":49,"tag":301,"props":522,"children":523},{"style":348},[524],{"type":54,"value":457},{"type":49,"tag":301,"props":526,"children":527},{"style":424},[528],{"type":54,"value":529},"actor",{"type":49,"tag":301,"props":531,"children":532},{"style":354},[533],{"type":54,"value":431},{"type":49,"tag":301,"props":535,"children":536},{"style":348},[537],{"type":54,"value":381},{"type":49,"tag":301,"props":539,"children":540},{"style":314},[541],{"type":54,"value":542},"apify\u002Fweb-scraper",{"type":49,"tag":301,"props":544,"children":545},{"style":348},[546],{"type":54,"value":381},{"type":49,"tag":301,"props":548,"children":549},{"style":354},[550],{"type":54,"value":481},{"type":49,"tag":301,"props":552,"children":553},{"style":348},[554],{"type":54,"value":457},{"type":49,"tag":301,"props":556,"children":557},{"style":424},[558],{"type":54,"value":559},"call",{"type":49,"tag":301,"props":561,"children":562},{"style":354},[563],{"type":54,"value":431},{"type":49,"tag":301,"props":565,"children":566},{"style":348},[567],{"type":54,"value":568},"{\n",{"type":49,"tag":301,"props":570,"children":572},{"class":303,"line":571},6,[573,578,582,587,591,596,600,604,609,613,617,622],{"type":49,"tag":301,"props":574,"children":575},{"style":439},[576],{"type":54,"value":577},"    startUrls",{"type":49,"tag":301,"props":579,"children":580},{"style":348},[581],{"type":54,"value":447},{"type":49,"tag":301,"props":583,"children":584},{"style":354},[585],{"type":54,"value":586}," [",{"type":49,"tag":301,"props":588,"children":589},{"style":348},[590],{"type":54,"value":436},{"type":49,"tag":301,"props":592,"children":593},{"style":439},[594],{"type":54,"value":595}," url",{"type":49,"tag":301,"props":597,"children":598},{"style":348},[599],{"type":54,"value":447},{"type":49,"tag":301,"props":601,"children":602},{"style":348},[603],{"type":54,"value":372},{"type":49,"tag":301,"props":605,"children":606},{"style":314},[607],{"type":54,"value":608},"https:\u002F\u002Fexample.com",{"type":49,"tag":301,"props":610,"children":611},{"style":348},[612],{"type":54,"value":381},{"type":49,"tag":301,"props":614,"children":615},{"style":348},[616],{"type":54,"value":362},{"type":49,"tag":301,"props":618,"children":619},{"style":354},[620],{"type":54,"value":621},"]",{"type":49,"tag":301,"props":623,"children":624},{"style":348},[625],{"type":54,"value":626},",\n",{"type":49,"tag":301,"props":628,"children":630},{"class":303,"line":629},7,[631,636,640,646],{"type":49,"tag":301,"props":632,"children":633},{"style":439},[634],{"type":54,"value":635},"    maxPagesPerCrawl",{"type":49,"tag":301,"props":637,"children":638},{"style":348},[639],{"type":54,"value":447},{"type":49,"tag":301,"props":641,"children":643},{"style":642},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[644],{"type":54,"value":645}," 10",{"type":49,"tag":301,"props":647,"children":648},{"style":348},[649],{"type":54,"value":626},{"type":49,"tag":301,"props":651,"children":653},{"class":303,"line":652},8,[654,658,662],{"type":49,"tag":301,"props":655,"children":656},{"style":348},[657],{"type":54,"value":476},{"type":49,"tag":301,"props":659,"children":660},{"style":354},[661],{"type":54,"value":481},{"type":49,"tag":301,"props":663,"children":664},{"style":348},[665],{"type":54,"value":386},{"type":49,"tag":301,"props":667,"children":669},{"class":303,"line":668},9,[670],{"type":49,"tag":301,"props":671,"children":672},{"emptyLinePlaceholder":393},[673],{"type":54,"value":396},{"type":49,"tag":301,"props":675,"children":677},{"class":303,"line":676},10,[678,682,686,691,695,700,704,708,712,717,722,726,731,735,740,745],{"type":49,"tag":301,"props":679,"children":680},{"style":403},[681],{"type":54,"value":406},{"type":49,"tag":301,"props":683,"children":684},{"style":348},[685],{"type":54,"value":351},{"type":49,"tag":301,"props":687,"children":688},{"style":354},[689],{"type":54,"value":690}," items ",{"type":49,"tag":301,"props":692,"children":693},{"style":348},[694],{"type":54,"value":476},{"type":49,"tag":301,"props":696,"children":697},{"style":348},[698],{"type":54,"value":699}," =",{"type":49,"tag":301,"props":701,"children":702},{"style":342},[703],{"type":54,"value":515},{"type":49,"tag":301,"props":705,"children":706},{"style":354},[707],{"type":54,"value":520},{"type":49,"tag":301,"props":709,"children":710},{"style":348},[711],{"type":54,"value":457},{"type":49,"tag":301,"props":713,"children":714},{"style":424},[715],{"type":54,"value":716},"dataset",{"type":49,"tag":301,"props":718,"children":719},{"style":354},[720],{"type":54,"value":721},"(run",{"type":49,"tag":301,"props":723,"children":724},{"style":348},[725],{"type":54,"value":457},{"type":49,"tag":301,"props":727,"children":728},{"style":354},[729],{"type":54,"value":730},"defaultDatasetId)",{"type":49,"tag":301,"props":732,"children":733},{"style":348},[734],{"type":54,"value":457},{"type":49,"tag":301,"props":736,"children":737},{"style":424},[738],{"type":54,"value":739},"listItems",{"type":49,"tag":301,"props":741,"children":742},{"style":354},[743],{"type":54,"value":744},"()",{"type":49,"tag":301,"props":746,"children":747},{"style":348},[748],{"type":54,"value":386},{"type":49,"tag":57,"props":750,"children":751},{},[752,758],{"type":49,"tag":63,"props":753,"children":755},{"className":754},[],[756],{"type":54,"value":757},".call()",{"type":54,"value":759}," blocks until the Actor finishes. Use for short-running Actors (under a few minutes).",{"type":49,"tag":283,"props":761,"children":763},{"id":762},"asynchronous-execution-start-and-pollretrieve-later",[764],{"type":54,"value":765},"Asynchronous Execution (start and poll\u002Fretrieve later)",{"type":49,"tag":290,"props":767,"children":769},{"className":331,"code":768,"language":22,"meta":295,"style":295},"const run = await client.actor('apify\u002Fweb-scraper').start({\n    startUrls: [{ url: 'https:\u002F\u002Fexample.com' }],\n});\n\n\u002F\u002F Poll for completion\nconst finishedRun = await client.run(run.id).waitForFinish();\n\n\u002F\u002F Retrieve results\nconst { items } = await client.dataset(finishedRun.defaultDatasetId).listItems();\n",[770],{"type":49,"tag":63,"props":771,"children":772},{"__ignoreMap":295},[773,841,892,907,914,923,986,993,1001],{"type":49,"tag":301,"props":774,"children":775},{"class":303,"line":304},[776,780,784,788,792,796,800,804,808,812,816,820,824,828,833,837],{"type":49,"tag":301,"props":777,"children":778},{"style":403},[779],{"type":54,"value":406},{"type":49,"tag":301,"props":781,"children":782},{"style":354},[783],{"type":54,"value":506},{"type":49,"tag":301,"props":785,"children":786},{"style":348},[787],{"type":54,"value":416},{"type":49,"tag":301,"props":789,"children":790},{"style":342},[791],{"type":54,"value":515},{"type":49,"tag":301,"props":793,"children":794},{"style":354},[795],{"type":54,"value":520},{"type":49,"tag":301,"props":797,"children":798},{"style":348},[799],{"type":54,"value":457},{"type":49,"tag":301,"props":801,"children":802},{"style":424},[803],{"type":54,"value":529},{"type":49,"tag":301,"props":805,"children":806},{"style":354},[807],{"type":54,"value":431},{"type":49,"tag":301,"props":809,"children":810},{"style":348},[811],{"type":54,"value":381},{"type":49,"tag":301,"props":813,"children":814},{"style":314},[815],{"type":54,"value":542},{"type":49,"tag":301,"props":817,"children":818},{"style":348},[819],{"type":54,"value":381},{"type":49,"tag":301,"props":821,"children":822},{"style":354},[823],{"type":54,"value":481},{"type":49,"tag":301,"props":825,"children":826},{"style":348},[827],{"type":54,"value":457},{"type":49,"tag":301,"props":829,"children":830},{"style":424},[831],{"type":54,"value":832},"start",{"type":49,"tag":301,"props":834,"children":835},{"style":354},[836],{"type":54,"value":431},{"type":49,"tag":301,"props":838,"children":839},{"style":348},[840],{"type":54,"value":568},{"type":49,"tag":301,"props":842,"children":843},{"class":303,"line":389},[844,848,852,856,860,864,868,872,876,880,884,888],{"type":49,"tag":301,"props":845,"children":846},{"style":439},[847],{"type":54,"value":577},{"type":49,"tag":301,"props":849,"children":850},{"style":348},[851],{"type":54,"value":447},{"type":49,"tag":301,"props":853,"children":854},{"style":354},[855],{"type":54,"value":586},{"type":49,"tag":301,"props":857,"children":858},{"style":348},[859],{"type":54,"value":436},{"type":49,"tag":301,"props":861,"children":862},{"style":439},[863],{"type":54,"value":595},{"type":49,"tag":301,"props":865,"children":866},{"style":348},[867],{"type":54,"value":447},{"type":49,"tag":301,"props":869,"children":870},{"style":348},[871],{"type":54,"value":372},{"type":49,"tag":301,"props":873,"children":874},{"style":314},[875],{"type":54,"value":608},{"type":49,"tag":301,"props":877,"children":878},{"style":348},[879],{"type":54,"value":381},{"type":49,"tag":301,"props":881,"children":882},{"style":348},[883],{"type":54,"value":362},{"type":49,"tag":301,"props":885,"children":886},{"style":354},[887],{"type":54,"value":621},{"type":49,"tag":301,"props":889,"children":890},{"style":348},[891],{"type":54,"value":626},{"type":49,"tag":301,"props":893,"children":894},{"class":303,"line":399},[895,899,903],{"type":49,"tag":301,"props":896,"children":897},{"style":348},[898],{"type":54,"value":476},{"type":49,"tag":301,"props":900,"children":901},{"style":354},[902],{"type":54,"value":481},{"type":49,"tag":301,"props":904,"children":905},{"style":348},[906],{"type":54,"value":386},{"type":49,"tag":301,"props":908,"children":909},{"class":303,"line":488},[910],{"type":49,"tag":301,"props":911,"children":912},{"emptyLinePlaceholder":393},[913],{"type":54,"value":396},{"type":49,"tag":301,"props":915,"children":916},{"class":303,"line":496},[917],{"type":49,"tag":301,"props":918,"children":920},{"style":919},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[921],{"type":54,"value":922},"\u002F\u002F Poll for completion\n",{"type":49,"tag":301,"props":924,"children":925},{"class":303,"line":571},[926,930,935,939,943,947,951,956,960,964,969,973,978,982],{"type":49,"tag":301,"props":927,"children":928},{"style":403},[929],{"type":54,"value":406},{"type":49,"tag":301,"props":931,"children":932},{"style":354},[933],{"type":54,"value":934}," finishedRun ",{"type":49,"tag":301,"props":936,"children":937},{"style":348},[938],{"type":54,"value":416},{"type":49,"tag":301,"props":940,"children":941},{"style":342},[942],{"type":54,"value":515},{"type":49,"tag":301,"props":944,"children":945},{"style":354},[946],{"type":54,"value":520},{"type":49,"tag":301,"props":948,"children":949},{"style":348},[950],{"type":54,"value":457},{"type":49,"tag":301,"props":952,"children":953},{"style":424},[954],{"type":54,"value":955},"run",{"type":49,"tag":301,"props":957,"children":958},{"style":354},[959],{"type":54,"value":721},{"type":49,"tag":301,"props":961,"children":962},{"style":348},[963],{"type":54,"value":457},{"type":49,"tag":301,"props":965,"children":966},{"style":354},[967],{"type":54,"value":968},"id)",{"type":49,"tag":301,"props":970,"children":971},{"style":348},[972],{"type":54,"value":457},{"type":49,"tag":301,"props":974,"children":975},{"style":424},[976],{"type":54,"value":977},"waitForFinish",{"type":49,"tag":301,"props":979,"children":980},{"style":354},[981],{"type":54,"value":744},{"type":49,"tag":301,"props":983,"children":984},{"style":348},[985],{"type":54,"value":386},{"type":49,"tag":301,"props":987,"children":988},{"class":303,"line":629},[989],{"type":49,"tag":301,"props":990,"children":991},{"emptyLinePlaceholder":393},[992],{"type":54,"value":396},{"type":49,"tag":301,"props":994,"children":995},{"class":303,"line":652},[996],{"type":49,"tag":301,"props":997,"children":998},{"style":919},[999],{"type":54,"value":1000},"\u002F\u002F Retrieve results\n",{"type":49,"tag":301,"props":1002,"children":1003},{"class":303,"line":668},[1004,1008,1012,1016,1020,1024,1028,1032,1036,1040,1045,1049,1053,1057,1061,1065],{"type":49,"tag":301,"props":1005,"children":1006},{"style":403},[1007],{"type":54,"value":406},{"type":49,"tag":301,"props":1009,"children":1010},{"style":348},[1011],{"type":54,"value":351},{"type":49,"tag":301,"props":1013,"children":1014},{"style":354},[1015],{"type":54,"value":690},{"type":49,"tag":301,"props":1017,"children":1018},{"style":348},[1019],{"type":54,"value":476},{"type":49,"tag":301,"props":1021,"children":1022},{"style":348},[1023],{"type":54,"value":699},{"type":49,"tag":301,"props":1025,"children":1026},{"style":342},[1027],{"type":54,"value":515},{"type":49,"tag":301,"props":1029,"children":1030},{"style":354},[1031],{"type":54,"value":520},{"type":49,"tag":301,"props":1033,"children":1034},{"style":348},[1035],{"type":54,"value":457},{"type":49,"tag":301,"props":1037,"children":1038},{"style":424},[1039],{"type":54,"value":716},{"type":49,"tag":301,"props":1041,"children":1042},{"style":354},[1043],{"type":54,"value":1044},"(finishedRun",{"type":49,"tag":301,"props":1046,"children":1047},{"style":348},[1048],{"type":54,"value":457},{"type":49,"tag":301,"props":1050,"children":1051},{"style":354},[1052],{"type":54,"value":730},{"type":49,"tag":301,"props":1054,"children":1055},{"style":348},[1056],{"type":54,"value":457},{"type":49,"tag":301,"props":1058,"children":1059},{"style":424},[1060],{"type":54,"value":739},{"type":49,"tag":301,"props":1062,"children":1063},{"style":354},[1064],{"type":54,"value":744},{"type":49,"tag":301,"props":1066,"children":1067},{"style":348},[1068],{"type":54,"value":386},{"type":49,"tag":57,"props":1070,"children":1071},{},[1072,1074,1080,1082,1088],{"type":54,"value":1073},"Use ",{"type":49,"tag":63,"props":1075,"children":1077},{"className":1076},[],[1078],{"type":54,"value":1079},".start()",{"type":54,"value":1081}," + ",{"type":49,"tag":63,"props":1083,"children":1085},{"className":1084},[],[1086],{"type":54,"value":1087},".waitForFinish()",{"type":54,"value":1089}," for long-running Actors or when you need the run ID immediately.",{"type":49,"tag":283,"props":1091,"children":1093},{"id":1092},"retrieving-results",[1094],{"type":54,"value":1095},"Retrieving Results",{"type":49,"tag":290,"props":1097,"children":1099},{"className":331,"code":1098,"language":22,"meta":295,"style":295},"\u002F\u002F Dataset items (structured data from pushData)\nconst { items } = await client.dataset(run.defaultDatasetId).listItems({\n    limit: 100,\n    offset: 0,\n});\n\n\u002F\u002F Key-value store (files, screenshots, etc.)\nconst record = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');\n",[1100],{"type":49,"tag":63,"props":1101,"children":1102},{"__ignoreMap":295},[1103,1111,1178,1199,1220,1235,1242,1250],{"type":49,"tag":301,"props":1104,"children":1105},{"class":303,"line":304},[1106],{"type":49,"tag":301,"props":1107,"children":1108},{"style":919},[1109],{"type":54,"value":1110},"\u002F\u002F Dataset items (structured data from pushData)\n",{"type":49,"tag":301,"props":1112,"children":1113},{"class":303,"line":389},[1114,1118,1122,1126,1130,1134,1138,1142,1146,1150,1154,1158,1162,1166,1170,1174],{"type":49,"tag":301,"props":1115,"children":1116},{"style":403},[1117],{"type":54,"value":406},{"type":49,"tag":301,"props":1119,"children":1120},{"style":348},[1121],{"type":54,"value":351},{"type":49,"tag":301,"props":1123,"children":1124},{"style":354},[1125],{"type":54,"value":690},{"type":49,"tag":301,"props":1127,"children":1128},{"style":348},[1129],{"type":54,"value":476},{"type":49,"tag":301,"props":1131,"children":1132},{"style":348},[1133],{"type":54,"value":699},{"type":49,"tag":301,"props":1135,"children":1136},{"style":342},[1137],{"type":54,"value":515},{"type":49,"tag":301,"props":1139,"children":1140},{"style":354},[1141],{"type":54,"value":520},{"type":49,"tag":301,"props":1143,"children":1144},{"style":348},[1145],{"type":54,"value":457},{"type":49,"tag":301,"props":1147,"children":1148},{"style":424},[1149],{"type":54,"value":716},{"type":49,"tag":301,"props":1151,"children":1152},{"style":354},[1153],{"type":54,"value":721},{"type":49,"tag":301,"props":1155,"children":1156},{"style":348},[1157],{"type":54,"value":457},{"type":49,"tag":301,"props":1159,"children":1160},{"style":354},[1161],{"type":54,"value":730},{"type":49,"tag":301,"props":1163,"children":1164},{"style":348},[1165],{"type":54,"value":457},{"type":49,"tag":301,"props":1167,"children":1168},{"style":424},[1169],{"type":54,"value":739},{"type":49,"tag":301,"props":1171,"children":1172},{"style":354},[1173],{"type":54,"value":431},{"type":49,"tag":301,"props":1175,"children":1176},{"style":348},[1177],{"type":54,"value":568},{"type":49,"tag":301,"props":1179,"children":1180},{"class":303,"line":399},[1181,1186,1190,1195],{"type":49,"tag":301,"props":1182,"children":1183},{"style":439},[1184],{"type":54,"value":1185},"    limit",{"type":49,"tag":301,"props":1187,"children":1188},{"style":348},[1189],{"type":54,"value":447},{"type":49,"tag":301,"props":1191,"children":1192},{"style":642},[1193],{"type":54,"value":1194}," 100",{"type":49,"tag":301,"props":1196,"children":1197},{"style":348},[1198],{"type":54,"value":626},{"type":49,"tag":301,"props":1200,"children":1201},{"class":303,"line":488},[1202,1207,1211,1216],{"type":49,"tag":301,"props":1203,"children":1204},{"style":439},[1205],{"type":54,"value":1206},"    offset",{"type":49,"tag":301,"props":1208,"children":1209},{"style":348},[1210],{"type":54,"value":447},{"type":49,"tag":301,"props":1212,"children":1213},{"style":642},[1214],{"type":54,"value":1215}," 0",{"type":49,"tag":301,"props":1217,"children":1218},{"style":348},[1219],{"type":54,"value":626},{"type":49,"tag":301,"props":1221,"children":1222},{"class":303,"line":496},[1223,1227,1231],{"type":49,"tag":301,"props":1224,"children":1225},{"style":348},[1226],{"type":54,"value":476},{"type":49,"tag":301,"props":1228,"children":1229},{"style":354},[1230],{"type":54,"value":481},{"type":49,"tag":301,"props":1232,"children":1233},{"style":348},[1234],{"type":54,"value":386},{"type":49,"tag":301,"props":1236,"children":1237},{"class":303,"line":571},[1238],{"type":49,"tag":301,"props":1239,"children":1240},{"emptyLinePlaceholder":393},[1241],{"type":54,"value":396},{"type":49,"tag":301,"props":1243,"children":1244},{"class":303,"line":629},[1245],{"type":49,"tag":301,"props":1246,"children":1247},{"style":919},[1248],{"type":54,"value":1249},"\u002F\u002F Key-value store (files, screenshots, etc.)\n",{"type":49,"tag":301,"props":1251,"children":1252},{"class":303,"line":652},[1253,1257,1262,1266,1270,1274,1278,1283,1287,1291,1296,1300,1305,1309,1313,1318,1322,1326],{"type":49,"tag":301,"props":1254,"children":1255},{"style":403},[1256],{"type":54,"value":406},{"type":49,"tag":301,"props":1258,"children":1259},{"style":354},[1260],{"type":54,"value":1261}," record ",{"type":49,"tag":301,"props":1263,"children":1264},{"style":348},[1265],{"type":54,"value":416},{"type":49,"tag":301,"props":1267,"children":1268},{"style":342},[1269],{"type":54,"value":515},{"type":49,"tag":301,"props":1271,"children":1272},{"style":354},[1273],{"type":54,"value":520},{"type":49,"tag":301,"props":1275,"children":1276},{"style":348},[1277],{"type":54,"value":457},{"type":49,"tag":301,"props":1279,"children":1280},{"style":424},[1281],{"type":54,"value":1282},"keyValueStore",{"type":49,"tag":301,"props":1284,"children":1285},{"style":354},[1286],{"type":54,"value":721},{"type":49,"tag":301,"props":1288,"children":1289},{"style":348},[1290],{"type":54,"value":457},{"type":49,"tag":301,"props":1292,"children":1293},{"style":354},[1294],{"type":54,"value":1295},"defaultKeyValueStoreId)",{"type":49,"tag":301,"props":1297,"children":1298},{"style":348},[1299],{"type":54,"value":457},{"type":49,"tag":301,"props":1301,"children":1302},{"style":424},[1303],{"type":54,"value":1304},"getRecord",{"type":49,"tag":301,"props":1306,"children":1307},{"style":354},[1308],{"type":54,"value":431},{"type":49,"tag":301,"props":1310,"children":1311},{"style":348},[1312],{"type":54,"value":381},{"type":49,"tag":301,"props":1314,"children":1315},{"style":314},[1316],{"type":54,"value":1317},"OUTPUT",{"type":49,"tag":301,"props":1319,"children":1320},{"style":348},[1321],{"type":54,"value":381},{"type":49,"tag":301,"props":1323,"children":1324},{"style":354},[1325],{"type":54,"value":481},{"type":49,"tag":301,"props":1327,"children":1328},{"style":348},[1329],{"type":54,"value":386},{"type":49,"tag":283,"props":1331,"children":1333},{"id":1332},"error-handling",[1334],{"type":54,"value":1335},"Error Handling",{"type":49,"tag":290,"props":1337,"children":1339},{"className":331,"code":1338,"language":22,"meta":295,"style":295},"try {\n    const run = await client.actor('apify\u002Fweb-scraper').call(input);\n\n    if (run.status !== 'SUCCEEDED') {\n        const log = await client.log(run.id).get();\n        throw new Error(`Actor failed with status ${run.status}: ${log}`);\n    }\n\n    const { items } = await client.dataset(run.defaultDatasetId).listItems();\n} catch (error) {\n    if (error.message?.includes('not found')) {\n        \u002F\u002F Actor ID is wrong or Actor was deleted\n    } else if (error.statusCode === 401) {\n        \u002F\u002F Invalid or missing APIFY_TOKEN\n    }\n    throw error;\n}\n",[1340],{"type":49,"tag":63,"props":1341,"children":1342},{"__ignoreMap":295},[1343,1356,1434,1441,1494,1566,1644,1652,1659,1736,1757,1819,1828,1882,1891,1899,1917],{"type":49,"tag":301,"props":1344,"children":1345},{"class":303,"line":304},[1346,1351],{"type":49,"tag":301,"props":1347,"children":1348},{"style":342},[1349],{"type":54,"value":1350},"try",{"type":49,"tag":301,"props":1352,"children":1353},{"style":348},[1354],{"type":54,"value":1355}," {\n",{"type":49,"tag":301,"props":1357,"children":1358},{"class":303,"line":389},[1359,1364,1369,1373,1377,1381,1385,1389,1393,1397,1401,1405,1409,1413,1417,1421,1426,1430],{"type":49,"tag":301,"props":1360,"children":1361},{"style":403},[1362],{"type":54,"value":1363},"    const",{"type":49,"tag":301,"props":1365,"children":1366},{"style":354},[1367],{"type":54,"value":1368}," run",{"type":49,"tag":301,"props":1370,"children":1371},{"style":348},[1372],{"type":54,"value":699},{"type":49,"tag":301,"props":1374,"children":1375},{"style":342},[1376],{"type":54,"value":515},{"type":49,"tag":301,"props":1378,"children":1379},{"style":354},[1380],{"type":54,"value":520},{"type":49,"tag":301,"props":1382,"children":1383},{"style":348},[1384],{"type":54,"value":457},{"type":49,"tag":301,"props":1386,"children":1387},{"style":424},[1388],{"type":54,"value":529},{"type":49,"tag":301,"props":1390,"children":1391},{"style":439},[1392],{"type":54,"value":431},{"type":49,"tag":301,"props":1394,"children":1395},{"style":348},[1396],{"type":54,"value":381},{"type":49,"tag":301,"props":1398,"children":1399},{"style":314},[1400],{"type":54,"value":542},{"type":49,"tag":301,"props":1402,"children":1403},{"style":348},[1404],{"type":54,"value":381},{"type":49,"tag":301,"props":1406,"children":1407},{"style":439},[1408],{"type":54,"value":481},{"type":49,"tag":301,"props":1410,"children":1411},{"style":348},[1412],{"type":54,"value":457},{"type":49,"tag":301,"props":1414,"children":1415},{"style":424},[1416],{"type":54,"value":559},{"type":49,"tag":301,"props":1418,"children":1419},{"style":439},[1420],{"type":54,"value":431},{"type":49,"tag":301,"props":1422,"children":1423},{"style":354},[1424],{"type":54,"value":1425},"input",{"type":49,"tag":301,"props":1427,"children":1428},{"style":439},[1429],{"type":54,"value":481},{"type":49,"tag":301,"props":1431,"children":1432},{"style":348},[1433],{"type":54,"value":386},{"type":49,"tag":301,"props":1435,"children":1436},{"class":303,"line":399},[1437],{"type":49,"tag":301,"props":1438,"children":1439},{"emptyLinePlaceholder":393},[1440],{"type":54,"value":396},{"type":49,"tag":301,"props":1442,"children":1443},{"class":303,"line":488},[1444,1449,1454,1458,1462,1467,1472,1476,1481,1485,1490],{"type":49,"tag":301,"props":1445,"children":1446},{"style":342},[1447],{"type":54,"value":1448},"    if",{"type":49,"tag":301,"props":1450,"children":1451},{"style":439},[1452],{"type":54,"value":1453}," (",{"type":49,"tag":301,"props":1455,"children":1456},{"style":354},[1457],{"type":54,"value":955},{"type":49,"tag":301,"props":1459,"children":1460},{"style":348},[1461],{"type":54,"value":457},{"type":49,"tag":301,"props":1463,"children":1464},{"style":354},[1465],{"type":54,"value":1466},"status",{"type":49,"tag":301,"props":1468,"children":1469},{"style":348},[1470],{"type":54,"value":1471}," !==",{"type":49,"tag":301,"props":1473,"children":1474},{"style":348},[1475],{"type":54,"value":372},{"type":49,"tag":301,"props":1477,"children":1478},{"style":314},[1479],{"type":54,"value":1480},"SUCCEEDED",{"type":49,"tag":301,"props":1482,"children":1483},{"style":348},[1484],{"type":54,"value":381},{"type":49,"tag":301,"props":1486,"children":1487},{"style":439},[1488],{"type":54,"value":1489},") ",{"type":49,"tag":301,"props":1491,"children":1492},{"style":348},[1493],{"type":54,"value":568},{"type":49,"tag":301,"props":1495,"children":1496},{"class":303,"line":496},[1497,1502,1507,1511,1515,1519,1523,1528,1532,1536,1540,1545,1549,1553,1558,1562],{"type":49,"tag":301,"props":1498,"children":1499},{"style":403},[1500],{"type":54,"value":1501},"        const",{"type":49,"tag":301,"props":1503,"children":1504},{"style":354},[1505],{"type":54,"value":1506}," log",{"type":49,"tag":301,"props":1508,"children":1509},{"style":348},[1510],{"type":54,"value":699},{"type":49,"tag":301,"props":1512,"children":1513},{"style":342},[1514],{"type":54,"value":515},{"type":49,"tag":301,"props":1516,"children":1517},{"style":354},[1518],{"type":54,"value":520},{"type":49,"tag":301,"props":1520,"children":1521},{"style":348},[1522],{"type":54,"value":457},{"type":49,"tag":301,"props":1524,"children":1525},{"style":424},[1526],{"type":54,"value":1527},"log",{"type":49,"tag":301,"props":1529,"children":1530},{"style":439},[1531],{"type":54,"value":431},{"type":49,"tag":301,"props":1533,"children":1534},{"style":354},[1535],{"type":54,"value":955},{"type":49,"tag":301,"props":1537,"children":1538},{"style":348},[1539],{"type":54,"value":457},{"type":49,"tag":301,"props":1541,"children":1542},{"style":354},[1543],{"type":54,"value":1544},"id",{"type":49,"tag":301,"props":1546,"children":1547},{"style":439},[1548],{"type":54,"value":481},{"type":49,"tag":301,"props":1550,"children":1551},{"style":348},[1552],{"type":54,"value":457},{"type":49,"tag":301,"props":1554,"children":1555},{"style":424},[1556],{"type":54,"value":1557},"get",{"type":49,"tag":301,"props":1559,"children":1560},{"style":439},[1561],{"type":54,"value":744},{"type":49,"tag":301,"props":1563,"children":1564},{"style":348},[1565],{"type":54,"value":386},{"type":49,"tag":301,"props":1567,"children":1568},{"class":303,"line":571},[1569,1574,1578,1583,1587,1592,1597,1602,1606,1610,1614,1618,1623,1627,1631,1636,1640],{"type":49,"tag":301,"props":1570,"children":1571},{"style":342},[1572],{"type":54,"value":1573},"        throw",{"type":49,"tag":301,"props":1575,"children":1576},{"style":348},[1577],{"type":54,"value":421},{"type":49,"tag":301,"props":1579,"children":1580},{"style":424},[1581],{"type":54,"value":1582}," Error",{"type":49,"tag":301,"props":1584,"children":1585},{"style":439},[1586],{"type":54,"value":431},{"type":49,"tag":301,"props":1588,"children":1589},{"style":348},[1590],{"type":54,"value":1591},"`",{"type":49,"tag":301,"props":1593,"children":1594},{"style":314},[1595],{"type":54,"value":1596},"Actor failed with status ",{"type":49,"tag":301,"props":1598,"children":1599},{"style":348},[1600],{"type":54,"value":1601},"${",{"type":49,"tag":301,"props":1603,"children":1604},{"style":354},[1605],{"type":54,"value":955},{"type":49,"tag":301,"props":1607,"children":1608},{"style":348},[1609],{"type":54,"value":457},{"type":49,"tag":301,"props":1611,"children":1612},{"style":354},[1613],{"type":54,"value":1466},{"type":49,"tag":301,"props":1615,"children":1616},{"style":348},[1617],{"type":54,"value":476},{"type":49,"tag":301,"props":1619,"children":1620},{"style":314},[1621],{"type":54,"value":1622},": ",{"type":49,"tag":301,"props":1624,"children":1625},{"style":348},[1626],{"type":54,"value":1601},{"type":49,"tag":301,"props":1628,"children":1629},{"style":354},[1630],{"type":54,"value":1527},{"type":49,"tag":301,"props":1632,"children":1633},{"style":348},[1634],{"type":54,"value":1635},"}`",{"type":49,"tag":301,"props":1637,"children":1638},{"style":439},[1639],{"type":54,"value":481},{"type":49,"tag":301,"props":1641,"children":1642},{"style":348},[1643],{"type":54,"value":386},{"type":49,"tag":301,"props":1645,"children":1646},{"class":303,"line":629},[1647],{"type":49,"tag":301,"props":1648,"children":1649},{"style":348},[1650],{"type":54,"value":1651},"    }\n",{"type":49,"tag":301,"props":1653,"children":1654},{"class":303,"line":652},[1655],{"type":49,"tag":301,"props":1656,"children":1657},{"emptyLinePlaceholder":393},[1658],{"type":54,"value":396},{"type":49,"tag":301,"props":1660,"children":1661},{"class":303,"line":668},[1662,1666,1670,1675,1679,1683,1687,1691,1695,1699,1703,1707,1711,1716,1720,1724,1728,1732],{"type":49,"tag":301,"props":1663,"children":1664},{"style":403},[1665],{"type":54,"value":1363},{"type":49,"tag":301,"props":1667,"children":1668},{"style":348},[1669],{"type":54,"value":351},{"type":49,"tag":301,"props":1671,"children":1672},{"style":354},[1673],{"type":54,"value":1674}," items",{"type":49,"tag":301,"props":1676,"children":1677},{"style":348},[1678],{"type":54,"value":362},{"type":49,"tag":301,"props":1680,"children":1681},{"style":348},[1682],{"type":54,"value":699},{"type":49,"tag":301,"props":1684,"children":1685},{"style":342},[1686],{"type":54,"value":515},{"type":49,"tag":301,"props":1688,"children":1689},{"style":354},[1690],{"type":54,"value":520},{"type":49,"tag":301,"props":1692,"children":1693},{"style":348},[1694],{"type":54,"value":457},{"type":49,"tag":301,"props":1696,"children":1697},{"style":424},[1698],{"type":54,"value":716},{"type":49,"tag":301,"props":1700,"children":1701},{"style":439},[1702],{"type":54,"value":431},{"type":49,"tag":301,"props":1704,"children":1705},{"style":354},[1706],{"type":54,"value":955},{"type":49,"tag":301,"props":1708,"children":1709},{"style":348},[1710],{"type":54,"value":457},{"type":49,"tag":301,"props":1712,"children":1713},{"style":354},[1714],{"type":54,"value":1715},"defaultDatasetId",{"type":49,"tag":301,"props":1717,"children":1718},{"style":439},[1719],{"type":54,"value":481},{"type":49,"tag":301,"props":1721,"children":1722},{"style":348},[1723],{"type":54,"value":457},{"type":49,"tag":301,"props":1725,"children":1726},{"style":424},[1727],{"type":54,"value":739},{"type":49,"tag":301,"props":1729,"children":1730},{"style":439},[1731],{"type":54,"value":744},{"type":49,"tag":301,"props":1733,"children":1734},{"style":348},[1735],{"type":54,"value":386},{"type":49,"tag":301,"props":1737,"children":1738},{"class":303,"line":676},[1739,1743,1748,1753],{"type":49,"tag":301,"props":1740,"children":1741},{"style":348},[1742],{"type":54,"value":476},{"type":49,"tag":301,"props":1744,"children":1745},{"style":342},[1746],{"type":54,"value":1747}," catch",{"type":49,"tag":301,"props":1749,"children":1750},{"style":354},[1751],{"type":54,"value":1752}," (error) ",{"type":49,"tag":301,"props":1754,"children":1755},{"style":348},[1756],{"type":54,"value":568},{"type":49,"tag":301,"props":1758,"children":1760},{"class":303,"line":1759},11,[1761,1765,1769,1774,1778,1783,1788,1793,1797,1801,1806,1810,1815],{"type":49,"tag":301,"props":1762,"children":1763},{"style":342},[1764],{"type":54,"value":1448},{"type":49,"tag":301,"props":1766,"children":1767},{"style":439},[1768],{"type":54,"value":1453},{"type":49,"tag":301,"props":1770,"children":1771},{"style":354},[1772],{"type":54,"value":1773},"error",{"type":49,"tag":301,"props":1775,"children":1776},{"style":348},[1777],{"type":54,"value":457},{"type":49,"tag":301,"props":1779,"children":1780},{"style":354},[1781],{"type":54,"value":1782},"message",{"type":49,"tag":301,"props":1784,"children":1785},{"style":348},[1786],{"type":54,"value":1787},"?.",{"type":49,"tag":301,"props":1789,"children":1790},{"style":424},[1791],{"type":54,"value":1792},"includes",{"type":49,"tag":301,"props":1794,"children":1795},{"style":439},[1796],{"type":54,"value":431},{"type":49,"tag":301,"props":1798,"children":1799},{"style":348},[1800],{"type":54,"value":381},{"type":49,"tag":301,"props":1802,"children":1803},{"style":314},[1804],{"type":54,"value":1805},"not found",{"type":49,"tag":301,"props":1807,"children":1808},{"style":348},[1809],{"type":54,"value":381},{"type":49,"tag":301,"props":1811,"children":1812},{"style":439},[1813],{"type":54,"value":1814},")) ",{"type":49,"tag":301,"props":1816,"children":1817},{"style":348},[1818],{"type":54,"value":568},{"type":49,"tag":301,"props":1820,"children":1822},{"class":303,"line":1821},12,[1823],{"type":49,"tag":301,"props":1824,"children":1825},{"style":919},[1826],{"type":54,"value":1827},"        \u002F\u002F Actor ID is wrong or Actor was deleted\n",{"type":49,"tag":301,"props":1829,"children":1831},{"class":303,"line":1830},13,[1832,1837,1842,1847,1851,1855,1859,1864,1869,1874,1878],{"type":49,"tag":301,"props":1833,"children":1834},{"style":348},[1835],{"type":54,"value":1836},"    }",{"type":49,"tag":301,"props":1838,"children":1839},{"style":342},[1840],{"type":54,"value":1841}," else",{"type":49,"tag":301,"props":1843,"children":1844},{"style":342},[1845],{"type":54,"value":1846}," if",{"type":49,"tag":301,"props":1848,"children":1849},{"style":439},[1850],{"type":54,"value":1453},{"type":49,"tag":301,"props":1852,"children":1853},{"style":354},[1854],{"type":54,"value":1773},{"type":49,"tag":301,"props":1856,"children":1857},{"style":348},[1858],{"type":54,"value":457},{"type":49,"tag":301,"props":1860,"children":1861},{"style":354},[1862],{"type":54,"value":1863},"statusCode",{"type":49,"tag":301,"props":1865,"children":1866},{"style":348},[1867],{"type":54,"value":1868}," ===",{"type":49,"tag":301,"props":1870,"children":1871},{"style":642},[1872],{"type":54,"value":1873}," 401",{"type":49,"tag":301,"props":1875,"children":1876},{"style":439},[1877],{"type":54,"value":1489},{"type":49,"tag":301,"props":1879,"children":1880},{"style":348},[1881],{"type":54,"value":568},{"type":49,"tag":301,"props":1883,"children":1885},{"class":303,"line":1884},14,[1886],{"type":49,"tag":301,"props":1887,"children":1888},{"style":919},[1889],{"type":54,"value":1890},"        \u002F\u002F Invalid or missing APIFY_TOKEN\n",{"type":49,"tag":301,"props":1892,"children":1894},{"class":303,"line":1893},15,[1895],{"type":49,"tag":301,"props":1896,"children":1897},{"style":348},[1898],{"type":54,"value":1651},{"type":49,"tag":301,"props":1900,"children":1902},{"class":303,"line":1901},16,[1903,1908,1913],{"type":49,"tag":301,"props":1904,"children":1905},{"style":342},[1906],{"type":54,"value":1907},"    throw",{"type":49,"tag":301,"props":1909,"children":1910},{"style":354},[1911],{"type":54,"value":1912}," error",{"type":49,"tag":301,"props":1914,"children":1915},{"style":348},[1916],{"type":54,"value":386},{"type":49,"tag":301,"props":1918,"children":1920},{"class":303,"line":1919},17,[1921],{"type":49,"tag":301,"props":1922,"children":1923},{"style":348},[1924],{"type":54,"value":1925},"}\n",{"type":49,"tag":72,"props":1927,"children":1928},{"id":28},[1929],{"type":54,"value":27},{"type":49,"tag":283,"props":1931,"children":1933},{"id":1932},"install-1",[1934],{"type":54,"value":288},{"type":49,"tag":290,"props":1936,"children":1938},{"className":292,"code":1937,"language":294,"meta":295,"style":295},"pip install apify-client\n",[1939],{"type":49,"tag":63,"props":1940,"children":1941},{"__ignoreMap":295},[1942],{"type":49,"tag":301,"props":1943,"children":1944},{"class":303,"line":304},[1945,1950,1954],{"type":49,"tag":301,"props":1946,"children":1947},{"style":308},[1948],{"type":54,"value":1949},"pip",{"type":49,"tag":301,"props":1951,"children":1952},{"style":314},[1953],{"type":54,"value":317},{"type":49,"tag":301,"props":1955,"children":1956},{"style":314},[1957],{"type":54,"value":322},{"type":49,"tag":283,"props":1959,"children":1961},{"id":1960},"synchronous-execution",[1962],{"type":54,"value":1963},"Synchronous Execution",{"type":49,"tag":290,"props":1965,"children":1968},{"className":1966,"code":1967,"language":28,"meta":295,"style":295},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from apify_client import ApifyClient\nimport os\n\nclient = ApifyClient(token=os.environ['APIFY_TOKEN'])\n\nrun = client.actor('apify\u002Fweb-scraper').call(run_input={\n    'startUrls': [{'url': 'https:\u002F\u002Fexample.com'}],\n    'maxPagesPerCrawl': 10,\n})\n\nitems = client.dataset(run['defaultDatasetId']).list_items().items\n",[1969],{"type":49,"tag":63,"props":1970,"children":1971},{"__ignoreMap":295},[1972,1980,1988,1995,2003,2010,2018,2026,2034,2042,2049],{"type":49,"tag":301,"props":1973,"children":1974},{"class":303,"line":304},[1975],{"type":49,"tag":301,"props":1976,"children":1977},{},[1978],{"type":54,"value":1979},"from apify_client import ApifyClient\n",{"type":49,"tag":301,"props":1981,"children":1982},{"class":303,"line":389},[1983],{"type":49,"tag":301,"props":1984,"children":1985},{},[1986],{"type":54,"value":1987},"import os\n",{"type":49,"tag":301,"props":1989,"children":1990},{"class":303,"line":399},[1991],{"type":49,"tag":301,"props":1992,"children":1993},{"emptyLinePlaceholder":393},[1994],{"type":54,"value":396},{"type":49,"tag":301,"props":1996,"children":1997},{"class":303,"line":488},[1998],{"type":49,"tag":301,"props":1999,"children":2000},{},[2001],{"type":54,"value":2002},"client = ApifyClient(token=os.environ['APIFY_TOKEN'])\n",{"type":49,"tag":301,"props":2004,"children":2005},{"class":303,"line":496},[2006],{"type":49,"tag":301,"props":2007,"children":2008},{"emptyLinePlaceholder":393},[2009],{"type":54,"value":396},{"type":49,"tag":301,"props":2011,"children":2012},{"class":303,"line":571},[2013],{"type":49,"tag":301,"props":2014,"children":2015},{},[2016],{"type":54,"value":2017},"run = client.actor('apify\u002Fweb-scraper').call(run_input={\n",{"type":49,"tag":301,"props":2019,"children":2020},{"class":303,"line":629},[2021],{"type":49,"tag":301,"props":2022,"children":2023},{},[2024],{"type":54,"value":2025},"    'startUrls': [{'url': 'https:\u002F\u002Fexample.com'}],\n",{"type":49,"tag":301,"props":2027,"children":2028},{"class":303,"line":652},[2029],{"type":49,"tag":301,"props":2030,"children":2031},{},[2032],{"type":54,"value":2033},"    'maxPagesPerCrawl': 10,\n",{"type":49,"tag":301,"props":2035,"children":2036},{"class":303,"line":668},[2037],{"type":49,"tag":301,"props":2038,"children":2039},{},[2040],{"type":54,"value":2041},"})\n",{"type":49,"tag":301,"props":2043,"children":2044},{"class":303,"line":676},[2045],{"type":49,"tag":301,"props":2046,"children":2047},{"emptyLinePlaceholder":393},[2048],{"type":54,"value":396},{"type":49,"tag":301,"props":2050,"children":2051},{"class":303,"line":1759},[2052],{"type":49,"tag":301,"props":2053,"children":2054},{},[2055],{"type":54,"value":2056},"items = client.dataset(run['defaultDatasetId']).list_items().items\n",{"type":49,"tag":283,"props":2058,"children":2060},{"id":2059},"asynchronous-execution",[2061],{"type":54,"value":2062},"Asynchronous Execution",{"type":49,"tag":290,"props":2064,"children":2066},{"className":1966,"code":2065,"language":28,"meta":295,"style":295},"run = client.actor('apify\u002Fweb-scraper').start(run_input={\n    'startUrls': [{'url': 'https:\u002F\u002Fexample.com'}],\n})\n\n# Poll for completion\nfinished_run = client.run(run['id']).wait_for_finish()\n\nitems = client.dataset(finished_run['defaultDatasetId']).list_items().items\n",[2067],{"type":49,"tag":63,"props":2068,"children":2069},{"__ignoreMap":295},[2070,2078,2085,2092,2099,2107,2115,2122],{"type":49,"tag":301,"props":2071,"children":2072},{"class":303,"line":304},[2073],{"type":49,"tag":301,"props":2074,"children":2075},{},[2076],{"type":54,"value":2077},"run = client.actor('apify\u002Fweb-scraper').start(run_input={\n",{"type":49,"tag":301,"props":2079,"children":2080},{"class":303,"line":389},[2081],{"type":49,"tag":301,"props":2082,"children":2083},{},[2084],{"type":54,"value":2025},{"type":49,"tag":301,"props":2086,"children":2087},{"class":303,"line":399},[2088],{"type":49,"tag":301,"props":2089,"children":2090},{},[2091],{"type":54,"value":2041},{"type":49,"tag":301,"props":2093,"children":2094},{"class":303,"line":488},[2095],{"type":49,"tag":301,"props":2096,"children":2097},{"emptyLinePlaceholder":393},[2098],{"type":54,"value":396},{"type":49,"tag":301,"props":2100,"children":2101},{"class":303,"line":496},[2102],{"type":49,"tag":301,"props":2103,"children":2104},{},[2105],{"type":54,"value":2106},"# Poll for completion\n",{"type":49,"tag":301,"props":2108,"children":2109},{"class":303,"line":571},[2110],{"type":49,"tag":301,"props":2111,"children":2112},{},[2113],{"type":54,"value":2114},"finished_run = client.run(run['id']).wait_for_finish()\n",{"type":49,"tag":301,"props":2116,"children":2117},{"class":303,"line":629},[2118],{"type":49,"tag":301,"props":2119,"children":2120},{"emptyLinePlaceholder":393},[2121],{"type":54,"value":396},{"type":49,"tag":301,"props":2123,"children":2124},{"class":303,"line":652},[2125],{"type":49,"tag":301,"props":2126,"children":2127},{},[2128],{"type":54,"value":2129},"items = client.dataset(finished_run['defaultDatasetId']).list_items().items\n",{"type":49,"tag":283,"props":2131,"children":2133},{"id":2132},"async-client-asyncio",[2134],{"type":54,"value":2135},"Async Client (asyncio)",{"type":49,"tag":290,"props":2137,"children":2139},{"className":1966,"code":2138,"language":28,"meta":295,"style":295},"from apify_client import ApifyClientAsync\n\nclient = ApifyClientAsync(token=os.environ['APIFY_TOKEN'])\n\nrun = await client.actor('apify\u002Fweb-scraper').call(run_input={\n    'startUrls': [{'url': 'https:\u002F\u002Fexample.com'}],\n})\n\nitems = (await client.dataset(run['defaultDatasetId']).list_items()).items\n",[2140],{"type":49,"tag":63,"props":2141,"children":2142},{"__ignoreMap":295},[2143,2151,2158,2166,2173,2181,2188,2195,2202],{"type":49,"tag":301,"props":2144,"children":2145},{"class":303,"line":304},[2146],{"type":49,"tag":301,"props":2147,"children":2148},{},[2149],{"type":54,"value":2150},"from apify_client import ApifyClientAsync\n",{"type":49,"tag":301,"props":2152,"children":2153},{"class":303,"line":389},[2154],{"type":49,"tag":301,"props":2155,"children":2156},{"emptyLinePlaceholder":393},[2157],{"type":54,"value":396},{"type":49,"tag":301,"props":2159,"children":2160},{"class":303,"line":399},[2161],{"type":49,"tag":301,"props":2162,"children":2163},{},[2164],{"type":54,"value":2165},"client = ApifyClientAsync(token=os.environ['APIFY_TOKEN'])\n",{"type":49,"tag":301,"props":2167,"children":2168},{"class":303,"line":488},[2169],{"type":49,"tag":301,"props":2170,"children":2171},{"emptyLinePlaceholder":393},[2172],{"type":54,"value":396},{"type":49,"tag":301,"props":2174,"children":2175},{"class":303,"line":496},[2176],{"type":49,"tag":301,"props":2177,"children":2178},{},[2179],{"type":54,"value":2180},"run = await client.actor('apify\u002Fweb-scraper').call(run_input={\n",{"type":49,"tag":301,"props":2182,"children":2183},{"class":303,"line":571},[2184],{"type":49,"tag":301,"props":2185,"children":2186},{},[2187],{"type":54,"value":2025},{"type":49,"tag":301,"props":2189,"children":2190},{"class":303,"line":629},[2191],{"type":49,"tag":301,"props":2192,"children":2193},{},[2194],{"type":54,"value":2041},{"type":49,"tag":301,"props":2196,"children":2197},{"class":303,"line":652},[2198],{"type":49,"tag":301,"props":2199,"children":2200},{"emptyLinePlaceholder":393},[2201],{"type":54,"value":396},{"type":49,"tag":301,"props":2203,"children":2204},{"class":303,"line":668},[2205],{"type":49,"tag":301,"props":2206,"children":2207},{},[2208],{"type":54,"value":2209},"items = (await client.dataset(run['defaultDatasetId']).list_items()).items\n",{"type":49,"tag":72,"props":2211,"children":2213},{"id":2212},"rest-api-any-language",[2214],{"type":54,"value":2215},"REST API (Any Language)",{"type":49,"tag":57,"props":2217,"children":2218},{},[2219],{"type":54,"value":2220},"For languages without an official client, use the REST API directly.",{"type":49,"tag":283,"props":2222,"children":2224},{"id":2223},"start-a-run",[2225],{"type":54,"value":2226},"Start a Run",{"type":49,"tag":290,"props":2228,"children":2232},{"className":2229,"code":2231,"language":54},[2230],"language-text","POST https:\u002F\u002Fapi.apify.com\u002Fv2\u002Facts\u002F{actorId}\u002Fruns\nAuthorization: Bearer \u003CAPIFY_TOKEN>\nContent-Type: application\u002Fjson\n\n{ \"startUrls\": [{ \"url\": \"https:\u002F\u002Fexample.com\" }] }\n",[2233],{"type":49,"tag":63,"props":2234,"children":2235},{"__ignoreMap":295},[2236],{"type":54,"value":2231},{"type":49,"tag":283,"props":2238,"children":2240},{"id":2239},"get-run-status",[2241],{"type":54,"value":2242},"Get Run Status",{"type":49,"tag":290,"props":2244,"children":2247},{"className":2245,"code":2246,"language":54},[2230],"GET https:\u002F\u002Fapi.apify.com\u002Fv2\u002Facts\u002F{actorId}\u002Fruns\u002F{runId}\nAuthorization: Bearer \u003CAPIFY_TOKEN>\n",[2248],{"type":49,"tag":63,"props":2249,"children":2250},{"__ignoreMap":295},[2251],{"type":54,"value":2246},{"type":49,"tag":283,"props":2253,"children":2255},{"id":2254},"get-dataset-items",[2256],{"type":54,"value":2257},"Get Dataset Items",{"type":49,"tag":290,"props":2259,"children":2262},{"className":2260,"code":2261,"language":54},[2230],"GET https:\u002F\u002Fapi.apify.com\u002Fv2\u002Fdatasets\u002F{datasetId}\u002Fitems?format=json\nAuthorization: Bearer \u003CAPIFY_TOKEN>\n",[2263],{"type":49,"tag":63,"props":2264,"children":2265},{"__ignoreMap":295},[2266],{"type":54,"value":2261},{"type":49,"tag":57,"props":2268,"children":2269},{},[2270,2272],{"type":54,"value":2271},"Full API reference: ",{"type":49,"tag":197,"props":2273,"children":2276},{"href":2274,"rel":2275},"https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fv2",[201],[2277],{"type":54,"value":2274},{"type":49,"tag":72,"props":2279,"children":2281},{"id":2280},"best-practices",[2282],{"type":54,"value":2283},"Best Practices",{"type":49,"tag":79,"props":2285,"children":2286},{},[2287,2320,2346,2364],{"type":49,"tag":83,"props":2288,"children":2289},{},[2290,2295,2297,2303,2305,2311,2313,2318],{"type":49,"tag":117,"props":2291,"children":2292},{},[2293],{"type":54,"value":2294},"Set timeouts:",{"type":54,"value":2296}," Pass ",{"type":49,"tag":63,"props":2298,"children":2300},{"className":2299},[],[2301],{"type":54,"value":2302},"timeoutSecs",{"type":54,"value":2304}," in the Actor input or use ",{"type":49,"tag":63,"props":2306,"children":2308},{"className":2307},[],[2309],{"type":54,"value":2310},"waitSecs",{"type":54,"value":2312}," on ",{"type":49,"tag":63,"props":2314,"children":2316},{"className":2315},[],[2317],{"type":54,"value":757},{"type":54,"value":2319}," to avoid indefinite waits.",{"type":49,"tag":83,"props":2321,"children":2322},{},[2323,2328,2330,2336,2338,2344],{"type":49,"tag":117,"props":2324,"children":2325},{},[2326],{"type":54,"value":2327},"Paginate large datasets:",{"type":54,"value":2329}," Use ",{"type":49,"tag":63,"props":2331,"children":2333},{"className":2332},[],[2334],{"type":54,"value":2335},"limit",{"type":54,"value":2337}," and ",{"type":49,"tag":63,"props":2339,"children":2341},{"className":2340},[],[2342],{"type":54,"value":2343},"offset",{"type":54,"value":2345}," when retrieving dataset items. Default limit is 250K items.",{"type":49,"tag":83,"props":2347,"children":2348},{},[2349,2354,2356,2362],{"type":49,"tag":117,"props":2350,"children":2351},{},[2352],{"type":54,"value":2353},"Reuse clients:",{"type":54,"value":2355}," Create one ",{"type":49,"tag":63,"props":2357,"children":2359},{"className":2358},[],[2360],{"type":54,"value":2361},"ApifyClient",{"type":54,"value":2363}," instance and reuse it across calls.",{"type":49,"tag":83,"props":2365,"children":2366},{},[2367,2372,2374,2379,2381,2386],{"type":49,"tag":117,"props":2368,"children":2369},{},[2370],{"type":54,"value":2371},"Handle Actor-specific input:",{"type":54,"value":2373}," Every Actor has its own input schema. Use ",{"type":49,"tag":63,"props":2375,"children":2377},{"className":2376},[],[2378],{"type":54,"value":252},{"type":54,"value":2380}," MCP tool or append ",{"type":49,"tag":63,"props":2382,"children":2384},{"className":2383},[],[2385],{"type":54,"value":273},{"type":54,"value":2387}," to the Actor's Store URL to get the schema before constructing input.",{"type":49,"tag":72,"props":2389,"children":2391},{"id":2390},"documentation",[2392],{"type":54,"value":2393},"Documentation",{"type":49,"tag":79,"props":2395,"children":2396},{},[2397,2408,2419,2429,2440],{"type":49,"tag":83,"props":2398,"children":2399},{},[2400,2402],{"type":54,"value":2401},"Apify API client for JS: ",{"type":49,"tag":197,"props":2403,"children":2406},{"href":2404,"rel":2405},"https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fclient\u002Fjs",[201],[2407],{"type":54,"value":2404},{"type":49,"tag":83,"props":2409,"children":2410},{},[2411,2413],{"type":54,"value":2412},"Apify API client for Python: ",{"type":49,"tag":197,"props":2414,"children":2417},{"href":2415,"rel":2416},"https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fclient\u002Fpython",[201],[2418],{"type":54,"value":2415},{"type":49,"tag":83,"props":2420,"children":2421},{},[2422,2424],{"type":54,"value":2423},"REST API reference: ",{"type":49,"tag":197,"props":2425,"children":2427},{"href":2274,"rel":2426},[201],[2428],{"type":54,"value":2274},{"type":49,"tag":83,"props":2430,"children":2431},{},[2432,2434],{"type":54,"value":2433},"Apify docs (LLM-friendly): ",{"type":49,"tag":197,"props":2435,"children":2438},{"href":2436,"rel":2437},"https:\u002F\u002Fdocs.apify.com\u002Fllms.txt",[201],[2439],{"type":54,"value":2436},{"type":49,"tag":83,"props":2441,"children":2442},{},[2443,2445],{"type":54,"value":2444},"Apify docs (full): ",{"type":49,"tag":197,"props":2446,"children":2449},{"href":2447,"rel":2448},"https:\u002F\u002Fdocs.apify.com\u002Fllms-full.txt",[201],[2450],{"type":54,"value":2447},{"type":49,"tag":57,"props":2452,"children":2453},{},[2454,2456,2462,2463,2469],{"type":54,"value":2455},"If the Apify MCP server is available, use ",{"type":49,"tag":63,"props":2457,"children":2459},{"className":2458},[],[2460],{"type":54,"value":2461},"search-apify-docs",{"type":54,"value":2337},{"type":49,"tag":63,"props":2464,"children":2466},{"className":2465},[],[2467],{"type":54,"value":2468},"fetch-apify-docs",{"type":54,"value":2470}," tools for contextual documentation lookups during development.",{"type":49,"tag":2472,"props":2473,"children":2474},"style",{},[2475],{"type":54,"value":2476},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2478,"total":676},[2479,2492,2506,2521,2531,2541,2556,2573,2589,2602],{"slug":2480,"name":2480,"fn":2481,"description":2482,"org":2483,"tags":2484,"stars":32,"repoUrl":33,"updatedAt":2491},"apify-actor-development","build and deploy Apify Actors","Develop, debug, and deploy Apify Actors - serverless cloud programs for web scraping, automation, and data processing. Use when creating new Actors, modifying existing ones, or troubleshooting Actor code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2485,2486,2487,2490],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":2488,"slug":2489,"type":13},"Serverless","serverless",{"name":18,"slug":19,"type":13},"2026-04-06T18:00:48.720637",{"slug":2493,"name":2493,"fn":2494,"description":2495,"org":2496,"tags":2497,"stars":32,"repoUrl":33,"updatedAt":2505},"apify-actorization","convert projects into Apify Actors","Convert existing projects into Apify Actors - serverless cloud programs. Actorize JavaScript\u002FTypeScript (SDK with Actor.init\u002Fexit), Python (async context manager), or any language (CLI wrapper). Use when migrating code to Apify, wrapping CLI tools as Actors, or adding Actor SDK to existing projects.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2498,2499,2500,2503,2504],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":2501,"slug":2502,"type":13},"Migration","migration",{"name":2488,"slug":2489,"type":13},{"name":18,"slug":19,"type":13},"2026-04-06T18:00:46.151104",{"slug":2507,"name":2507,"fn":2508,"description":2509,"org":2510,"tags":2511,"stars":32,"repoUrl":33,"updatedAt":2520},"apify-generate-output-schema","generate Apify Actor output schemas","Generate output schemas (dataset_schema.json, output_schema.json, key_value_store_schema.json) for an Apify Actor by analyzing its source code. Use when creating or updating Actor output schemas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2512,2515,2516,2519],{"name":2513,"slug":2514,"type":13},"API Development","api-development",{"name":9,"slug":8,"type":13},{"name":2517,"slug":2518,"type":13},"Data Modeling","data-modeling",{"name":18,"slug":19,"type":13},"2026-04-06T18:00:50.07596",{"slug":4,"name":4,"fn":5,"description":6,"org":2522,"tags":2523,"stars":32,"repoUrl":33,"updatedAt":34},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2524,2525,2526,2527,2528,2529,2530],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":24,"slug":25,"type":13},{"name":27,"slug":28,"type":13},{"name":30,"slug":31,"type":13},{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"slug":2532,"name":2532,"fn":2533,"description":2534,"org":2535,"tags":2536,"stars":32,"repoUrl":33,"updatedAt":2540},"apify-ultimate-scraper","scrape data across web platforms","Universal AI-powered web scraper for any platform. Scrape data from Instagram, Facebook, TikTok, YouTube, LinkedIn, X\u002FTwitter, Google Maps, Google Search, Google Trends, Reddit, Airbnb, Yelp, and 15+ more platforms. Use for lead generation, brand monitoring, competitor analysis, influencer discovery, trend research, content analytics, audience analysis, review analysis, SEO intelligence, recruitment, or any data extraction task.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2537,2538,2539],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},"2026-04-06T18:00:47.419432",{"slug":2542,"name":2542,"fn":2543,"description":2544,"org":2545,"tags":2546,"stars":2553,"repoUrl":2554,"updatedAt":2555},"apify-cli","run and manage Apify Actors via CLI","Patterns for invoking the Apify CLI (`apify`) from agents. Covers authentication, creating\u002Frunning\u002Fpushing Actors, calling Actors in the cloud, and reading results from datasets and key-value stores.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2547,2548,2549,2552],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":2550,"slug":2551,"type":13},"CLI","cli",{"name":18,"slug":19,"type":13},232,"https:\u002F\u002Fgithub.com\u002Fapify\u002Fapify-cli","2026-07-02T07:39:43.018333",{"slug":2557,"name":2557,"fn":2558,"description":2559,"org":2560,"tags":2561,"stars":2570,"repoUrl":2571,"updatedAt":2572},"apify-financial-news","extract financial news for portfolio companies","Discover and extract financial news for tracked portfolio companies across 33 verified Tier 1 sources (Bloomberg, Reuters, FT, WSJ, IntelliNews, ČTK, PAP, BTA, TASR, ING Think, ECB, EC Press Corner, ...) plus broad Google News fallback. Use when the user asks to find news about a company, get press coverage, monitor financial press, run a news scan, or check headlines for a portfolio company. Reads tracked companies from data\u002Fcompanies.json. Do NOT use for marketing\u002Fsocial-listening (use apify\u002Fawesome-skills) or for morning-briefing formatting (out of scope).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2562,2563,2566,2569],{"name":9,"slug":8,"type":13},{"name":2564,"slug":2565,"type":13},"Finance","finance",{"name":2567,"slug":2568,"type":13},"Research","research",{"name":18,"slug":19,"type":13},227,"https:\u002F\u002Fgithub.com\u002Fapify\u002Fawesome-skills","2026-05-23T06:06:02.858883",{"slug":2574,"name":2574,"fn":2575,"description":2576,"org":2577,"tags":2578,"stars":2570,"repoUrl":2571,"updatedAt":2588},"apify-financial-osint","gather social listening signals for portfolio companies","Social-listening signals for tracked portfolio companies via Apify Actors — Reddit sentiment (fatihtahta), Twitter\u002FX real-time mentions (kaitoeasyapi pay-per-result), Trustpilot service quality (getwally.net). Use when the user asks for sentiment, social media mentions, customer reviews, brand perception, crisis signals, OSINT, social listening, \"what are people saying about X\". Reads tracked companies from data\u002Fcompanies.json. Do NOT use for news (use apify-financial-news) or registry lookups (use apify-public-registries).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2579,2580,2583,2584,2587],{"name":9,"slug":8,"type":13},{"name":2581,"slug":2582,"type":13},"Marketing","marketing",{"name":2567,"slug":2568,"type":13},{"name":2585,"slug":2586,"type":13},"Sales","sales",{"name":18,"slug":19,"type":13},"2026-05-23T06:06:04.102658",{"slug":2590,"name":2590,"fn":2591,"description":2592,"org":2593,"tags":2594,"stars":2570,"repoUrl":2571,"updatedAt":2601},"apify-public-registries","lookup company data from European public registries","Look up official company data from European public registries across 11 countries\u002Fregions (CZ, SK, PL, DE, UK, NL, RO, HR, SE + EU-level + ESG). Covers company registration, ownership, financial filings, VAT status, ESG data. Use when the user asks to \"look up a company\", \"check registry\", \"find company info\", \"look up IČO\u002FKRS\u002FLEI\u002FCRN\", \"company due diligence\", \"check VAT status\", \"find ownership structure\", or needs official data from European registries. Reads tracked companies from data\u002Fcompanies.json. Some lookups use Python scripts (stdlib), some fall back to Apify actors for scraping-based registries.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2595,2596,2599,2600],{"name":9,"slug":8,"type":13},{"name":2597,"slug":2598,"type":13},"Compliance","compliance",{"name":2564,"slug":2565,"type":13},{"name":2567,"slug":2568,"type":13},"2026-05-23T06:06:05.323553",{"slug":2603,"name":2603,"fn":2481,"description":2604,"org":2605,"tags":2606,"stars":2616,"repoUrl":2617,"updatedAt":2618},"apify-agent","Build, run, debug, and deploy Apify Actors. Use when the user wants to create an Actor, mentions apify create \u002F apify run \u002F apify push, or is debugging an Actor's input schema, storages, or deployment.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2607,2608,2609,2612,2615],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":2610,"slug":2611,"type":13},"Debugging","debugging",{"name":2613,"slug":2614,"type":13},"Deployment","deployment",{"name":18,"slug":19,"type":13},0,"https:\u002F\u002Fgithub.com\u002Fapify\u002Fapify-agent","2026-07-30T05:53:40.745073",{"items":2620,"total":496},[2621,2628,2636,2643,2653],{"slug":2480,"name":2480,"fn":2481,"description":2482,"org":2622,"tags":2623,"stars":32,"repoUrl":33,"updatedAt":2491},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2624,2625,2626,2627],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":2488,"slug":2489,"type":13},{"name":18,"slug":19,"type":13},{"slug":2493,"name":2493,"fn":2494,"description":2495,"org":2629,"tags":2630,"stars":32,"repoUrl":33,"updatedAt":2505},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2631,2632,2633,2634,2635],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":2501,"slug":2502,"type":13},{"name":2488,"slug":2489,"type":13},{"name":18,"slug":19,"type":13},{"slug":2507,"name":2507,"fn":2508,"description":2509,"org":2637,"tags":2638,"stars":32,"repoUrl":33,"updatedAt":2520},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2639,2640,2641,2642],{"name":2513,"slug":2514,"type":13},{"name":9,"slug":8,"type":13},{"name":2517,"slug":2518,"type":13},{"name":18,"slug":19,"type":13},{"slug":4,"name":4,"fn":5,"description":6,"org":2644,"tags":2645,"stars":32,"repoUrl":33,"updatedAt":34},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2646,2647,2648,2649,2650,2651,2652],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":24,"slug":25,"type":13},{"name":27,"slug":28,"type":13},{"name":30,"slug":31,"type":13},{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"slug":2532,"name":2532,"fn":2533,"description":2534,"org":2654,"tags":2655,"stars":32,"repoUrl":33,"updatedAt":2540},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2656,2657,2658],{"name":9,"slug":8,"type":13},{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13}]