Blog

Can you look up a company by its name? Not with company_id, and here is what to pass instead

No. company_id takes a URL slug, a numeric id or a full URL, never a display name, and there is no company search. Here is where to get a usable identifier.

The Triguna team 4 November 2026

Mock company lookup card where company_id takes a slug, a numeric id or a URL, with the numeric id selected and a display name crossed out, beside the headline "A company name is not an id."

No. GET /v1/companies/details takes company_id, and company_id is one of three things: the URL slug (the segment after /company/), the numeric company id, or the full company page URL. A display name like Northwind Labs is none of those, and there is no company search endpoint that turns a name into an id.

What happens when you pass a name

A display name is not an identifier. The reference documents a free 400 for a malformed one, and the body says exactly what went wrong:

HTTP/1.1 400 Bad Request
X-Credits-Charged: 0
Content-Type: text/plain

invalid identifier: pass the LinkedIn URL slug (the segment after /in/ or /company/), not a display name

A string that passes validation runs as a lookup like any other. If no company has that slug, the answer is a 404, and a 404 bills one credit because the search runs either way. If some company does have that slug, you get that company, which is not necessarily the one you meant. Neither outcome is a name search.

What each input does

You passExample shapeResult
Display nameNorthwind Labsnot an identifier
URL slugnorthwind-labsthe company, 1 credit
Numeric id2018234the company, 1 credit
Full company URLhttps://www.linkedin.com/company/northwind-labs/the company, 1 credit
Company website domainnorthwindlabs.comnot an identifier

The last row catches people. company_url in a company record is the company’s own website, but the lookup does not run in that direction. A domain is something the record gives you, not something you can look it up by.

Where to get a usable identifier

From a person record. Every group in experience[] carries company_id, the numeric id of that employer when the profile links one. This is the most common path: resolve the person with the Person API, then pass experience[0].company_id to the Company API.

curl -H "ApiKey: $TRIGUNA_API_KEY" \
  "https://api.triguna.ai/v1/companies/details?company_id=2018234"

From a URL you already hold. CRM records, form fields and spreadsheets often carry the company page URL. Pass it whole, or take the slug after /company/.

FAQ

Is there a company search endpoint? No. There is no people search or company search, and posts/search searches posts, not organizations. There is no public people-search API explains the same boundary for people.

Does a failed name lookup cost a credit? A rejected identifier is a free 400. A lookup that runs and finds nothing is a 404 and costs one credit, so do not retry it.

Can I pass the company name to an agent instead? An agent connected through the MCP server calls the same endpoint with the same rules, so it needs an identifier too.

Next

company-recordsidentifierserrorsbuyers-guide

Start with one request

Free credits on signup, no card required. Usage-based pricing after that.