Black FridayA full year of Eden for up to 50% off, until MondaySee the deal
Get started

Errors

Every failed call answers JSON with ok false, a status word, and a message. Here is what each one means.

View as markdown

A failed call answers { "ok": false, "status": "...", "message": "..." } with a matching HTTP code. Check the HTTP code or status first, then show or log message. Failed calls are free.

{
  "ok": false,
  "status": "invalid",
  "message": "Unknown sort \"bad\". Use one of: outlier, recent, engagement, views."
}

Every status

HTTPstatusWhat it meansWhat to do
202queuedEden is fetching this post for the first time.Wait retry_after_seconds, then call again.
202indexingEden is pulling this creator's posts for the first time.Wait retry_after_seconds, then call again.
401auth-expiredThe key is missing, mistyped, or revoked.Check the Authorization header, or make a new key.
402out-of-creditsThe key's workspace has no credits left.Show add_credits_url.
403forbiddenThe key's access doesn't allow this route.Change the key's access in Settings → API, or make a new key.
404not-foundNo post or creator matches, or the route doesn't exist.Check the link, id, handle, or path.
409ambiguousMore than one account matches the handle.Pick one from candidates and call again with its username.
422invalidA query value is missing or wrong. message says which.Fix the value.
422unsupportedEden can't read this link.Use a YouTube, Instagram, TikTok, X, LinkedIn, Threads, Substack, or Loom link.
422missing-workspaceThe key has no workspace to charge.Make a new key in Settings → API.
429rate-limitedMore than 120 calls a minute on this key.Wait the seconds in Retry-After.
5xxerror, unavailableSomething broke on Eden's side.Try again in a moment.

Waiting answers (202)

A 202 is not a failure. It carries retry_after_seconds (5 to 60) and the same number in a Retry-After header:

{
  "ok": false,
  "status": "queued",
  "message": "Eden is fetching this post for the first time. Try again shortly.",
  "retry_after_seconds": 10
}

A creator that's still being pulled also sends what Eden has so far: creator, posts_found, posts_expected, and recent_posts. See Creators.

Out of credits (402)

{
  "ok": false,
  "status": "out-of-credits",
  "message": "This workspace is out of credits. Add credits to keep calling the Eden API.",
  "add_credits_url": "https://app.eden.so/?settings=usage"
}

More than one match (409)

{
  "ok": false,
  "status": "ambiguous",
  "message": "More than one account matches. Use one of these handles.",
  "candidates": [
    {
      "platform": "instagram",
      "username": "noravale",
      "display_name": "Nora Vale",
      "profile_url": "https://www.instagram.com/noravale/",
      "avatar_url": null,
      "bio": null,
      "followers": 182000
    }
  ]
}

Retry rule of thumb

  • 202: wait retry_after_seconds and call again.
  • 429 and 5xx: wait a few seconds and try again, a few times at most.
  • Everything else: don't retry. Fix the key, the input, or the balance first.