# Carian Lanjutan

**API:** Data API

**Endpoint:** `GET /v1/beta/twitter/tweet/advanced_search`

**Tags:** Twitter / X

Cari siaran X mengikut kata kunci atau pertanyaan dengan operator carian lanjutan X, disusun mengikut Terkini (lalai) atau Teratas. Ini ialah titik masuk utama untuk penyelidikan kandungan X apabila anda belum mempunyai ID tweet atau handle. Menyokong operator dalam rentetan pertanyaan seperti `from:`, `to:`, `since:`, `until:`, `min_faves:` dan `-filter:replies`. Dipaginasikan dengan kursor; memulangkan tweet dengan `has_next_page` dan `next_cursor`. Untuk mencari akaun dan bukan siaran, gunakan `get_twitter_user_search`. Untuk membaca siaran akaun itu sendiri, gunakan `get_twitter_user_tweet_timeline`.

### Rujukan harga

- Pemeteran: Bilangan hasil dimeterkan.
- Anggaran rujukan setiap permintaan: USD 0.003.
- Asas kos minimum: USD 0.00015.
- Pengganda pelanggan rujukan: 1.0. Jangan gunakan semula pada amaun pelanggan yang telah diselesaikan.
- Asas kos tidak menentukan harga pelanggan akhir, termasuk apabila sifar.

Metadata rujukan sahaja, bukan sebut harga akaun, harga terjamin atau had perbelanjaan. Kredit sumber bukan kredit Felo. Caj akhir mengikut rekod pengebilan Felo.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `count` | query | no | string |  |
| `cursor` | query | no | string |  |
| `max_results` | query | no | string |  |
| `query` | query | no | string |  |
| `queryType` | query | no | string |  |
| `start_time` | query | no | string |  |

## Responses

### 200 — Respons berjaya

Headers:
- `X-Request-Id` (string) — Pengecam permintaan untuk disertakan semasa menghubungi sokongan Felo.

**application/json**

Schema: `ResponseCbc4F8806E32_AdvancedSearchResponse` (`#/components/schemas/ResponseCbc4F8806E32_AdvancedSearchResponse`)

### 400 — Permintaan tidak dapat diproses. Semak parameter permintaan.

### 401 — Kunci API Felo yang sah diperlukan.

### 402 — Permintaan tidak dapat diteruskan kerana keperluan pengebilan tidak dipenuhi.

### 403 — Akaun tidak dibenarkan melakukan operasi ini.

### 429 — Had permintaan atau had perbelanjaan telah dicapai.

### 502 — Perkhidmatan tidak dapat menyelesaikan permintaan.

### 503 — API atau perkhidmatan pengebilan tidak tersedia buat sementara waktu.

### 504 — Perkhidmatan tamat masa semasa memproses permintaan.

### default — Respons ralat; respons passthrough huluan mungkin menggunakan format penyedia

**application/json**

Schema:

```json
{}
```

## Schema definitions

### ResponseCbc4F8806E32_AdvancedSearchResponse

`#/components/schemas/ResponseCbc4F8806E32_AdvancedSearchResponse`

```json
{
  "type": "object",
  "properties": {
    "tweets": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ResponseCbc4F8806E32_Tweet"
      }
    },
    "has_next_page": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": "string"
    }
  }
}
```

### ResponseCbc4F8806E32_Entities

`#/components/schemas/ResponseCbc4F8806E32_Entities`

```json
{
  "type": "object",
  "properties": {
    "hashtags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "indices": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "urls": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "display_url": {
            "type": "string"
          },
          "expanded_url": {
            "type": "string"
          },
          "indices": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "user_mentions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id_str": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "screen_name": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

### ResponseCbc4F8806E32_Tweet

`#/components/schemas/ResponseCbc4F8806E32_Tweet`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "retweetCount": {
      "type": "integer"
    },
    "replyCount": {
      "type": "integer"
    },
    "likeCount": {
      "type": "integer"
    },
    "quoteCount": {
      "type": "integer"
    },
    "viewCount": {
      "type": "integer"
    },
    "createdAt": {
      "type": "string"
    },
    "lang": {
      "type": "string"
    },
    "bookmarkCount": {
      "type": "integer"
    },
    "isReply": {
      "type": "boolean"
    },
    "inReplyToId": {
      "type": "string"
    },
    "conversationId": {
      "type": "string"
    },
    "displayTextRange": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "inReplyToUserId": {
      "type": "string"
    },
    "inReplyToUsername": {
      "type": "string"
    },
    "author": {
      "$ref": "#/components/schemas/ResponseCbc4F8806E32_User"
    },
    "entities": {
      "$ref": "#/components/schemas/ResponseCbc4F8806E32_Entities"
    },
    "quoted_tweet": {
      "type": "string"
    },
    "retweeted_tweet": {
      "type": "string"
    },
    "isLimitedReply": {
      "type": "boolean"
    }
  }
}
```

### ResponseCbc4F8806E32_User

`#/components/schemas/ResponseCbc4F8806E32_User`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "userName": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "isBlueVerified": {
      "type": "boolean"
    },
    "verifiedType": {
      "type": "string"
    },
    "profilePicture": {
      "type": "string"
    },
    "coverPicture": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "location": {
      "type": "string"
    },
    "followers": {
      "type": "integer"
    },
    "following": {
      "type": "integer"
    },
    "canDm": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string"
    },
    "favouritesCount": {
      "type": "integer"
    },
    "hasCustomTimelines": {
      "type": "boolean"
    },
    "isTranslator": {
      "type": "boolean"
    },
    "mediaCount": {
      "type": "integer"
    },
    "statusesCount": {
      "type": "integer"
    },
    "withheldInCountries": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "possiblySensitive": {
      "type": "boolean"
    },
    "pinnedTweetIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "isAutomated": {
      "type": "boolean"
    },
    "automatedBy": {
      "type": "string"
    },
    "unavailable": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    },
    "unavailableReason": {
      "type": "string"
    }
  }
}
```
