API Reference
The Uncover API lets you surface real user pain points from Reddit, HackerNews, and X. Send a query, get back structured problems, sentiment analysis, trends, and a summary. Credits-based — no subscriptions required.
https://api.uncover.thealxlabs.caBearer token (API key)application/json60 req/min · 10 searches/minAuthentication
All authenticated endpoints require a Bearer token in the Authorization header. API keys follow the format sk_live_ followed by a 32-character hex string.
Get your API key by signing up at uncover.thealxlabs.ca/login. Keys are hashed server-side — you must save your key when it is first shown.
Endpoints
/api/auth/signuppublicCreate a new user account and get an API key.
Request body
/api/auth/signinpublicVerify credentials. Returns key metadata (not the raw key — save it on signup).
/api/auth/keysList all API keys for your account.
/api/auth/keysCreate a new API key.
/api/auth/keys/:idRevoke an API key. Irreversible.
/api/searchRun a search against social platforms or custom URLs. Costs 1+ credits.
Social search (sources)
Custom URL search
/api/search/:requestIdRetrieve a completed search result by ID. Must be your own request.
/api/search/historyGet your recent search history.
/api/search/costpublicPreview the credit cost of a search before running it. No credits deducted.
/api/results/:requestIdpublicFetch a search result publicly — no authentication required. Read-only.
/api/billing/statusGet your credit balance, plan, available packs, and recent transactions.
/api/billing/checkoutCreate a Stripe checkout session to buy a credit pack. Returns a URL to redirect to.
/api/billing/subscribeStart a monthly subscription. Returns a Stripe checkout URL.
/api/billing/portalOpen the Stripe billing portal to manage or cancel your subscription.
/api/billing/redeemRedeem a promo code to add free credits.
/api/admin/statsPlatform-wide stats. Requires X-Admin-Password header.
/api/admin/promoCreate a promo code. Requires X-Admin-Password header.
Credit Pricing
Credit cost is calculated dynamically based on what you search. The formula:
cost = 1 + (sources − 1) + floor((limit − 1) / 10) + floor(activeFilters / 2)Credit packs
Subscriptions
TypeScript SDK
Install the official SDK from npm:
Basic usage
With options
Get search by ID
SDK types
CLI
The CLI lets you run searches and manage your account from the terminal.
Authentication
Run a search
Account management
Available flags
Errors & Rate Limits
All errors return JSON with an error field.
HTTP status codes
Rate limits
POST /api/search/cost before running a search to preview the credit cost. Cached results are free — identical searches within a short window cost 0 credits.