Perplexity.AI Actor
Try for free
3 days trial then $30.00/month - No credit card required now
View all Actors
Perplexity.AI Actor
jons/perplexity-actor
Try for free
3 days trial then $30.00/month - No credit card required now
Use the Perplexity.ai Scraper to extract information with AI. For example: "Find hotels in Prague that offer free breakfast and have a nightly rate under 1000 CZK." Export the results into a structured dataset.
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "runMode": "DEVELOPMENT",
8 "searchTerms": [
9 "What are the common symptoms of COVID-19?"
10 ],
11 "proxyConfiguration": {
12 "useApifyProxy": true,
13 "apifyProxyGroups": [
14 "RESIDENTIAL"
15 ]
16 }
17}
18EOF
19
20# Run the Actor using an HTTP API
21# See the full API reference at https://docs.apify.com/api/v2
22curl "https://api.apify.com/v2/acts/jons~perplexity-actor/runs?token=$API_TOKEN" \
23 -X POST \
24 -d @input.json \
25 -H 'Content-Type: application/json'