Skip to main content
FetchFox supports detached jobs for long-running requests. Any endpoint can take detach: true. When you set it, FetchFox returns immediately with a jobId instead of keeping the request open until the job finishes. Detached jobs are useful when:
  • Your crawl or extraction may take a while
  • Your client has a short timeout
  • You want to start work in one request and check progress later

Start a detached job

Add detach: true to the same request body you would normally send. Example:
Typical response:

Check job status

To check the current status of a detached job, request: https://api.fetchfox.ai/api/jobs/:jobId Example:
The job response includes a state field.

Job states

  • active: the job is still running
  • completed: the job finished successfully
  • error: the job failed while running
If the job is still active, keep polling the job endpoint until it reaches either completed or error.

Summary

  • Any FetchFox endpoint can run as a detached job.
  • Enable it by adding detach: true to the request body.
  • Use the returned jobId to poll /api/jobs/:jobId.
  • Watch the state field to know whether the job is still running, completed, or failed.