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

# Perplexity-API: Antworten, Zitate und Suchanfragen

> Stellen Sie Perplexity eine Frage und erhalten Sie die Antwort, zitierte Quellen, verwandte Fragen, Suchanfragen und Medien.

`PERPLEXITY` fragt Perplexity und liefert die Antwort mit den zitierten Quellen und den Suchen, die sein Modell ausgeführt hat.

| | |
| - | - |
| taskType | `PERPLEXITY` |
| Liest | `prompt` (greift auf `query` zurück) |
| Credits | 1 |
| Land | Optional, Standard `US`. `CN` wird mit `422 REGION_UNSUPPORTED` abgelehnt. |

## Anfrage

```bash theme={"theme":"css-variables"}
curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "taskType": "PERPLEXITY", "payload": { "prompt": "best CRM for a small team", "country": "US", "include": { "searchQueries": true } } }'
```

## Antwort

| Feld | Typ | Beschreibung |
| - | - | - |
| `text` | string | Die Antwort. Immer vorhanden. |
| `sources` | array | Zitierte Quellen: `position`, `url`, `label`, `description`. Immer vorhanden. |
| `related_queries` | string\[] | Folgefragen, die Perplexity vorschlägt. |
| `search_model_queries` | array | Die Suchen, die Perplexitys Modell ausgeführt hat, jeweils `{ query, engine, limit }`. |
| `searchQueries` | string\[] | Dieselben Suchen als einfache Strings. Nur mit `include.searchQueries`. |
| `images`, `videos` | array | Mit der Antwort gezeigte Medien: `title`, `url`, `medium`, `image`, `thumbnail`, `source`, `image_width`, `image_height` und bei Videos `duration`. |
| `markdown` | string | Die Antwort als Markdown, Bilder an ihrer Stelle. Nur mit `include.markdown`. |
| `rawResponse` | array | Geparste Stream-Ereignisse. Nur mit `include.rawResponse`. |

In `images` und `videos` ist `url` die Seite, von der das Element stammt, und `image` das Bild selbst.

Zum Beispiel:

```json theme={"theme":"css-variables"}
{
  "text": "HubSpot CRM and Pipedrive are the most common choices for small teams ...",
  "sources": [
    { "position": 1, "url": "https://www.example.com/crm-review", "label": "Best CRM for small teams", "description": "..." }
  ],
  "related_queries": ["Is HubSpot CRM free?"],
  "search_model_queries": [{ "query": "best CRM small team", "engine": "web", "limit": 8 }],
  "searchQueries": ["best CRM small team"]
}
```

`related_queries` sind Vorschläge für den Nutzer. `search_model_queries` und `searchQueries` sind das, wonach Perplexity tatsächlich gesucht hat.

## Include-Flags

| Flag | Wirkung |
| - | - |
| `markdown` | Fügt `markdown` hinzu. |
| `searchQueries` | Fügt `searchQueries` hinzu. |
| `rawResponse` | Fügt `rawResponse` hinzu. |
| `html` | Fügt `html` hinzu, den Bildschirm, den Perplexity gezeigt hat, für 0,25 Credits, wenn die Seite gespeichert wird. Siehe [HTML-Seiten](/de/engines/html-pages.md). |
| `analysis` | Fügt `analysis` hinzu, 1 Credit. Siehe [Antwortanalyse](/de/engines/answer-analysis.md). |
| `citationAnalysis` | Führt eine [Citation Analysis](/de/research/citation-analysis.md) der Antwort aus. |

`ads` und `shopping` haben keine Wirkung. Siehe [Markdown und Rohantworten](/de/engines/response-options.md).

## Verwandte Seiten

* [Perplexity-Produktseite](https://querying.ai/de/engines/perplexity)
* [Engine-Überblick](/de/engines/overview.md)


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