Dissolved company search returns bad request

Hello, I can search non-dissolved companies with no problem but when I use the dissolved-search URL I get bad request. Could you help me understand what I am doing wrong please?
In my terminal this is what I get:

curl -X GET -u  my_api_key: https://api.company-information.service.gov.uk/dissolved-search/companies?q=05322647&search_type=alphabetical
>>> {"timestamp":"2023-01-04T21:12:42.526+00:00","status":400,"error":"Bad Request","path":"/dissolved-search/companies"}

I am looking at this doc page and I don’t see the problem with my request: Companies House Public Data API: Search for a dissolved company
Thank you for your help

If that can help anyone in the future, one work around is call curl get for the url https://find-and-update.company-information.service.gov.uk/dissolved-search/get-results?companyName=company_name&changedName=name-at-dissolution which returns the full web page and then parse the relevant information.

I have just run
curl -u key: ‘https://api.companieshouse.gov.uk/dissolved-search/companies?q=qwerty&search_type=alphabetical
and that returns data.
Double check your API keys are the correct type and valid.

1 Like

Thanks a lot for your help. Your solution works for me. I see that you are using a different URL than the one in the documentation (Companies House Public Data API: Search for a dissolved company). In any case, it’s working now. Hopefully it can also help someone else in the future.