Content
POST

ContentEntity
Request
An array of URLs to extract elements from.
- Minimum of
1 URLper request. - Maximum of
10 URLsper request.
An array specifying the desired content formats to be returned for each URL.
- Supported formats are
htmlandmarkdown. - You can request multiple formats in a single request.
markdown.An optional flag to exclude headers from the extracted content.
- Defaults to
false.
<header> in HTML.An optional flag to exclude footers from the extracted content.
- Defaults to
false.
<footer> in HTML.An optional array of CSS selectors specifying elements to exclude from the extracted content.
- Supports standard CSS selector syntax including:
- Class selectors (e.g.,
.header,.sidebar) - ID selectors (e.g.,
#someid) - Tag selectors (e.g.,
footer,nav) - Attribute selectors (e.g.,
[data-test="value"]) - Combined selectors (e.g.,
nav.main-navigation) - Multiple selectors (e.g.,
.sidebar, .ads)
- Class selectors (e.g.,
An optional object to configure caching behavior for the request. By default, caching is enabled with a TTL of 120 seconds. You can customize these settings by providing the
cache object.Response
The response contains the extracted content for each requested URL in the specified formats.Indicates whether the response was served from cache.
The time in seconds until the cached response expires. Default is 7200
seconds (2 hours).
A mapping of each URL to its extracted content. Each URL maps to another object where keys are content formats and values are the corresponding extracted content.