Skip to main content
Execute a data endpoint and retrieve results. For providers which are executed synchronously (e.g. People Data Labs), they return the results immediately; for others (e.g. Apify), the server will return 202 with a run ID and processes the request in the background.

Usage

Flags

Examples

Run with wait

Input from file

With custom timeout

Output

Sync providers

For sync providers, the result is returned immediately — no polling needed:

Async providers

For async providers, the run starts in the background. Poll with monid runs get or use --wait:
With --wait, the CLI polls automatically until the run completes:

Provider errors

If the provider returned an error, the run still shows Status: COMPLETED (the run itself finished) but the Response line shows the provider’s HTTP status:

Infrastructure errors

If Monid itself failed to execute the run, the status is FAILED:

Status vs Provider HTTP Status

Every completed run has two independent indicators:
  • Status: COMPLETED + Response: HTTP 200 = success, data returned
  • Status: COMPLETED + Response: HTTP 404 = run finished, but provider found no data
  • Status: COMPLETED + Response: HTTP 500 = run finished, but provider had an error
  • Status: FAILED = infrastructure error (our fault), no provider response
Provider errors (non-2xx responses) are not charged.

Next Steps