Need CURL request help

I am trying to properly form a CURL command to download batch status data for one day. I’ve tried the following CURL command but get a “The requested page is missing or has an error” response.

curl -H “X-Pvoutput-Apikey: xxxx” -H “X-Pvoutput-SystemId: xxxx” https://pvoutput.org/service/r2/getbatchstatus.jsp?sid1=35?dt=20221214

I’ve double checked and the API is enabled and the API Key and System ID are correct.

I’m new to using CURL (and this API) so any help would be appreciated.

Separate arguments with ´&´ instead of ´?´

And hide your api key as it can be abused by others

It should be -

curl -H “X-Pvoutput-Apikey: xxxx” -H “X-Pvoutput-SystemId: xxxx” “https://pvoutput.org/service/r2/getstatus.jsp?sid1=35&dt=20221214

Thanks. That seemed to do the trick.