API reference · LinkedIn

linkedin/search-profiles

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/api/linkedin/search-profiles
Model IDlinkedin/search-profiles
01

Input Schema

28 parameters · 1 required · 27 optional

ParameterTypeRequiredDescription
querystringRequiredSearch query for LinkedIn profiles: a role, name, or keywords (e.g. 'Marketing Manager').
limitintegerOptionalMaximum number of full profiles to return (1-25, default 10). You are billed per profile returned, so a lower limit costs less. · Min: 1 · Max: 25
schoolsstring[]OptionalFilter to people who attended any of these schools, by name.
jobTitlestringOptionalOptional current job title filter (e.g. 'Software Engineer').
locationstringOptionalOptional location filter (e.g. 'San Francisco').
lastNamesstring[]OptionalFilter to people whose last name matches any of these.
firstNamesstring[]OptionalFilter to people whose first name matches any of these.
functionIdsstring[]OptionalFilter 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.
pastCompaniesstring[]OptionalFilter to people who previously worked at any of these companies, by name.
pastJobTitlesstring[]OptionalFilter by a past job title the person held (e.g. ['Product Manager']).
excludeSchoolsstring[]OptionalExclude people who attended any of these schools, by name.
companyHeadcountstring[]OptionalFilter 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+.
currentCompaniesstring[]OptionalFilter to people who currently work at any of these companies, by name (e.g. ['Google','Meta']). Multiple names widen the match (OR).
excludeLocationsstring[]OptionalExclude people in any of these locations, by place name.
profileLanguagesstring[]OptionalFilter by the profile's primary language.
seniorityLevelIdsstring[]OptionalFilter 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.
excludeFunctionIdsstring[]OptionalExclude these job functions (same codes as functionIds).
recentlyChangedJobsbooleanOptionalWhen true, only return people who recently changed jobs (a strong sales/recruiting signal).
excludePastCompaniesstring[]OptionalExclude people who previously worked at any of these companies, by name.
excludePastJobTitlesstring[]OptionalExclude people who held any of these past job titles.
yearsOfExperienceIdsstring[]OptionalFilter 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.
excludeCurrentCompaniesstring[]OptionalExclude people who currently work at any of these companies, by name.
excludeCurrentJobTitlesstring[]OptionalExclude people whose current job title matches any of these.
excludeSeniorityLevelIdsstring[]OptionalExclude these seniority levels (same codes as seniorityLevelIds).
recentlyPostedOnLinkedInbooleanOptionalWhen true, only return people who recently posted on LinkedIn (an activity signal).
yearsAtCurrentCompanyIdsstring[]OptionalFilter 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.
companyHeadquarterLocationsstring[]OptionalFilter by the location of the person's current company headquarters, by place name (e.g. ['United States']).
excludeCompanyHeadquarterLocationsstring[]OptionalExclude people whose current company is headquartered in any of these locations.
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description
03

Code Examples

Ready-to-run snippets

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/api/linkedin/search-profiles", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "limit": 3,
    "query": "engineer",
    "currentCompanies": [
      "Google"
    ]
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());