> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/social-searches/openapi.json](/docs/api/social-searches/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# Social data searches: Run a social search

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

One endpoint of [Social data searches](/docs/api/social-searches.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## Run a social search

`POST /v1/social-searches` - operationId `social-searches.create`

| Permission | Credits | Rate limit |
| --- | --- | --- |
| Search edit | Spends credits, price not on the rate card yet (`social_data_record`) | 120 requests a minute per API key |

Runs one search on a platform: posts by a profile, company, page or group; jobs by keyword or company; people by
name; ads, posts, profiles, channels, videos or companies by keyword; videos by hashtag or channel; a profile by
username. Which fields a `type` needs, and which platforms run it, depend on the type: a missing field is 400
`validation_failed` naming it. `limit` caps the records (default 25, at most 100). Each record read on
Kenso's key costs 0.15 credits; on your own social data key it is free. The same search within 24 hours answers the
first one's records with `keySource: cache`, free. Answers 200 with `status: ready`, or 202 with
`status: running`: get it with `social-searches.get`. Errors: `400 validation_failed`,
`402 insufficient_credits`, `424 provider_key_failed`, `429 daily_limit_reached`,
`503 social_data_unavailable`. Needs Search edit.
A workspace key gets `403 forbidden`: the request records the member who asked for it, and a workspace key
is not a person.

Needs the `social_data` feature on your workspace. Until it is on, calls answer 404.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/social-searches/POST/v1/social-searches)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Request body

`application/json`, optional.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `platform` | string | yes | Required. `linkedin`, `facebook`, `instagram`, `x`, `tiktok`, `youtube` or `crunchbase`. |
| `type` | string | yes | Required. `posts_by_profile`, `posts_by_company`, `jobs_by_keyword`, `jobs_by_company`, `people_by_name`, `posts_by_page`, `posts_by_group`, `ads_by_keyword`, `profile_by_username`, `posts_by_keyword`, `profiles_by_search`, `channels_by_keyword`, `videos_by_keyword`, `videos_by_hashtag`, `videos_by_channel` or `companies_by_keyword`. Not every type runs on every platform. |
| `url` | string | no | The profile, company, page, group or channel link a `..._by_profile`, `..._by_company`, `..._by_page`, `..._by_group` or `..._by_channel` search reads. |
| `keyword` | string | no | The words, username or hashtag a `..._by_keyword`, `..._by_username`, `..._by_hashtag` or `profiles_by_search` search reads. |
| `location` | string | no | A place to narrow a job or people search: `Berlin`, `United States`. |
| `country` | string | no | A two-letter country code to narrow a search: `us`, `de`. |
| `company` | string | no | A company name, for `jobs_by_company`. `people_by_name` reads only the first and last name. |
| `firstName` | string | no | The first name for `people_by_name`. |
| `lastName` | string | no | The last name for `people_by_name`. |
| `since` | string (date-time) | no | Only records posted at or after this instant (UTC), on a search that reads posts, videos or jobs. |
| `limit` | integer (int32) | no | The most records to read, 1 to 100. Default 25. |

### Response 200

Also answers `202`. `data` is a `SocialSearch`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | `ssr_` and the search's number. The same search within 24 hours answers with the first one's id. |
| `status` | string | `ready`, `running` (Kenso is still reading: get it again) or `failed` (see `errorCode`). |
| `platform` | string | The platform searched. |
| `type` | string | The search type, such as `posts_by_company`. |
| `records` | array of SocialRecord | The records the search delivered, in the order it delivered them. |
| `recordCount` | integer (int32) | How many records the search delivered. |
| `creditsCharged` | number (double) | Credits the search charged so far: 0.15 per record read on Kenso's key, 0 on your own key. A repeat answered from a finished search shows 0; a repeat of one still running shows that search's charge, which is not charged again. |
| `keySource` | string | `kenso` (Kenso's key, charged per record), `workspace` (your own key, free) or `cache` (a repeat answered from the stored search, free). |
| `errorCode` | string | On a failed search: `insufficient_credits`, `daily_limit_reached`, `provider_key_failed`, `social_data_unavailable` or `validation_failed`. |
| `createdAt` | string (date-time) |  |

### Request

```bash
curl -X POST "https://api.ken.so/v1/social-searches" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "platform": "string",
  "type": "string",
  "url": "https://example.com",
  "keyword": "string",
  "location": "Berlin",
  "country": "us",
  "company": "string",
  "firstName": "Jane",
  "lastName": "Doe",
  "since": "2026-09-23T15:02:11Z",
  "limit": 1
}'
```

### Example response

```json
{
  "success": true,
  "data": {
    "id": "ssr_2bX9kq4LmR7tW3vY",
    "status": "string",
    "platform": "string",
    "type": "posts_by_company",
    "records": [
      {
        "id": "srec_2bX9kq4LmR7tW3vY",
        "platform": "linkedin",
        "kind": "profile",
        "url": "https://example.com",
        "externalId": "string",
        "handle": "string",
        "name": "string",
        "text": "string",
        "postedAt": "2026-09-23T15:02:11Z",
        "metrics": {
          "followers": 1,
          "likes": 1,
          "comments": 1,
          "shares": 1,
          "views": 1
        },
        "data": {
          "key": null
        },
        "fetchedAt": "2026-09-23T15:02:11Z"
      }
    ],
    "recordCount": 1,
    "creditsCharged": 0.5,
    "keySource": "string",
    "errorCode": "insufficient_credits",
    "createdAt": "2026-09-23T15:02:11Z"
  }
}
```

## Types

Each named type the tables above use, nested ones included.

### SocialRecord

One stored social record: a profile, company page, channel, post, comment, job, review, event or ad.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | no | `srec_` and the record's number. |
| `platform` | string | no | `linkedin`, `facebook`, `instagram`, `x`, `tiktok`, `youtube` or `crunchbase`. |
| `kind` | string | no | `profile`, `company`, `channel`, `post`, `comment`, `job`, `review`, `event` or `ad`. |
| `url` | string | no | The record's link on its platform. |
| `externalId` | string | no | The platform's own id for the record, when it has one. |
| `handle` | string | no | The username, page name or slug, when the record has one. |
| `name` | string | no | The person's, company's or channel's name, or a job's title. |
| `text` | string | no | A post's, comment's or review's text, or a profile's headline or about. |
| `postedAt` | string (date-time) | no | When a post, comment, job, review or ad was published, in UTC. |
| `metrics` | SocialMetrics | no | The counts the record reports about itself. A count the platform does not report is omitted. |
| `data` | map of object | no | Platform fields, which vary by platform: the full record as the platform reports it. |
| `fetchedAt` | string (date-time) | no | When Kenso read the record, in UTC. |

### SocialMetrics

A record's counts. Each is omitted when the platform does not report it for this record.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `followers` | integer (int64) | no |  |
| `likes` | integer (int64) | no |  |
| `comments` | integer (int64) | no |  |
| `shares` | integer (int64) | no |  |
| `views` | integer (int64) | no |  |
