Generate

Generate JSON

POST
/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
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Request Body

application/json

Request body

effort?string

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).

Default"standard"

Value in

  • "min"
  • "standard"
  • "max"
geo_target?

Optional geotargeting parameters for proxy requests

instructions*string

Instructions describing how to transform the data. Maximum 20,000 characters.

Lengthlength <= 20000
json_schema*

JSON schema defining the structure of the transformed output

nocache?boolean

Bypass cache and force fresh data retrieval

Defaultfalse
url*string

URL to fetch content from

Formaturi

Response 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"  }'
{}