Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.
Full LLM thinking from the 4-phase benchmark pipeline.
```json
{
"service_type": "rest_api",
"base_url": "https://sofya.co",
"auth_method": "api_key_header",
"auth_config": {"header": "Authorization", "prefix": "Bearer", "alternate_header": "X-API-Key"},
"endpoints": [
{
"path": "/v1/search",
"method": "POST",
"purpose": "Web search returning extracted page content or snippets, optional AI answer synthesis",
"params": {"query": {"type": "string", "required": true}, "include_answer": {"type": "boolean", "required": false}},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/fetch",
"method": "POST",
"purpose": "Fetch up to 10 URLs (web pages, PDF, DOCX, etc.) and return clean markdown",
"params": {"urls": {"type": "array", "required": true}, "include_raw_html": {"type": "boolean", "required": false}},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/extract",
"method": "POST",
"purpose": "Fetch a URL and answer a prompt about it using AI, returning a text answer",
"params": {"url": {"type": "string", "required": true}, "prompt": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/research",
"method": "POST",
"purpose": "Decompose a query, search multiple sources in parallel, synthesize a cited research report",
"params": {"query": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/status",
"method": "GET",
"purpose": "Public endpoint health and latency; no auth required",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/updates",
"method": "GET",
"purpose": "Public product changelog, newest first; no auth required",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/agent/signup",
"method": "POST",
"purpose": "Start agent sign-up flow; returns verification URI and user code for the user to approve",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/agent/token",
"method": "POST",
"purpose": "Poll for API key after agent signup; returns key once user approves",
"params": {"claim_token": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/billing/balance",
"method": "GET",
"purpose": "Get credits left on account and this key's monthly cap",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/billing/topup",
"method": "POST",
"purpose": "Create a Stripe Checkout link for buying credits",
"params": {"amount_usd": {"type": "integer", "required": false}},
"response_format": "json",
"is_primary": false
}
],
"pricing_model": {
"type": "per_request",
"details": {
"currency": "USD",
"cost_per_credit": 0.0025,
"search_snippets_credits": 1,
"search_content_credits": 2,
"search_include_answer_credits_extra": 2,
"fetch_credits_per_url": 1,
"extract_credits": 10,
"research_credits": 50,
"failed_requests_charged": false,
"min_topup_usd": 10,
"purchased_credits_expire": false
},
"free_tier": {"credits": 2000, "period": "month", "details": "GitHub accounts over 1 year old; email sign-ups start at 0"},
"paid_tiers": []
},
"rate_limits": {"rpm": null, "rps": 30, "tpm": null, "daily": null, "concurrent": null},
"capabilities": [
"web_search",
"content_fetch",
"document_parsing",
"ai_extraction",
"deep_research",
"markdown_output",
"credits_billing",
"agent_signup",
"mcp_server"
],
"agent_readiness": {
"supports_x402": false,
"supports_streaming": false,
"has_sandbox": false,
"sdks": [],
"agent_auth_methods": ["api_key", "oauth2_client_credentials"]
}
}
```{
"tests": [
{
"name": "public_status_health",
"endpoint": "/v1/status",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns public status/health JSON without auth",
"metrics": ["latency", "status_code"],
"validation": {"field": "status", "type": "any"}
},
{
"name": "public_updates_changelog",
"endpoint": "/v1/updates",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns product changelog, newest first",
"metrics": ["latency", "status_code"],
"validation": {"field": "updates", "type": "any"}
},
{
"name": "search_basic_snippets",
"endpoint": "/v1/search",
"method": "POST",
"headers": {"Authorization": "Bearer {{api_key}}", "Content-Type": "application/json"},
"payload": {"query": "Python asyncio tutorial"},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns search results with extracted content/snippets",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "results", "type": "array", "min_length": 1}
},
{
"name": "search_with_answer",
"endpoint": "/v1/search",
"method": "POST",
"headers": {"Authorization": "Bearer {{api_key}}", "Content-Type": "application/json"},
"payload": {"query": "What is the latest stable Python version?", "include_answer": true},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns search results plus synthesized AI answer",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "answer", "type": "string"}
},
{
"name": "search_missing_query_validation",
"endpoint": "/v1/search",
"method": "POST",
"headers": {"Authorization": "Bearer {{api_key}}", "Content-Type": "application/json"},
"payload": {},
"expected_status": 422,
"intent": "validation",
"expected_behavior": "Rejects missing required query field with structured error",
"metrics": ["status_code"],
"validation": {"field": "detail", "type": "array"}
},
{
"name": "search_missing_auth",
"endpoint": "/v1/search",
"method": "POST",
"headers": {"Content-Type": "application/json"},
"payload": {"query": "test"},
"expected_status": 401,
"intent": "auth",
"expected_behavior": "Rejects request without API key",
"metrics": ["status_code"],
"validation": {"field": "detail", "type": "any"}
},
{
"name": "fetch_single_url",
"endpoint": "/v1/fetch",
"method": "POST",
"headers": {"Authorization": "Bearer {{api_key}}", "Content-Type": "application/json"},
"payload": {"urls": ["https://example.com"]},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns markdown content for the URL",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "results", "type": "array", "min_length": 1}
},
{
"name": "fetch_empty_urls_validation",
"endpoint": "/v1/fetch",
"method": "POST",
"headers": {"Authorization": "Bearer {{api_key}}", "Content-Type": "application/json"},
"payload": {"urls": []},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects empty urls list",
"metrics": ["status_code"],
"validation": {"field": "detail", "type": "any"}
},
{
"name": "extract_pricing_from_page",
"endpoint": "/v1/extract",
"method": "POST",
"headers": {"Authorization": "Bearer {{api_key}}", "Content-Type": "application/json"},
"payload": {"url": "https://example.com", "prompt": "List the main headings and sections on this page."},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns AI-extracted text answer plus usage token counts",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "content", "type": "string"}
},
{
"name": "extract_missing_prompt_validation",
"endpoint": "/v1/extract",
"method": "POST",
"headers": {"Authorization": "Bearer {{api_key}}", "Content-Type": "application/json"},
"payload": {"url": "https://example.com"},
"expected_status": 422,
"intent": "validation",
"expected_behavior": "Rejects missing required prompt field",
"metrics": ["status_code"],
"validation": {"field": "detail", "type": "array"}
},
{
"name": "research_query",
"endpoint": "/v1/research",
"method": "POST",
"headers": {"Authorization": "Bearer {{api_key}}", "Content-Type": "application/json"},
"payload": {"query": "Brief overview of the Mod2/12 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| public_status_health | GET /v1/status | 200 | 22ms |
| public_updates_changelog | GET /v1/updates | 200 | 12ms |
| search_basic_snippets | POST /v1/search | 401 | 9ms |
| search_with_answer | POST /v1/search | 401 | 8ms |
| search_missing_query_validation | POST /v1/search | 422 | 7ms |
| search_missing_auth | POST /v1/search | 401 | 21ms |
| fetch_single_url | POST /v1/fetch | 401 | 18ms |
| fetch_empty_urls_validation | POST /v1/fetch | 400 | 14ms |
| extract_pricing_from_page | POST /v1/extract | 401 | 17ms |
| extract_missing_prompt_validation | POST /v1/extract | 422 | 24ms |
{"model": "openai", "data": {"overall": 62, "dimensions": {"token_efficiency": 7.0, "first_try_success": 6.0, "response_parseability": 9.0, "error_clarity": 9.0, "doc_quality": 8.0, "auth_simplicity": 8.0, "latency": 10.0, "consistency": 9.0}, "pricing_normalized": {"cost_per_1k_requests": 2.5, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": 2000, "estimated_monthly_cost_light": 0.0, "estimated_monthly_cost_heavy": 7500.0}, "issues": [{"severity": "medium", "detail": "Several tests failed due to missing or invalid API key.", "endpoint": "/v1/search"}, {"severity": "low", "detail": "Auth errors occurred in tests designed for happy path scenarios, indicating potential setup issues with test credentials.", "endpoint": "/v1/extract"}], "recommendations": ["Double-check that API keys used in tests are correct and have the necessary permissions enabled.", "Consider enhancing the documentation to clearly illustrate the authorization process with examples.", "Ensure the test configuration includes valid and scoped API keys for endpoints that require authentication to improve the first_try_success rate."]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowlrank.com/service/sofya">
<img src="https://prowlrank.com/badge/sofya.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard