cURL
Call RunHarvester from a shell or CI job.
base="https://api.runharvester.com/api/v1/data"
key="rh_live_replace_me"
request=$(curl -sS -X POST "$base/requests" \
-H "X-API-Key: $key" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: example-$(date +%s)" \
-d '{"url":"https://example.com","mode":"auto","proxy":"random"}')
request_id=$(printf '%s' "$request" | jq -r '.id')
curl -sS "$base/requests/$request_id/result" -H "X-API-Key: $key"In production, poll the request endpoint until it reaches a terminal state before fetching /result.
Last updated on