I've tried examples from the documentation page, but got errors (like invalid url, which was in fact valid) giving me no insight, what i'm doing wrong.
Could somebody give me an example for a batch query in the cURL flavour?
Tried: I was tried it on the following way:
- Copied an example from documentation page into an online cURL tool,
- added
curl --requestbefor beginningPOST, - added my API key,
- added domains to places, where they imo should be.
But, as result i've got not such response, as stated in the documentation, but status 404 and the source code of the first website i queried - my request and response header you can see at the sreenshot:

Here's an example of using batch requests with cURL:
The response looks like this:
Edit: I've added a method to
CrUXApiUtilto handle all of the batch logistics for you in JS applications.Example input:
Example output: