Hey Everyone,
I’ve search this forum and most answers on Google for a solution to this but struggling. Based on this guide Python Data Interface to Companies House which is pretty recent and the Company House + resource solutions from on here I cannot get this simple Python script to work.
I’ve registered my app and got a REST API key. My script is below but I always seem to get auth error and cannot get passed it.
r = requests.get('https://api.companieshouse.gov.uk/company/00002065', auth=('xxxxx-xxxxx-xxxxx-
xxx', ''))
print(r.text)
Outcome:
{"error":"Invalid Authorization header","type":"ch:service"}
I have tried a lot of stuff, any help or guidance would be greatly appreciated.