Montana Secretary of State business data via API

The Cobalt Intelligence Secretary of State API allows you to get business data all via API!

Today we showcase how to get business data from Montana.

Reach out for an API key.

Example of calling by business name:

const url = `https://apigateway.cobaltintelligence.com/search?searchQuery=${encodeURIComponent(businessName)}&state=${state}`;
 
const axiosResponse = await axios.get(url, { headers: { 'x-api-key': this.apiKey } }); 

Example of calling by entity/secretary of state id:

const url = `https://apigateway.cobaltintelligence.com/search?sosId=${encodeURIComponent(sosId)}&state=${state}`; 

const axiosResponse = await axios.get(url, { headers: { 'x-api-key': this.apiKey } });

Test and get API key here – https://cobaltintelligence.com/secretary-of-state

SDK and examples here – https://github.com/cobalt-intelligence/cobalt-int-sdk

Transcript

Good morning. Hello? Hello. We’re working on the secretary of state API today. We’re going to do a little walkthrough of how to use the secretary of state API. If you are scraping data from the state of Montana. So he would go, we have our API. If you want an API key, you hit this little button cobalt intelligence.com/.

Secretary of state, then you go to hit kit, API key you’ll sign in, we charge per request, only pay for what you use. That’s how we’re doing it right now. And you come over here and you can test it out, hit some business or whatever search. And here you get the business data. Now, today we’re winning Montana.

So this is this beautiful business Montana. Let’s just pick a range thing or the pasta. I normally do pizza to them too. And pasta. I want an active one right there as a pasta business. I’m going to grab this. Pasta deci Nucci, whatever this is, put it right there. And we’re going to say empty. You can use an abbreviation or you can do the full state name.

Now I’m using this with the SDK. We have a JavaScript SDK it’s free. Come over here. You can clone it. You can install it and then use it. When you use the SDK, you just import SOS API. You initialize it with your API. And then you call it a wait SOS, API to get business details. This will go. Montana’s pretty fast.

It’s going right now. And here we go, Montana. Come on. Okay. It’s going to be done in a second. There we go. Done. There’s ideal. And we’re looking at Duchess tick over here. Make sure we’re things are looking good over here. Look at that. We’ve got our agent name. We have our business type domestic limited liability company.

We’ve got a filing number right here. In fact, let’s search by that filing. Then we’ll come over here. You can also search by what I class with ID. Finally, number charter, number different for every state into the ID. Now you can also search by abbreviation, which is what I’m doing here. So SOS, I do same thing.

You initially, you import that you create a new instance of it, and then you say, oh wait, API, API dot, get business details. Bassett. Passenger SOS, Indiana state. Bam. Look, there we go. Now let’s say you don’t want to use the SDK cause you hate JavaScript for some monstrous reason, or we would probably make STKs eventually for other languages, but you can call directly right here.

We just call API gateway dot cobalt and tells us.com/search search query. And then you put in your business name. Good to encode it just in case there’s ampersands in there. And, um, you ignore this, but then you just call over here. You pass in your API key and the headers like this X API key, and then you send it back.

Now, every state now has a chance to return it. We tried the, this is just in case it takes longer than you expect. And so this retrade to use your token to come back and say, Hey, is this ready yet? Is this ready yet? So if you do not use the SDK, you have to handle this manually. Two minutes, 50 seconds.

That’s Montana. Come get an API key tray. Cobalt intelligence secretary CDBA. Thank you.


Hey there. Want to be friends?

I’ll be straight with you. I’m going to want to show off my web scraping genius. But I want to hear about your web scraping troubles and successes as well.

And I like you. So I won’t be one of those weird friends who is always calling. What do you say?