extended-salmon
extended-salmon•2y 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?
4 Replies
gtry
gtry•2y ago
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}
MEE6
MEE6•2y ago
@gtry just advanced to level 6! Thanks for your contributions! 🎉
extended-salmon
extended-salmonOP•2y ago
Cool I'll try that, thanks
Lukas Krivka
Lukas Krivka•2y ago
The webhook gives you the resource.defaultKeyValueStoreId so you only need one requuest for the input

Did you find this page helpful?