Hello. I am not good with using APIs and HTTP requests.
Company asked to scraped data from Companies House.
I am making some test requests in Python, but I get
{"error":"Invalid Authorization header","type":"ch:service"}
My code is:
payload={}
headers = {'Authorization': 'API my_api_key'}
url_cust = "https://api.company-information.service.gov.uk/company/01234567/"
rep = requests.request("GET", url_cust, headers=headers, data=payload, verify=False)
Can anyone help me out with this? I think the problem is either with my request, or with the way I generated my API key(no restricted IPs specified, no JavaScript domains)