pageinteger
Which page of up to 25 leads to return, starting at 1 (1-100, default 1). Also pages through a salesNavUrl search. Each page is billed as one request.
Mặc định: 1
https://api.sandbase.ai/v1/api/linkedin/search-leadsLinkedIn lead search with Sales Navigator's search and filters: one call returns a page of up to 25 people matching a keyword and Sales Navigator lead filters (location, job title, current and past company, school, seniority, function, company size, and more), or the results of a Sales Navigator lead-search URL you built yourself. Each lead comes with name, current positions, location, summary, and photo, and its url opens the profile and can be passed to linkedin.profile for the full record. For full profiles in one call use linkedin.search_profiles.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns a page of up to 25 LinkedIn leads that match a keyword and Sales Navigator filters such as location, job title, current and past company, school, seniority, function, and company size. You can also pass a Sales Navigator lead-search URL you built yourself. Each lead includes name, location, current positions, and a profile URL.
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/search-leads" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "engineer", "currentCompanies": ["Google"]}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
companyHeadcount | array | No | Filter by current company size (employee count). Codes: A=Self-Employed, B=1-10, C=11-50, D=51-200, E=201-500, F=501-1,000, G=1,001-5,000, H=5,001-10,000, I=10,001+. |
companyHeadquarterLocations | array | No | Filter by the location of the person's current company headquarters, by place name (e.g. ['United States']). Commas are not allowed in a value. Up to 70 values. |
currentCompanies | array | No | Filter to people who currently work at any of these companies, by name (e.g. ['Google','Meta']). Multiple names widen the match (OR). Commas are not allowed in a value. Up to 50 values. |
excludeCompanyHeadquarterLocations | array | No | Exclude people whose current company is headquartered in any of these locations. Commas are not allowed in a value. Up to 70 values. |
excludeCurrentCompanies | array | No | Exclude people who currently work at any of these companies, by name. Commas are not allowed in a value. Up to 50 values. |
excludeCurrentJobTitles | array | No | Exclude people whose current job title matches any of these. Commas are not allowed in a value. Up to 70 values. |
excludeFunctionIds | array | No | Exclude these job functions (same codes as functionIds). Up to 30 values. |
excludeLocations | array | No | Exclude people in any of these locations, by place name. Commas are not allowed in a value. Up to 70 values. |
excludePastCompanies | array | No | Exclude people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values. |
excludePastJobTitles | array | No | Exclude people who held any of these past job titles. Commas are not allowed in a value. Up to 70 values. |
excludeSchools | array | No | Exclude people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values. |
excludeSeniorityLevelIds | array | No | Exclude these seniority levels (same codes as seniorityLevelIds). Up to 20 values. |
firstNames | array | No | Filter to people whose first name matches any of these. Commas are not allowed in a value. Up to 70 values. |
functionIds | array | No | Filter by job function. Codes: 1=Accounting, 2=Administrative, 3=Arts and Design, 4=Business Development, 5=Community and Social Services, 6=Consulting, 7=Education, 8=Engineering, 9=Entrepreneurship, 10=Finance, 11=Heal |
jobTitle | string | No | Optional current job title filter (e.g. 'Software Engineer'). Commas are not allowed in a value. |
lastNames | array | No | Filter to people whose last name matches any of these. Commas are not allowed in a value. Up to 70 values. |
location | string | No | Optional location filter (e.g. 'San Francisco'). Commas are not allowed in a value. |
page | integer | No | Which page of up to 25 leads to return, starting at 1 (1-100, default 1). Also pages through a salesNavUrl search. Each page is billed as one request. |
pastCompanies | array | No | Filter to people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values. |
pastJobTitles | array | No | Filter by a past job title the person held (e.g. ['Product Manager']). Commas are not allowed in a value. Up to 70 values. |
profileLanguages | array | No | Filter by the profile's primary language. |
query | string | No | Search keywords for LinkedIn leads: a role, name, or keywords (e.g. 'Marketing Manager'). Provide this or salesNavUrl. |
recentlyChangedJobs | boolean | No | When true, only return people who recently changed jobs (a strong sales/recruiting signal). |
recentlyPostedOnLinkedIn | boolean | No | When true, only return people who recently posted on LinkedIn (an activity signal). |
salesNavUrl | string | No | Alternatively, a LinkedIn Sales Navigator lead-search URL you built in Sales Navigator (e.g. https://www.linkedin.com/sales/search/people?query=(keywords%3Aengineer)). When set it overrides query and every other filter o |
schools | array | No | Filter to people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values. |
seniorityLevelIds | array | No | Filter by seniority level. Codes: 100=In Training, 110=Entry Level, 120=Senior, 130=Strategic, 200=Entry Level Manager, 210=Experienced Manager, 220=Director, 300=Vice President, 310=CXO, 320=Owner/Partner. |
yearsAtCurrentCompanyIds | array | No | Filter by tenure at the current company. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years. |
yearsOfExperienceIds | array | No | Filter by total years of experience. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"currentPositions": [
{
"companyId": "1594050",
"companyLinkedinUrl": "https://www.linkedin.com/company/1594050",
"companyName": "Google DeepMind",
"startedOn": {
"month": 7,
"year": 2022
},
"tenureAtCompany": {
"numMonths": 5,
"numYears": 4
},
"tenureAtPosition": {
"numMonths": 5,
"numYears": 4
},
"title": "Research Engineer"
}
],
"firstName": "Alexander",
"id": "ACwAACLLZ6oB9J9aXtDSl9zhfkbOI0ZSz9Fr330",
"image": "https://media.licdn.com/dms/image/v2/C4D03AQHxbnfouwCB7w/profile-displayphoto-sh…",
"lastName": "Donovan",
"location": "New York City Metropolitan Area",
"openProfile": false,
"premium": false,
"url": "https://www.linkedin.com/in/ACwAACLLZ6oB9J9aXtDSl9zhfkbOI0ZSz9Fr330"
}
],
"page": 1,
"totalPages": 100,
"totalResults": 141476
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].firstName / data.items[].lastName | First and last name of the lead. |
data.items[].id | Sales Navigator ID of the lead. The same value appears at the end of url. |
data.items[].url | LinkedIn profile URL for the lead. Pass it to a profile API to get the full record. |
data.items[].location | Location text from the lead's profile, such as San Francisco Bay Area. |
data.items[].currentPositions[].title | Job title of the current position. |
data.items[].currentPositions[].companyName | Name of the company for the current position. |
data.items[].currentPositions[].companyId / data.items[].currentPositions[].companyLinkedinUrl | ID of the company and the LinkedIn URL of its company page. |
data.items[].currentPositions[].startedOn.month / data.items[].currentPositions[].startedOn.year | Month and year when the person started the current position. |
data.items[].currentPositions[].tenureAtCompany.numYears / data.items[].currentPositions[].tenureAtCompany.numMonths | Time the person has spent at the company, split into years and months. numYears is missing when the tenure is under a year. |
data.items[].premium / data.items[].openProfile | Boolean flags for whether the lead has a premium account and whether the profile is marked open. |
page from 1 to 100 to move through results. data.page, data.totalPages and data.totalResults show where you are in the result set.query or salesNavUrl. When you set salesNavUrl, it overrides query and all other filters, and only page still applies.image is missing for some leads, so check for it before use.url to LinkedIn User Profile. For full profiles in one search call, use LinkedIn Profile Search.Billed at the actual cost of each call, about $0.07 for the request above. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/search-leads" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"query": "engineer",
"currentCompanies": [
"Google"
]
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
pageintegerWhich page of up to 25 leads to return, starting at 1 (1-100, default 1). Also pages through a salesNavUrl search. Each page is billed as one request.
Mặc định: 1
querystringSearch keywords for LinkedIn leads: a role, name, or keywords (e.g. 'Marketing Manager'). Provide this or salesNavUrl.
schoolsarrayFilter to people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values.
jobTitlestringOptional current job title filter (e.g. 'Software Engineer'). Commas are not allowed in a value.
locationstringOptional location filter (e.g. 'San Francisco'). Commas are not allowed in a value.
lastNamesarrayFilter to people whose last name matches any of these. Commas are not allowed in a value. Up to 70 values.
firstNamesarrayFilter to people whose first name matches any of these. Commas are not allowed in a value. Up to 70 values.
functionIdsarrayFilter by job function. Codes: 1=Accounting, 2=Administrative, 3=Arts and Design, 4=Business Development, 5=Community and Social Services, 6=Consulting, 7=Education, 8=Engineering, 9=Entrepreneurship, 10=Finance, 11=Healthcare Services, 12=Human Resources, 13=Information Technology, 14=Legal, 15=Marketing, 16=Media and Communication, 17=Military and Protective Services, 18=Operations, 19=Product Management, 20=Program and Project Management, 21=Purchasing, 22=Quality Assurance, 23=Real Estate, 24=Research, 25=Sales, 26=Customer Success and Support.
salesNavUrlstringAlternatively, a LinkedIn Sales Navigator lead-search URL you built in Sales Navigator (e.g. https://www.linkedin.com/sales/search/people?query=(keywords%3Aengineer)). When set it overrides query and every other filter on this request; only page still applies.
pastCompaniesarrayFilter to people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.
pastJobTitlesarrayFilter by a past job title the person held (e.g. ['Product Manager']). Commas are not allowed in a value. Up to 70 values.
excludeSchoolsarrayExclude people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values.
companyHeadcountarrayFilter by current company size (employee count). Codes: A=Self-Employed, B=1-10, C=11-50, D=51-200, E=201-500, F=501-1,000, G=1,001-5,000, H=5,001-10,000, I=10,001+.
currentCompaniesarrayFilter to people who currently work at any of these companies, by name (e.g. ['Google','Meta']). Multiple names widen the match (OR). Commas are not allowed in a value. Up to 50 values.
excludeLocationsarrayExclude people in any of these locations, by place name. Commas are not allowed in a value. Up to 70 values.
profileLanguagesarrayFilter by the profile's primary language.
seniorityLevelIdsarrayFilter by seniority level. Codes: 100=In Training, 110=Entry Level, 120=Senior, 130=Strategic, 200=Entry Level Manager, 210=Experienced Manager, 220=Director, 300=Vice President, 310=CXO, 320=Owner/Partner.
excludeFunctionIdsarrayExclude these job functions (same codes as functionIds). Up to 30 values.
recentlyChangedJobsbooleanWhen true, only return people who recently changed jobs (a strong sales/recruiting signal).
excludePastCompaniesarrayExclude people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.
excludePastJobTitlesarrayExclude people who held any of these past job titles. Commas are not allowed in a value. Up to 70 values.
yearsOfExperienceIdsarrayFilter by total years of experience. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years.
excludeCurrentCompaniesarrayExclude people who currently work at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.
excludeCurrentJobTitlesarrayExclude people whose current job title matches any of these. Commas are not allowed in a value. Up to 70 values.
excludeSeniorityLevelIdsarrayExclude these seniority levels (same codes as seniorityLevelIds). Up to 20 values.
recentlyPostedOnLinkedInbooleanWhen true, only return people who recently posted on LinkedIn (an activity signal).
yearsAtCurrentCompanyIdsarrayFilter by tenure at the current company. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years.
companyHeadquarterLocationsarrayFilter by the location of the person's current company headquarters, by place name (e.g. ['United States']). Commas are not allowed in a value. Up to 70 values.
excludeCompanyHeadquarterLocationsarrayExclude people whose current company is headquartered in any of these locations. Commas are not allowed in a value. Up to 70 values.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
LinkedIn | Từ $0.07 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0012 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0331 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0012 mỗi lần gọi | JSON |
LinkedIn | Từ $0.00569 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0026 mỗi lần gọi | JSON |
Hướng dẫn:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/linkedin/search-leads với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
Từ $0.07 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Không có tham số bắt buộc. Tùy chọn: page (integer), query (string), schools (array), jobTitle (string), location (string) và lastNames (array) và 23 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. LinkedIn Sales Navigator Lead Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của LinkedIn.