# Find company suggestions

Resolves company-name autocomplete suggestions to organization IDs. Not exhaustive company search; no upstream pagination.

- Platform: [LinkedIn](https://docs.upscrape.com/docs/platforms/linkedin)
- Capability ID: `linkedin.company.search`
- Cost: 1 credit per request
- Maximum runtime: 60 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 10,
    "match_mode": "exact",
    "query": "Microsoft"
  },
  "capability": "linkedin.company.search"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | No | Maximum company suggestions returned. The source has no observed pagination. |
| `match_mode` | `string` | No | Local name filter on suggestions, case-insensitive. all preserves source suggestions; exact requires equal names; prefix requires a name beginning with query. |
| `query` | `string` | Yes | Company-name autocomplete query; only COMPANY suggestions are returned. |

### Example input

```json
{
  "limit": 10,
  "match_mode": "exact",
  "query": "Microsoft"
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "count": 1,
  "coverage": {
    "limitations": [
      "Synthetic illustration; not a live scrape result."
    ],
    "missing_fields": [],
    "source": "linkedin_company_autocomplete",
    "status": "partial_public",
    "truncated_fields": []
  },
  "matched_count": 1,
  "query": "Example Company",
  "results": [
    {
      "company_id": "1035",
      "name": "Example Company",
      "url": "https://www.linkedin.com/company/1035"
    }
  ],
  "total_suggestions": 1,
  "truncated": false
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `count` | `integer` | 1 |
| `coverage` | `object` | 5 fields |
| `coverage.limitations` | `array` | 1 items |
| `coverage.missing_fields` | `array` | 0 items |
| `coverage.source` | `string` | linkedin_company_autocomplete |
| `coverage.status` | `string` | partial_public |
| `coverage.truncated_fields` | `array` | 0 items |
| `matched_count` | `integer` | 1 |
| `query` | `string` | Example Company |
| `results` | `array` | 1 items |
| `results` | `array` | 1 items |
| `total_suggestions` | `integer` | 1 |
| `truncated` | `boolean` | false |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
