Indiana 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 Indiana.
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
Okay. Hello. I’m toward enhancing them from cobalt intelligence today in just a few minutes, we’re going to go through how to use the secretary of state API to access business data from Indiana. So we have we’re here. We have an API. This is if you need an API key, come over here. You click this button.
You sign in, you’ll get a free API key and you can try. Um, these are the states we support right now. Today. We’re going to talk about Indiana. So this is like the secretary of state business search. You see, you can search over here for Garcia. Oh, oh, capture that’s right like that. And I have the example over here.
So bam a, I see a peanut LLC shirt and we’ll go like this. I N. And then we’ll say MPN, all what’s going on here. You can start now. Indiana has a capture as you saw. So it takes a little bit longer for it to work. It’s going to take, um, normally 45 to 60 seconds. This is kind of what I’m using. That when I’m using the SDK, we have a free SDK in JavaScript.
You import the SOS API. Keyword, whatever import this module. And then you call, give business details, await S Y CPA dot kid business details. You pass in the business name and the state state can be abbreviated. Um, like I am like, I just did, or it can be lowercase Campbell case, and then it’ll return the details.
Now you don’t have to, you know, have to use the associate API or the SDK that’s right here is here right here. I’ll put in there. Danielle’s pretty fast. Um, and there’s all the data. So it was this one, check it there. See
nice. Right. And you can also search by SOS ID. So this business idea right here, you can come over here again and use the SDK, do it. You can type it right there. And I N then run it now with the SDK. It’s similar, exact same thing here. The import SOS API, initialize it with your API key. And then you say, wait
and you can get details right here. So that’s how you used it with the SDK. If you don’t want to use the se. Because this has a capture. It’s a little more complicated. You have to do a retry ID. I have a video on how to use the S had to do the API with long polling or reference it there. And the comments you can have a better look, but anyway, this is how it works.
You’re going to call directly to the URL API gateway dot cobalt intelligence.com. SLAs search slash search query in the search queries, going to be your business name. You’re gonna want to encode it just in case there’s any ampersands or anything like that. That’ll mess up your query parameter, and then you’re going to want to put in the state there and you put your API key in the header in the X dash API desk, key header.
And then because it’s long polling, you’ll get a retry ID back. And then you just have to keep sending back with that retry ID and it looked like this. It was the Senate again, that you are. And they’re the re-trade to you. And then you just try this, every, whatever X amount of seconds by whatever. So I, we’re doing 10 seconds right here and they just keep trying and keep trying and keep trying until it’s ready.
And then once it’s ready, I’ll return the data with that ID. So that’s long polling and that’s Indiana. There we go. So if you want to do it yourself, you can do that thing with SOS ID, or you can do it with you. I have the same thing, so it was bad. So sad. Just passing that SOS ID parameter. So there it is.
We have an STK for JavaScript. If you want an API keys, come to our cobalt intelligence.com/secretary of state. Get API key sign-in and you’ll get an API key and it comes with a free one as a hundred for use of the month. And that’s it. Thanks.