Skip to Content

Search Users

Members with a first and last name, up to 50.

GET
/v1/linkedin/search/users

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

firstName?string

The first name, as members write it.

lastName?string

The last name.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
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  }}