Structured JSON
This guide demonstrates how to create prompts that return precisely structured JSON responses from the LLM Web Scraper API. These prompts are ideal when you need consistent, predictable data structures for integration with other systems.
Key Principles for Structured Prompts
Explicitly Define Keys
Specify exact key names
Define expected data types
Indicate required vs optional fields
Specify Nesting Structure
Define object hierarchies
Specify array structures
Indicate relationships between objects
Include Validation Rules
Specify allowed values
Define number ranges
Indicate format requirements
E-commerce Examples
Product Details Extraction
Example Response:
Multiple Product Comparison
Example Response:
Article Examples
Structured Article Analysis
Example Response:
FAQ Page Structured Extraction
Example Response:
Last updated
Was this helpful?