metadata.scrapeId of a scrape from the last 24 hours. A scrape sent with zeroDataRetention cannot be interacted with.
actions, they run again first. The same location and blockAds choice carry over. In your code, page is the session’s browser page with Playwright style methods such as page.title() and page.locator(selector).
exitCode and killed before you use result. The call itself is free. You pay for the time the session is open, when it closes. See Pricing.
Request fields
Sendcode or prompt. A body with neither returns 400 invalidRequest.
Response fields
Close the session
SendDELETE /v1/scrape/{id}/interact as soon as you are done. The response has sessionDurationMs and costUsd. A DELETE with no open session returns 200 and bills nothing. A session also ends after 5 minutes without a call and after 10 minutes at most, and you are billed for the time it was open. After it ends, the next call on the same scrape opens a new session, billed on its own.
Limits and errors
- A scrape id older than 24 hours returns
404 notFound. Scrape the page again. - Open sessions are capped per plan. Over the cap the call returns
429 rateLimited. Close one and send again. See Rate limits. zeroDataRetentionon a call that reaches a session opened without it returns400 invalidRequest. Close the session withDELETE, then send it on the first call.