> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seamless.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Country → Contacts

> Target or exclude whole countries. One filter of the Seamless.AI Contact Search API.

> [!NOTE]
>
> `POST /search/contacts` · Credits charged per results returned · v1, v2 · Part of the [Contact Search API](/api-catalog/contact-search)

## Introduction

Target or exclude whole countries. Prefix a value with `-` to exclude it. Combine it with any other filter in the same request (AND logic).

## AI agent prompt

```text theme={null}
Read https://docs.seamless.ai/api-catalog/contact-filters/country. Using SEAMLESS_API_KEY, call POST https://api.seamless.ai/api/client/v1/search/contacts with the `contactCountry` filter to find contacts matching: <your target>. Page with nextToken and keep each searchResultId.
```

## Example

```bash cURL theme={null}
curl -X POST https://api.seamless.ai/api/client/v1/search/contacts \
  -H "Token: $SEAMLESS_API_KEY" -H "Content-Type: application/json" \
  -d '{"contactCountry": ["United States"], "limit": 25}'
```

```python Python theme={null}
import os, requests
rows = requests.post("https://api.seamless.ai/api/client/v1/search/contacts",
    headers={"Token": os.environ["SEAMLESS_API_KEY"]},
    json={"contactCountry": ["United States"], "limit": 25}).json()["data"]
```

## Reference

| Parameter | Type | Required | Description |
| - | - | - | - |
| `contactCountry` | string\[] | Yes | Filter by the contact's or company's country. Prefix a value with `-` to exclude it. Behavior depends on the `locationType` parameter, and values are combined with `locations` rather than replacing it. `"US"`, `"USA"` and `"United States of America"` all resolve to the United States. Use `GET /search/locations?types=country` to find any other country's spelling; an unknown value matches no contacts and comes back under `warnings` with suggestions. Up to 10 values. |
| `locationType` | string | No | Determines how location filters are applied. `contact` matches the contact's personal location only, `company` the company's headquarters only, `bothOR` either (default), `bothAND` both. Default `"bothOR"`. |
| `limit` | integer | No | Results per page, up to 500. Default `50`. |
| `nextToken` | string | No | Cursor from `supplementalData.nextToken` to fetch the next page. |

**Allowed values for `locationType`:** `bothOR`, `bothAND`, `company`, `contact`

## Response

Rows are contact previews with `searchResultId`, name, title, seniority, company, location, and LinkedIn URL, but no emails or phones. Send `searchResultId` to [Contact Research](/api-catalog/contact-enrichment) to get them. Fields: [Contact Search](/api-catalog/contact-search).

Auth: `Token` header ([API keys](/authentication/api-keys)) · Errors: [status codes](/api-http-status-codes) · Billing: [rate limits and credits](/rate-limits-and-credits)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.