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.
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
Search API
Use Search for high-quality source discovery. SRCX ranking adapts to entity research, freshness, how-to guidance, comparisons, and multilingual queries.
curl -H "Authorization: Bearer $API_KEY" \ "https://srcx.ai/v1/search?q=飞书是什么&limit=5"
| Parameter | Description |
|---|---|
q | Query text, 1-500 chars. |
limit | 1-20 results. |
language | Optional language filter. |
freshness | day, week, month, year. |
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
| Action | Credits |
|---|---|
/v1/search | 1 |
/v1/extract | 2 |
/v1/context | 5 |
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": "..."
}