Extract Structured JSON from Webpage Extract structured JSON data from any webpage using AI-powered content analysis. Provide a URL and a prompt describing what data to extract, and get clean structured JSON back.Method: POST Path: /v1/websitetools/url2json Demo: https://api.gugudata.io/v1/websitetools/url2json/demoRequest Parameters:
appkey (string, required): Obtained after payment
url (string, required): Target webpage URL to extract data from (must be HTTP or HTTPS)
prompt (string, required): Prompt describing what data to extract from the webpage (e.g., 'Extract all product names and prices')
Response Fields Count: 7 Response Field Examples:
dataStatus: Response status information
dataStatus.statusCode: HTTP status code
dataStatus.status: Response status
dataStatus.statusDescription: Human-readable status message
dataStatus.responseDateTime: Server response timestamp
dataStatus.dataTotalCount: Total number of records returned
data: Structured JSON data extracted from the webpage based on the prompt. The structure varies depending on the prompt and webpage content.
Key Features:
AI-powered structured data extraction from any webpage
Custom prompt-based extraction for flexible data schemas
Returns clean, structured JSON ready for programmatic use
Supports any publicly accessible HTTP/HTTPS webpage
Handles JavaScript-rendered pages via headless browser
{"url":"https://news.ycombinator.com","prompt":"Extract the top 3 article titles and URLs"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request POST 'https://api.gugudata.io/v1/websitetools/url2json?appkey=sk-******' \
--header'Content-Type: application/json' \
--data-raw'{"url":"https://news.ycombinator.com","prompt":"Extract the top 3 article titles and URLs"}'