Skip to content

Docs

Authentication

Send an API key as a Bearer token. Some endpoints also work without one, at Free limits.

API keys

Create keys in Settings, API and MCP. A key belongs to you and draws on the plan and quota of the workspace you created it in. We store a hash, so the key is shown once; if you lose it, revoke it and create another.

curl "https://outearn.app/api/v1/me" \
  -H "Authorization: Bearer $OUTEARN_API_KEY"
  • Keys start with pd_live_. Anything else in the header is rejected with 401 before we look it up.
  • Creating keys needs a confirmed email address.
  • Revoking is immediate: the next call with that key gets 401 unauthorized.
  • Use one key per app, script or AI client, so revoking one does not break the others. Each key has its own burst limit and its own usage line in settings.

Which endpoints need a key

AccessEndpointsLimits
No key (public)Apps search and lookup, app detail, history, rankings, IAPs, estimate explanation, store rankings, rising, SaaS directory and company, countries, accuracy, OpenAPIFree limits: 3 filters, the top 25 results on apps search, rising apps and the SaaS directory, 30 days of history, 60 requests a minute per IP. Store rankings return the whole captured chart. Not metered.
Key or signed-in sessionEverything else: country split, reviews, review insights, ads, creators, organic videos, onboarding, paywall terms, events, keywords, /meKey calls are metered against the plan; see limits.
Signed-in session only/keys (list, create, revoke)Keys cannot manage keys.

A key on a public endpoint lifts the Free limits to your plan's and counts one unit.

Browser sessions

Signed into the web app, the same endpoints work from the browser with your session cookie, same-origin. Session calls are rate limited but not metered. Cross-origin calls must use a key.

CORS

Requests with an Authorization header get Access-Control-Allow-Origin: * and never credentials, so you can call the API from a browser app with a key. Do not ship a key in public front-end code: anyone can read it and spend your quota. Call the API from your server instead.

MCP authentication

The MCP server at https://outearn.app/mcp takes the same key in the same header. Every client on the MCP page supports a static header, directly or through a bridge.

Clients that cannot send a header, such as custom connectors in the Claude apps, use OAuth 2.1 instead: the server's 401 names its metadata (https://outearn.app/.well-known/oauth-protected-resource/mcp, then https://outearn.app/.well-known/oauth-authorization-server); the client registers itself (dynamic client registration), sends you to a sign-in and consent page, and exchanges the code with PKCE (S256). The access token it gets is an API key on your workspace, valid 30 days and refreshed by the client; it is listed in Settings, API keys as “MCP <client name>”, and revoking it there ends the connection. Keys need a confirmed email address.

Auth errors

StatusCodeWhen
401unauthorizedNo key on a key-only endpoint, a malformed header, or a key that is unknown, revoked or expired.
402plan_limitThe key's workspace is on Free, which has no API or MCP calls.
403forbiddenA key called a session-only endpoint, or the email is not confirmed when creating a key.

Every error has the same envelope; see errors, limits and pricing.