Search Users
Members with a first and last name, up to 50.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
firstName?stringThe first name, as members write it.
lastName?stringThe last name.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.linkedin.searchUsers({ firstName: "John", lastName: "Smith" });Example Response
{ "data": [ { "id": "john-smith-53b964", "username": "john-smith-53b964", "displayName": "John Smith", "bio": null, "avatarUrl": null, "url": "https://www.linkedin.com/in/john-smith-53b964", "verified": false, "private": false, "followers": null, "following": null, "likes": null, "posts": null, "externalUrl": null, "createdAt": null, "ext": { "headline": null, "location": "Amersham", "country": null, "connections": null, "connectionsMore": false, "labels": [], "influencer": false, "coverUrl": null, "current": [], "schools": [], "hidden": false, "experience": [], "education": [], "volunteering": [], "certifications": [], "publications": [], "patents": [], "projects": [], "honors": [], "languages": [], "courses": [], "testScores": [], "organizations": [], "skills": [], "recommendations": [], "websites": [], "similar": [] } }, { "id": "johnsidneysmith", "username": "johnsidneysmith", "displayName": "John Smith", "bio": null, "avatarUrl": null, "url": "https://www.linkedin.com/in/johnsidneysmith", "verified": false, "private": false, "followers": null, "following": null, "likes": null, "posts": null, "externalUrl": null, "createdAt": null, "ext": { "headline": null, "location": "Amsterdam", "country": null, "connections": null, "connectionsMore": false, "labels": [], "influencer": false, "coverUrl": null, "current": [ { "name": "PPG", "url": null } ], "schools": [], "hidden": false, "experience": [], "education": [], "volunteering": [], "certifications": [], "publications": [], "patents": [], "projects": [], "honors": [], "languages": [], "courses": [], "testScores": [], "organizations": [], "skills": [], "recommendations": [], "websites": [], "similar": [] } } ], "pagination": { "nextCursor": null, "hasMore": false }}