What we’ll build
This tutorial will show you how to find the LinkedIn profile of a company or an individual using Linkup.- Input: Any text prompt that describes the profile you’re after (company, school, person, etc.).
- Process:
- Send the prompt to the Search endpoint with
depthset to"standard". - Ask for
outputTypeof"sourcedAnswer"so we can inspect citations. - Decide whether we’re ≥ 99 % sure.
- Send the prompt to the Search endpoint with
- Output: A single LinkedIn URL or
undefined.
How to build
1
Install the SDK
2
Set Up the Client
Get your API key
Create a Linkup account for free to get your API key.
3
Make the API Call
4
Craft Better Prompts
For best accuracy, include at least two unique signals:
Tip: Keep the “Return only the LinkedIn home‑page URL…” and the 99 % clause; it gives the model explicit, measurable instructions.
5
Batch Lookup
Need to process a list of companies? Here’s a tiny batch helper:
Advanced enhancements
- Faster or deeper search: try
"fast"depth first for maximum speed on simple lookups, or fall back to"deep"when"standard"yieldsundefined. - Multiple entities: adjust the prompt to return an array of URLs when searching generic terms like “Acme Inc”.
- Integrate with CRMs: enrich company records automatically, then store URL + confidence + timestamp.
- Rate limiting: use
asyncio/Promise.allSettledwith a limiter when batch‑processing thousands.
Conclusion
With fewer than 20 lines of code you now have a LinkedIn URL resolver that’s fast, accurate, and configurable. Plug it into sign-up flows, prospecting pipelines, or internal dashboards, and never copy-paste a LinkedIn link again.Need help? Email
support@linkup.so, ping us on Discord, or talk to us.