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
national-gold•17mo 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}
@gtry just advanced to level 6! Thanks for your contributions! 🎉
sensitive-blueOP•17mo ago
Cool I'll try that, thanks
quickest-silver•17mo ago
The webhook gives you the
resource.defaultKeyValueStoreId
so you only need one requuest for the input