Get Research
WebRouter is in closed beta. It’s available to selected accounts, and the API may still change. To get access, talk to the Nimble team.
Where a research run stands, in result, with its answer in result.response once state is ‘completed’; meta names the tool. Pass wait=60, so one call waits up to a minute for the run to end, and call again only while state is ‘queued’ or ‘running’; it then ends ‘completed’, ‘failed’ or ‘cancelled’. Polling starts nothing new: poll rather than start the research again. A 410 means the provider no longer knows the run: how long an ended run stays readable depends on the provider, so read its answer soon after it completes, and start a new run only if the answer is still needed. A 502 or 504 means the provider did not answer this poll, not that the run failed: it goes on, so poll again.