Get Perplexity Answer
Sends a question to Perplexity anonymously and returns the `answer` as markdown text, plus every web page Perplexity searched in `sources` with its `domain`, `title`, `snippet`, `publishedDate` and `citation` number, the follow-up questions in `relatedQuestions`, a link to the thread on perplexity.ai in `url`, the `model` that answered and the `country` the answer was served from. Perplexity searches the web for every question, so `usedWebSearch` is normally true and answers come with `sources` rather than from the model alone. The language of the answer follows the question — write it in the language you want back, or ask for one in it. Set the frame of reference for words like "today" with `timezone`. Each request is a fresh thread with no memory of earlier ones. Use to answer questions with cited sources, to ground an agent or RAG pipeline in live web results, to summarise a topic with the pages behind it, or to build datasets of answers and their citations.