Alaska 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 Alaska.

Reach out for an API key.

Example of calling by business name:

const url = `${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 = `${encodeURIComponent(sosId)}&state=${state}`; 

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

Test and get API key here –

SDK and examples here –


Jordan Hanson here from cobalt intelligence, talking about how to use the secretary of state API to search for businesses and Alaska. Today. We’re going to come over here. This is Alaska right here. We’re gonna search by, uh, and we’re gonna start with the SDK. That’s what I’m showing here on the right. Um, so I’m gonna go a business name.

There’s one Chrissy enterprises, LLC. And then I put, so this is how it works. This is if you use an SDK, you’re going to import SOS P. You’re going to use your API key that you get from me by email or soon you can sign up on our website, you’ll just sign up and let’s get you an API key. And then you call it, get business details and you pass in a business name and a state, and then it will return the details right here.

So let’s try that. We’ve had C we have a business name and our state like this start, we hope we pray. This works. Because now when you’re on video, it’s always, you know, that your code works a lot less when you’re streaming, right. When you’re making a recording of it. But I’m pretty confident. Alaska has a pretty good pass rate.

In fact, it has a hundred percent pass rate in the last 20 tests. Bam, that’s pretty good. Now you can also search directly by entity ID or by search by SOS ID. We can do that right here. Take this there. And that looks very similar. Same thing, initialize the API SOS API. And then you just say, get business details by SOS ID, passing, your entity ID and L and your state, and it will then you run it.

So why this runs, I’m going to go over and show how that SOS API works. You come over here. If you want to call it directly, uh, that’s fine. You don’t have to use the SDK. The SDK helps for things like long polling, because occasionally there’s captures. Does that work? Occasionally this captures, which means that it’s a lot.

Yeah. It takes a lot longer up to three minutes sometimes for like Delaware, these businesses, these states take a long time and that’s too long for HTTP request. So we have E long polling in there and the SDK handles all of that. If you want to do it yourself, that’s fine. Um, if you’re not using JavaScript also, you would have to do it for yourself.

Cause we only have JavaScript Vista key right now, but the URL right here, you just call this directly API gateway called wealth And then you search query and you want to encode you your business. And cause occasionally there’s ampersands in there, which would break a queer tune parameter and you passing your state, pass your API key and the headers, then you can also do with SSAB same thing, except for our use.

You’ll pass an SOS ID as a query string parameter. Now we sell this or here. See, we explain how this works. Actually we decided that the SDK here, but we do have documentation on this. Um, so go ahead. Use it. And, uh, that’s it. That’s how we use Alaska with that secretary CVPA.