# Geavanceerd zoeken

**API:** Data API

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

**Tags:** Twitter / X

Doorzoekt X-berichten op trefwoord of query met de geavanceerde zoekoperatoren van X, gesorteerd op Latest (standaard) of Top. Dit is het belangrijkste startpunt voor onderzoek naar X-inhoud wanneer je nog geen tweet-ID's of handles hebt. Ondersteunt operatoren in de query, zoals `from:`, `to:`, `since:`, `until:`, `min_faves:` en `-filter:replies`. Met cursorpagina's; retourneert tweets met `has_next_page` en `next_cursor`. Om accounts in plaats van berichten te zoeken, gebruik je `get_twitter_user_search`. Om de eigen berichten van één account te lezen, gebruik je `get_twitter_user_tweet_timeline`.

### Prijsreferentie

- Metering: Gemeten resultaantal.
- Referentieschatting per verzoek: USD 0.003.
- Minimale kostenbasis: USD 0.00015.
- Referentiemultiplier voor klanten: 1.0. Niet opnieuw toepassen op een al afgerekend klantbedrag.
- Kostenbases bepalen niet de uiteindelijke klantprijs, ook niet wanneer die nul is.

Alleen referentiemetadata, geen accountofferte en geen gegarandeerde prijs of bestedingslimiet. Resourcecredits zijn geen Felo-tegoed. De uiteindelijke kosten volgen de factureringsgegevens van 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 — Geslaagde respons

Headers:
- `X-Request-Id` (string) — Verzoekidentificatie die je moet meesturen wanneer je contact opneemt met Felo-ondersteuning.

**application/json**

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

### 400 — Het verzoek kon niet worden verwerkt. Controleer de verzoekparameters.

### 401 — Een geldige Felo-API-sleutel is vereist.

### 402 — Het verzoek kan niet doorgaan omdat niet aan een factureringsvoorwaarde is voldaan.

### 403 — Het account mag deze bewerking niet uitvoeren.

### 429 — Een verzoek- of bestedingslimiet is bereikt.

### 502 — De dienst kon het verzoek niet voltooien.

### 503 — De API of factureringsdienst is tijdelijk niet beschikbaar.

### 504 — Er is een time-out opgetreden bij het verwerken van het verzoek.

### default — Foutrespons; upstream-passthrough-responsen kunnen indelingen van de provider gebruiken

**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"
    }
  }
}
```
