Web Search
Managed web search and URL extraction via a single MegaNova API key.
MegaNova's managed web search service exposes two complementary endpoints for agents, retrieval pipelines, and research tools:
Natural-language search with built-in fallback, query expansion, and content enrichment
Convert any URL to clean markdown
Today's quota & spend snapshot for the calling user
Mint a signed request group so one prompt's fan-out bills once — Token Plan keys only
A single MegaNova sk-* API key replaces the multiple vendor keys (search engines, content extractors, etc.) that a typical agent stack used to need. One billing relationship, one rate-limit envelope, one auth surface.
Base URL — every request goes to
{API_URL}=https://api.meganova.ai/api/v1, the same base as the rest of the API Reference. Authenticate with your MegaNova API key (sk-...) in theAuthorization: Bearer <key>header.
POST /v1/serverless/searchalso works, as an alias for clients already pointed at an OpenAI-style.../v1base. The alias covers/searchonly —/fetch,/search/usage, and/search/groupare served under/api/v1and return404on/v1.
Quick start (5 minutes)
Get an API key from the user dashboard (account must hold ENGINEER_TIER_2 — auto-granted on first $1+ deposit), then:
# 1. Confirm the endpoint is reachable + your key has the right tier
curl https://api.meganova.ai/api/v1/serverless/search/usage \
-H "Authorization: Bearer sk-..."
# → 200 with quota_daily=50, fetch_quota_daily=50, ... means you're good
# 2. Run your first search
curl -X POST https://api.meganova.ai/api/v1/serverless/search \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{"query":"latest LLM benchmarks 2026","max_results":3}'
# → 200 with results[]; usage.overage_charged_usd=0.0 confirms you're inside free quotaIf both calls return 200, integration is working. If you got 401 check the key, 403 means the user is on the free tier (top up $1+, or use a Token Plan member key, which is entitled regardless of tier), 404 means a path typo.
How to integrate
Most callers fall into one of these patterns:
User asks a question
Single /search call, optionally with enrich=true to get full page text in one round-trip
User pastes a URL ("summarize this")
Single /fetch call
Agent / deep research / RAG ingestion
Throttle yourself before hitting overage
Periodically poll /search/usage and react to quota_remaining / fetch_quota_remaining
/search then /fetch — the typical agent recipe
Server-side only. The
sk-*key is user-level — never embed it in browser-side JavaScript, mobile app bundles, or other client-side code where users can read it. If a key leaks, revoke it immediately at the user dashboard.
Authentication & Tier
Header
Authorization: Bearer <sk-...> — same key used for /v1/chat/completions, /v1/images/generations, etc.
Tier gate
ENGINEER_TIER_2 (auto-granted on first $1+ deposit). Lower tiers receive 403.
Token Plan keys
Entitled regardless of tier. A Libra OS Token Plan member key passes the gate even on the free tier, because the entitlement comes from the subscription rather than from deposit history.
Key scope
Any active key works; no separate "search" scope needed.
Key issuance
Create in the user dashboard under API Keys.
Quota Model
/search and /fetch are tracked as two independent quota dimensions. Burning one does not affect the other.
/fetch
Raw successful calls
50
$0.002 per call
Token Plan keys bill differently
A Libra OS Token Plan member key does not touch the daily free pool at all. Its searches and fetches draw on the subscription's monthly allowance at the same per-unit prices, and past the allowance they follow the plan's opt-in capped Extra Usage rather than the ordinary wallet overage.
Two consequences worth designing around:
The
quota_*fields in/search/usagedescribe the daily pool and will read0for plan traffic. Thetoken_planblock in the same response is what reflects plan consumption.Entitlement is per key, not per account. A subscriber calling with an ordinary key is still billed from the daily pool, so both readings can be non-zero on the same day.
Plan keys should mint a signed request group rather than sending a group id of their own — see that page for why an unsigned one earns nothing.
Both daily quotas reset at UTC 00:00. Overage charges debit credit_balance in real time. Prices above are the current production defaults — they can be tuned without a code change, so always use /search/usage (overage_price_per_query and fetch_overage_price_per_call fields) if you need the live rate at runtime rather than hard-coding.
Failed calls do NOT debit. If we return a
5xx(all upstream sources exhausted) or429(rate-limited) or402(insufficient credit pre-check), nocredit_balancecharge is applied and no quota slot is consumed. Only successful200responses count. Feel free to retry on5xxwithout worrying about double-billing.
Cost scenarios at default pricing
Helps size your integration. All scenarios assume current production defaults: $0.002 per /search prompt-group overage, $0.002 per /fetch call overage.
Personal project / dev integration
≤ 50 search + ≤ 50 fetch / day
$0 (entirely in free tier)
Small SaaS
~300 search + ~200 fetch / day, with X-Request-Group-Id
search 250 × $0.002 × 30 + fetch 150 × $0.002 × 30 = ~$24 / month
Agent / RAG pipeline
~1k search + ~1k fetch / day, with X-Request-Group-Id
950 × $0.002 × 30 + 950 × $0.002 × 30 = ~$114 / month
Same agent without X-Request-Group-Id
search count balloons to ~5× because each fan-out sub-call now counts as its own prompt-group
search 4750 × $0.002 × 30 + fetch 950 × $0.002 × 30 = ~$342 / month
Cost predictability is one reason X-Request-Group-Id exists — see Search Query → fan-out quota dedup. Note X-Request-Group-Id only affects /search cost; /fetch always counts each call regardless.
Operational Characteristics
Typical latency (/search with enrich=true)
3–10 s P50, 15 s P95
Typical latency (/search with enrich=false)
1–3 s P50
/fetch latency
1–5 s
Per-request size cap
max_results ≤ 20, max_bytes ≤ 128 KiB
Per-key concurrency cap
20 (paid tier) / 50 (enterprise tier)
Per-key RPS limit
10 req/s
Best Practices
Always set
X-Request-Group-Idfor user-driven workflows. Even single-call use cases benefit — if your code may later add fan-out, the cost story is already correct. Use a UUIDv4 per user-facing prompt.Set
enrich=falsewhen you only need link previews. Cuts latency by 60–80% and reduces server load. Switch totrueonly when your downstream (e.g. an LLM) actually consumes the page text.Cache
request_idfrom the response. If a result looks wrong, support can userequest_idto investigate.Don't pre-decompose your query. Send the full natural-language question — the service handles query expansion for you.
"latest AI agent frameworks"produces better results than splitting into["latest AI", "agent frameworks", "2026"].Watch
usage.overage_charged_usdin each response — it's0.0while inside the free quota; once non-zero you're paying per call. Use/serverless/search/usageto drive an in-product meter.Treat
5xxas non-fatal. Falling back to your own provider keys (or returning "no results" to the user) is acceptable — and you're not charged.
Errors
All errors follow OpenAI-style format:
400
Invalid body — query missing/too long, depth not in {standard, deep}, max_results out of range
Fix the request shape
401
Missing / invalid / revoked API key
Check Authorization header
402
credit_balance below overage unit price AND daily free quota exhausted
Top up credits or wait for UTC midnight reset
403
User below ENGINEER_TIER_2
Make a $1+ deposit to unlock paid-tier features
429
Per-key in-flight cap or per-second rate limit hit. Response includes Retry-After
Backoff and retry
5xx
All upstream sources exhausted
Caller can fall back to its own search keys; we do not charge overage for 5xx
Support
Bug reports, feature requests, and account / billing questions — submit a ticket from the user dashboard via the Help button in the bottom-right, or email [email protected]. Include the
request_idfrom the response (or from theX-Request-Idresponse header for non-200s) so we can correlate to server-side logs.Status / outages — public status page (link TBD).
Related
Search query —
POST /serverless/searchFetch URL —
POST /serverless/fetchGet search usage —
GET /serverless/search/usage
Last updated