ApifyDados da web e SEOSEO/AEO

Start an Apify actor run in the background

apify.web.scrape.job.start

Start a scraper run in the background and get back its run id

Price
freePelo preço do provedor
Success rate
99,9%Last 30 days · 1.509 calls
Latency p50
4.4 sp95 15 s
Last verified
31 de jul. de 2026Verified working
POSThttps://toolswitch.dev/v1/tools/apify.web.scrape.job.start?memory=256&timeout=60&waitForFinish=0&maxTotalChargeUsd=0.05Preview
Try onlineEm breveProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

the whole request body IS the actor's input object — there is no wrapper key; use the same fields as the run-sync entries above (startUrls/resultsLimit for the Facebook actor, search/limit for the TikTok one). Returns immediately with {data: {id, status, defaultDatasetId}}. This is the route for anything that outruns run-sync's 300-second ceiling: keep `id` to poll and `defaultDatasetId` to collect results. The test_request deliberately targets apify~hello-world rather than a data actor — REPLAYING IT STARTS A REAL RUN, and hello-world is the cheapest actor that exists (observed 2026-07-31: $0.00013 of compute, no results, so nothing pay-per-result can bill). Verified live 2026-07-31 that /actors/{id}/runs and the older /acts/{id}/runs are the same endpoint — both answer 201

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de caminho
actor_idstringObrigatóriousername~actorname with a TILDE, e.g. apify~facebook-ads-scraperapify~facebook-ads-scraper
Parâmetros de consulta
memoryinteiroOpcionalMB; higher memory is faster and costs more compute2048
timeoutinteiroOpcionalseconds the RUN may take (not the HTTP call)900
maxItemsinteiroOpcionalresult cap for pay-per-result actors500
waitForFinishinteiroOpcionalseconds to hold the HTTP response open waiting for the run, max 60 — a middle ground between async and run-sync0
maxTotalChargeUsdnúmeroOpcional5
  • Parâmetros de caminho
  • actor_idstringObrigatório

    username~actorname with a TILDE, e.g. apify~facebook-ads-scraper

    Exemplo: apify~facebook-ads-scraper

  • Parâmetros de consulta
  • memoryinteiroOpcional

    MB; higher memory is faster and costs more compute

    Exemplo: 2048

  • timeoutinteiroOpcional

    seconds the RUN may take (not the HTTP call)

    Exemplo: 900

  • maxItemsinteiroOpcional

    result cap for pay-per-result actors

    Exemplo: 500

  • waitForFinishinteiroOpcional

    seconds to hold the HTTP response open waiting for the run, max 60 — a middle ground between async and run-sync

    Exemplo: 0

  • maxTotalChargeUsdnúmeroOpcional

    Exemplo: 5

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no console.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/apify.web.scrape.job.start?memory=256&timeout=60&waitForFinish=0&maxTotalChargeUsd=0.05' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{}'

Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.