Apify and Crawlee Official Forum

Updated 3 months ago

How do I get a run's input after run is complete?

I am using the Google Maps Scraper actor and providing a search query and location. I'm then using a webhook to let my next.js app know when the run is finished so it can grab the results. I'd like to also grab the original search query and location. How would I do this?
1
g
A
S
4 comments
I believe you can get the key-value-store details for an actor runid using below

/v2/actor-runs/{runId}/key-value-store?token={token}

and you can get the input using

/v2/key-value-stores/{storeid}/records/INPUT?token={token}
just advanced to level 6! Thanks for your contributions! πŸŽ‰
Cool I'll try that, thanks
The webhook gives you the resource.defaultKeyValueStoreId so you only need one requuest for the input
Add a reply
Sign up and join the conversation on Discord