# LinkedIn Profiles Search

Find people on LinkedIn by keyword plus rich filters (title, company, school, seniority, industry, location, and more). Each match gives a person's name, headline, location, photo, and profile URL, grouped by search page — every search page holds up to 25 profiles. Feed the profile URLs into LinkedIn Profiles to get full details.

**Pricing:** $100 / 1k search pages

**Endpoint:** `POST /api/v1/agents/linkedin/profiles-search/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `searchQuery` | string | No | Keyword full-text search only — a single domain/role keyword (e.g. 'fintech', 'founder', 'product manager'). Do NOT include years, school names, company names, or job titles here — use the structured filters for those. |
| `maxResults` | integer | No | How many search pages to pull. Each page holds up to 25 profiles and is billed as one result — even if the page comes back with fewer than 25 (or zero) profiles. Leave blank for ALL available pages (a broad query can have up to ~100 pages). |
| `locations` | array | No | Filter to profiles in these locations (e.g. 'San Francisco', 'London'). One per line. |
| `seniorityLevel` | array | No | Filter to profiles at this seniority level. |
| `function` | array | No | Filter to profiles in this job function. |
| `industry` | array | No | Filter to profiles in this industry. |
| `yearsOfExperience` | array | No | Filter by total career experience. Also the proxy for graduation year: '1' = <1y (just graduated), '2' = 1-2y, '3' = 3-5y, '4' = 6-10y, '5' = >10y. |
| `yearsAtCompany` | array | No | Filter to profiles with this tenure at their current company. |
| `companyHeadcount` | array | No | Filter to profiles working at companies of this size. |
| `currentCompanies` | array | No | Filter to profiles currently at these companies (e.g. Google, Stripe). One per line. |
| `pastCompanies` | array | No | Filter to profiles who previously worked at these companies. One per line. |
| `currentJobTitles` | array | No | Filter by current job title text (e.g. 'product manager'). One per line. |
| `pastJobTitles` | array | No | Filter by past job title text. One per line. |
| `schools` | array | No | Filter to alumni of these schools (e.g. Stanford, MIT). One per line. |
| `names` | array | No | Filter to profiles by name. One per line — full name ("Sam Altman") or first/last only ("Sam"). |
| `companyHQLocations` | array | No | Filter to profiles whose company is headquartered in these locations. One per line. |
| `profileLanguages` | array | No | Filter to profiles in these languages (e.g. English, Spanish). One per line. |
| `recentlyChangedJobs` | boolean | No | Only profiles who recently changed jobs. |
| `recentlyPostedOnLinkedIn` | boolean | No | Only profiles who posted on LinkedIn recently. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/linkedin/profiles-search/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/linkedin/profiles-search/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/api/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `searchQuery` | Search Query | text |
| `pageNo` | Page No | number |
| `profiles` | Profiles | object_array |
