SchemaGenerator

Generate or modify a JSON schema based on a search query

Generate a refined search prompt and a structured JSON schema for analyzing search results. Optionally modify an existing schema to better fit the current search query.

post/v1/generate_schema

Request

  • Base URL
    https://api.scrapegraphai.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.scrapegraphai.com/v1/generate_schema
  • Auth
    none declared

Request body

user_promptstring required

The user's search query to be refined

existing_schemaobject nullable

Optional existing JSON schema to modify/extend

Response

Successful Response

request_idstring uuid required
statusstring required
user_promptstring required
refined_promptstring required

The refined search query

generated_schemaobject required

The generated JSON schema

errorstring nullable

Changes

No recorded changes to this operation across all 25 revisions of this API.