# Fetch a past search + its results

**`GET https://myagentmail.com/linkedin/searches/{id}`**

Group: LinkedIn — Searches
Operation ID: `linkedinGetSearch`

Re-open a persisted search without spending another LinkedIn quota.

## Path parameters

- `id` (string, required) —

## Responses

### 200

```json
{
  "search": {
    "id": "string",
    "sessionId": "string",
    "query": "string",
    "lookback": "past-24h",
    "minIntent": "low",
    "intentDescription": "string",
    "resultCount": 0,
    "tookMs": 0,
    "errorCode": "string",
    "errorMessage": "string",
    "createdAt": "2026-05-01T09:03:22.715Z"
  },
  "results": [
    {
      "postUrl": "string",
      "postExcerpt": "string",
      "postedAt": "2026-05-01T09:03:22.715Z",
      "author": {
        "name": "string",
        "profileUrl": "string",
        "headline": "string",
        "role": "string",
        "company": "string"
      },
      "classification": {
        "engage": false,
        "intent": "low",
        "reason": "string"
      },
      "triageScore": 0,
      "rank": 0
    }
  ]
}
```

### 404 — Not found.

## Code samples

### TypeScript

```typescript
import { MyAgentMail } from "myagentmail";

const client = new MyAgentMail({ apiKey: process.env.MYAGENTMAIL_API_KEY! });

// GET /linkedin/searches/{id}
const result = await client.request("get", "/linkedin/searches/{id}", { params: { id: "string" } });
```

### curl

```bash
curl -X GET 'https://myagentmail.com/linkedin/searches/string' \
  -H 'X-API-Key: $MYAGENTMAIL_API_KEY'
```

### Python

```python
import os, requests

r = requests.get(
    "https://myagentmail.com/linkedin/searches/string",
    headers={"X-API-Key": os.environ["MYAGENTMAIL_API_KEY"]},
)
r.raise_for_status()
print(r.json())
```
