Hi everyone,
Need your help, please.
So I´ve got a spreadsheet with several companies’ names and I´ll need to find their companies’ number.
creating an API that automatically searches from my list and then retrieves companies number is the solution?
already tried with python, but seems that the code isn´t correct
I´ve got a spreadsheet with several companies’ names and I´ll need to find their companies’ number.
If you’re having trouble with code and want to stay in the spreadsheet you could download the bulk Companies House data files and process those to get company names from numbers.
Alternatively, search this forum, you’ll find other people wanting to accomplish the same goal e.g. on this thread:
I believe there are some spreadsheet-based tools / plugins for Companies House. I don’t have details though, sorry - try search.
If neither of those approaches helps, you’ll need to explain the detail. So that would be:
What it is you’re doing e.g. what system / what code you’re using (simplified if possible)
What part of Companies House API you’re accessing
The data you send
The errors / data you get back.
Don’t put any of your API key details / passwords in your post though!
… where mycompanyname is the thing you’re searching for. And of course as it’s a URL parameter you will need to appropriately encode this (URL encode) - although depending on the tool you’re using to communicate with the API that might be done automatically, and normally there are mechanisms available to do that for you (e.g. in javascript encodeURIComponent).
… which brings us to the second answer which is “it depends” - there will be differences between different languages, tools and environments for exactly how you specify and request a URL (pretty much all will allow you just to put the whole thing in as text, if you encode parameters yourself though).