Start an Apify actor run in the background
apify.web.scrape.job.startStart a scraper run in the background and get back its run id
- Price
- free제공업체 원가
- Success rate
- 99.9%Last 30 days · 1,509 calls
- Latency p50
- 4.4 sp95 15 s
- Last verified
- 2026. 7. 31.Verified working
POSThttps://toolswitch.dev/v1/tools/apify.web.scrape.job.start?memory=256&timeout=60&waitForFinish=0&maxTotalChargeUsd=0.05Preview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
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
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 경로 파라미터 | ||||
actor_id | 문자열 | 필수 | username~actorname with a TILDE, e.g. apify~facebook-ads-scraper | apify~facebook-ads-scraper |
| 쿼리 파라미터 | ||||
memory | 정수 | 선택 | MB; higher memory is faster and costs more compute | 2048 |
timeout | 정수 | 선택 | seconds the RUN may take (not the HTTP call) | 900 |
maxItems | 정수 | 선택 | result cap for pay-per-result actors | 500 |
waitForFinish | 정수 | 선택 | seconds to hold the HTTP response open waiting for the run, max 60 — a middle ground between async and run-sync | 0 |
maxTotalChargeUsd | 숫자 | 선택 | 5 | |
- 경로 파라미터
actor_id문자열필수username~actorname with a TILDE, e.g. apify~facebook-ads-scraper
예시:
apify~facebook-ads-scraper- 쿼리 파라미터
memory정수선택MB; higher memory is faster and costs more compute
예시:
2048timeout정수선택seconds the RUN may take (not the HTTP call)
예시:
900maxItems정수선택result cap for pay-per-result actors
예시:
500waitForFinish정수선택seconds to hold the HTTP response open waiting for the run, max 60 — a middle ground between async and run-sync
예시:
0maxTotalChargeUsd숫자선택예시:
5
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
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 '{}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/apify.web.scrape.job.start?memory=256&timeout=60&waitForFinish=0&maxTotalChargeUsd=0.05",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/apify.web.scrape.job.start?memory=256&timeout=60&waitForFinish=0&maxTotalChargeUsd=0.05", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 free이며 서비스 수수료가 포함되어 있습니다.