Generate JSON
Fetches URL content, extracts data, and transforms it using AI based on custom instructions. Use this to generate new content, summaries, or restructured data.
Authorization
BearerAuth Bearer token for API authentication
In: header
Request Body
application/json
Request body
Fetch effort level controlling speed vs. capability tradeoff. "min": fastest, no fallback (1-5s). "standard": balanced with enhanced reliability (default, 3-15s). "max": full browser rendering for JS-heavy sites (15-60s).
"standard"Value in
- "min"
- "standard"
- "max"
Optional geotargeting parameters for proxy requests
Instructions describing how to transform the data. Maximum 20,000 characters.
length <= 20000JSON schema defining the structure of the transformed output
Bypass cache and force fresh data retrieval
falseURL to fetch content from
uriResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/generate/json" \ -H "Content-Type: application/json" \ -d '{ "instructions": "For each story, categorize it (tech/business/science/other) and write a one-sentence summary describing the story in simple terms.", "json_schema": { "properties": { "summaries": { "items": { "properties": { "category": { "description": "Story category (tech/business/science/etc)", "type": "string" }, "summary": { "description": "One-sentence summary of the story", "type": "string" }, "title": { "description": "Story title", "type": "string" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "url": "https://news.ycombinator.com" }'{}Extract Markdown POST
Fetches a URL and converts its HTML content to clean Markdown format with optional metadata extraction
Research POST
Execute AI-powered research queries that search the web, analyze sources, and synthesize comprehensive answers. This endpoint **always streams** responses using Server-Sent Events (SSE). **Streaming Response:** - All responses are streamed using Server-Sent Events (`text/event-stream`) - Real-time progress updates as research progresses through phases **Research Modes:** - `fast` - Quick answers with minimal web searches (default) - `balanced` - Standard research with multiple iterations **Use Cases:** - Answering complex questions with cited sources - Synthesizing information from multiple web sources - Research reports on specific topics - Fact-checking and verification tasks