SRCXSRCX Docs

Build web-aware AI apps with SRCX.

SRCX gives developers a fast API to search the web, extract clean content, and generate structured context for LLMs. Start with three endpoints: GET /v1/search, POST /v1/extract, and POST /v1/context.

Create account

Quickstart

1. Get a key

Create and manage API keys from the SRCX console with account-level usage controls.

2. Search

Use /v1/search for ranked web documents powered by SRCX relevance and quality signals.

3. Context

Use /v1/context when you need compact, cited source blocks for AI prompts and RAG pipelines.

Authentication

Send your API key as a Bearer token or X-API-Key.

Authorization: Bearer lmsk_YOUR_API_KEY

Extract API

Extract one URL into markdown and plain text. Every URL passes SSRF checks, robots.txt checks, and cache controls before crawling.

curl -X POST "https://srcx.ai/v1/extract" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","force_refresh":true}'

Context API

Context returns deduplicated, cited source blocks designed for your own model, agent, or RAG workflow.

curl -X POST "https://srcx.ai/v1/context" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"latest OpenAI news","max_sources":5,"max_tokens":3000}'

Credits

ActionCredits
/v1/search1
/v1/extract2
/v1/context5

New accounts receive 500 one-time developer credits. Paid plans refresh monthly: Search Plus $9.9 / 2,000 credits, Pro $19.9 / 5,000 credits, Max $49.9 / 20,000 credits. Add-on pack: $9.9 / 1,500 credits.

Errors

All API responses use the same JSON envelope.

{
  "ok": false,
  "data": null,
  "error": {
    "code": "unauthorized",
    "message": "Invalid API key",
    "details": null
  },
  "request_id": "..."
}