Actions9
Get Structured Data
AI-generatedSummary
Fetches structured JSON for a public page on a site supported by WebScraping.AI, such as YouTube, TikTok, X, LinkedIn, Instagram, or Reddit. Each request costs 15 credits; the API key is supplied through the required WebScraping.AI credentials.
Inputs
- URL (required) — Normal URL of a public page on a supported site. Unsupported URLs or page types return an uncharged 400 error; use AI Extract Fields for other sites.
- Country — Two-letter country code for the proxy used to fetch the page; defaults to us.
- Transcript — When enabled, also requests the transcript for YouTube videos. The response has data.transcript set to null if matching captions are unavailable; a transcript-fetch failure fails the request with an uncharged 500 error.
- Transcript Language — Caption language to request when Transcript is enabled for YouTube. Without a language, English is preferred, then the first available track. If no captions match, data.transcript is null.
- Extra Parameters — Optional name/value query parameters for site-specific API options. Each name can be used once; parameters cannot override the URL, API key, country, transcript, or transcript language fields.
Output shape
One JSON output item per input item, containing the API response.
JSON responses are returned directly as the output item's JSON. Non-JSON responses are wrapped in a data field; invalid JSON with a JSON content type is wrapped in raw. With Continue On Fail enabled, request errors are returned in an error field.