LinkedIn通过API搜索用户公开资料URL遇权限拒绝报错求解决
How to Get a LinkedIn User's Public Profile URL When People Search API is Denied
Hey there, let's break down why you're hitting that error and what options you have to get what you need:
First, Why You're Seeing "Access to people search denied"
- LinkedIn API v1 is completely deprecated: The endpoint you're using (
https://api.linkedin.com/v1/people-search:...) was retired years ago, so it's no longer functional at all. - Strict API permissions for people search: Even with the current v2 API, LinkedIn restricts people search capabilities almost entirely to enterprise-level partners (like Talent Solutions or Sales Navigator customers) or approved use cases. Regular third-party apps can't access this functionality anymore to protect user privacy.
Practical Alternatives to Get Public Profile URLs
Since direct API-based people search isn't feasible for most developers, here are workable options:
- Ask users to share their public profile URL directly: This is the simplest and most reliable approach. If you're building an app where users connect their LinkedIn profiles, just prompt them to paste their public URL (e.g.,
https://linkedin.com/in/johndoe123). You don't need any API calls for this, and it avoids all permission issues. - Leverage LinkedIn's public profile structure (if you have the username): LinkedIn public profiles follow a standard format:
https://linkedin.com/in/[custom-username]. If you can get the user's custom LinkedIn username (either from them or another source), you can construct the URL directly. However, you can't look up the username via API without enterprise access. - Apply for enterprise API access: If your use case is business-focused (like talent recruiting or sales prospecting), you can apply for LinkedIn's Talent Solutions API or Sales Navigator API. These include people search capabilities, but they require a formal application, approval, and typically involve paid licensing.
Key Takeaway
LinkedIn has tightened its API rules significantly to prioritize user privacy, so casual people search via API is no longer an option for most developers. The most straightforward solution for most apps is to have users voluntarily provide their public profile URLs.
内容的提问来源于stack exchange,提问作者Muzamil Hassan
相关产品推荐
相关产品推荐

