Reference for the Valyu Contents endpoint that extracts clean, structured content from any URL via POST /v1/contents.
Your Valyu API key. Get one at platform.valyu.ai
List of URLs to process (maximum 10 URLs per request)
1 - 10 elements[
"https://example.com/article1",
"https://example.com/article2"
]Content length configuration:
short, medium, large, max "medium"
Maximum cost limit in dollars for the entire request. If not specified, defaults to 2x the estimated cost.
x >= 00.1
Processing effort level:
normal, high, auto "normal"
Request page screenshots. When true, each result will include a screenshot_url field containing a pre-signed URL to a screenshot image of the page. Screenshots are captured during page rendering.
false
Toggle AI processing (false is default)
true
All URLs processed successfully
Whether the request was successful
true
Error message if any issues occurred
null
Unique transaction ID for tracking and support
"tx_12345678-1234-1234-1234-123456789abc"
Array of processed content results
Number of URLs submitted in the request
1 <= x <= 102
Number of URLs successfully processed
x >= 02
Number of URLs that failed processing
x >= 00
Actual cost charged (only for successful URLs)
x >= 00.004
Total characters across all processed results
x >= 025680