WritersLogic Verifiable AI Agent Hub Web Search API
The Web Search API from WritersLogic Verifiable AI Agent Hub — 1 operation(s) for web search.
The Web Search API from WritersLogic Verifiable AI Agent Hub — 1 operation(s) for web search.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/writerslogic-com:writerslogic-com-web-search-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: WritersLogic Verifiable AI Agent Hub Web Search API
version: 2.0.0
description: Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.
contact:
name: WritersLogic
url: https://writerslogic.com/agents
email: agents@writerslogic.com
servers:
- url: https://agents.writerslogic.com
tags:
- name: Web Search
paths:
/api/v1/web-search:
post:
operationId: web_search
summary: 'Web search: licensed Exa/Brave results with snippets'
description: 'Runs a web search through a licensed search API (Exa or Brave) and returns up to 10 ranked results with title, URL, snippet, highlights and published date, for agents that need current links. Does not scrape search engines, does not fetch or summarize the result pages (use page-contents for that), and does not use a model.
Price: 0.01 USDC on Base (x402).'
x-x402-price-usdc: '0.01'
x-x402-amount: '10000'
x-payment-info:
protocols:
- x402
price:
mode: fixed
currency: USD
amount: '0.01'
x-audience: developer
x-sample-url: https://agents.writerslogic.com/api/v1/samples/web-search
security:
- x402: []
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- query
properties:
query:
type: string
minLength: 1
maxLength: 400
description: Search query.
num_results:
type: integer
minimum: 1
maximum: 10
default: 5
provider:
type: string
enum:
- auto
- exa
- brave
default: auto
description: auto uses Exa when configured, else Brave.
include_text:
type: boolean
default: false
description: Ask the provider for highlights/extra snippet text per result.
site:
type: string
maxLength: 253
description: Restrict to a domain, for example example.com.
date_from:
type: string
maxLength: 10
description: Only results published on or after this date, YYYY-MM-DD.
example:
query: x402 payment protocol HTTP 402
num_results: 5
include_text: true
responses:
'200':
description: Paid result with provenance
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
provider:
type: string
enum:
- exa
- brave
query:
type: string
query_sha256:
type: string
results:
type: array
items:
type: object
properties:
rank:
type: integer
title:
type: string
url:
type: string
snippet:
type: string
description: May be empty.
highlights:
type: array
items:
type: string
published_date:
anyOf:
- type: string
description: Provider value, or null.
- type: 'null'
snippet_sha256:
type: string
description: sha256 of snippet and highlights joined by newlines.
result_count:
type: integer
fetched_at:
type: string
limits:
type: object
properties:
note:
type: string
_provenance:
type: object
description: C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance
required:
- data
- _provenance
'400':
description: Invalid request (no payment consumed)
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
'401':
description: Invalid X-API-KEY
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
'402':
description: Payment required or invalid
content:
application/json:
schema:
type: object
description: x402 v2 PaymentRequired (also base64 in the PAYMENT-REQUIRED header)
properties:
x402Version:
type: integer
error:
type: string
code:
type: string
resource:
type: object
accepts:
type: array
items:
type: object
extensions:
type: object
'502':
description: Upstream failure; the payment is released or not settled
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
tags:
- Web Search
components:
securitySchemes:
x402:
type: apiKey
in: header
name: PAYMENT-SIGNATURE
description: x402 v2 payment payload (base64) sent after a 402 challenge
apiKey:
type: apiKey
in: header
name: X-API-KEY