Perplexity web search API
Use this tool to search the web for information relevant to the user's query.
If you know how to answer the query already, you do not need to search the web.
However, searching the web will help with grounding your response in reality, especially in the case of complex queries, verifying facts, or providing context on real-time information.
Use tokens to limit the amount of information retrieved.
You can fit a lot in your context window, so do not be shy.
You will be charged 0.5 credits per search regardless of number of results returned.
Adjust parameters to get more specific results; e.g. if the user is from a specific country, asking about a specific country, or speaking a certain language.
Sometimes, you may need to adjust date range and filters to make the time range specific. - Perplexity web search - Miniforge