{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapewright-app/json-schema/scrapewright-app-extract-request-schema.json",
  "title": "ExtractRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrapewright-app-openapi.yml#/components/schemas/ExtractRequest",
  "properties": {
    "url": {
      "type": "string",
      "title": "Url"
    },
    "fields": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fields",
      "description": "Custom schema, e.g. ['title', 'salary:number', 'tags:list']. Omit for the built-in product schema."
    },
    "js": {
      "type": "boolean",
      "title": "Js",
      "description": "Render in a headless browser.",
      "default": false
    },
    "retry": {
      "type": "boolean",
      "title": "Retry",
      "description": "Try compiling a site that failed before. A site nobody could read is remembered for a week and answered without calling the model, so a daily refresh of a dead link costs nothing; this asks anyway.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "url"
  ]
}