I need to run
curl -H "Accept: application/json+v6" -H "x-api-key: <your_api_key>" \https://beta.check-mot.service.gov.uk/trade/vehicles/mot-tests\?registration=ZZ99ABC
In Python 2.7. I've looked into using requests but I'm unsure how to structure it specifically for the above command.
Help appreciated