# Search actors

Search actors by keyword with cursor pagination.

- Platform: [Bluesky](https://docs.upscrape.com/docs/platforms/bluesky)
- Capability ID: `bluesky.actor.search`
- Cost: 1 credit per request
- Maximum runtime: 120 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,
    "max_pages": 2,
    "query": "bluesky"
  },
  "capability": "bluesky.actor.search"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | `string` | No | Continuation cursor returned by a previous request. |
| `limit` | `integer` | No | Maximum number of results to return. From 1 to 100. |
| `max_pages` | `integer` | No | Maximum number of result pages to fetch. From 1 to 50. |
| `query` | `string` | Yes | Search query. |

### Example input

```json
{
  "limit": 10,
  "max_pages": 2,
  "query": "bluesky"
}
```

## 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 example shows one response. Values and optional fields vary with the data available.

```json
{
  "actors": [
    {
      "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/[redacted:token]",
      "description": "official Bluesky account (check username👆)\n\nBugs, feature requests, feedback: [redacted:email]",
      "did": "did:plc:z72i7hdynmk6r22z27h6tvur",
      "display_name": "Bluesky",
      "handle": "bsky.app",
      "indexed_at": "2025-10-27T21:05:26.152Z"
    },
    {
      "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:eon2iu7v3x2ukgxkqaf7e5np/[redacted:token]",
      "description": "Sharing updates about trust and safety on Bluesky.\n\nThis account’s mentions are not actively monitored. To report a post or account, use the in-app reporting feature.\n\nCommunity Guidelines: https://bsky.social/about/support/community-guidelines",
      "did": "did:plc:eon2iu7v3x2ukgxkqaf7e5np",
      "display_name": "Bluesky Safety",
      "handle": "safety.bsky.app",
      "indexed_at": "2024-02-08T00:51:47.063Z"
    },
    {
      "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:ry3hbexak5ytsum7aazhpkbv/[redacted:token]",
      "description": "Bluesky日本語公式アカウントです（ユーザー名をチェック👆）。\n\nバグのご報告、機能リクエスト、フィードバックはこちらへ →  [redacted:email]",
      "did": "did:plc:ry3hbexak5ytsum7aazhpkbv",
      "display_name": "Bluesky日本語（公式）",
      "handle": "jp.bsky.app",
      "indexed_at": "2026-04-03T00:35:19.149Z"
    }
  ],
  "has_more": true,
  "next_cursor": "[redacted:token]",
  "pages_fetched": 2,
  "total_returned": 20
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `actors` | `array` | 3 items |
| `actors` | `array` | 3 items |
| `has_more` | `boolean` | true |
| `next_cursor` | `string` | [redacted:token] |
| `pages_fetched` | `integer` | 2 |
| `total_returned` | `integer` | 20 |

## 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)
