Algolia Website Indexer avatar
Algolia Website Indexer
Try for free

No credit card required

View all Actors
Algolia Website Indexer

Algolia Website Indexer

apify/algolia-website-indexer
Try for free

No credit card required

The Indexer crawls recursively a website using the Puppeteer browser (headless Chrome) and indexes the selected pages to the Algolia index.

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  "startUrls": [
8    {
9      "url": "http://example.com"
10    }
11  ],
12  "selectors": [
13    {
14      "key": "h1",
15      "value": "body"
16    }
17  ],
18  "requiredAttributes": [],
19  "additionalPageAttrs": {}
20}
21EOF
22
23# Run the Actor using an HTTP API
24# See the full API reference at https://docs.apify.com/api/v2
25curl "https://api.apify.com/v2/acts/apify~algolia-website-indexer/runs?token=$API_TOKEN" \
26  -X POST \
27  -d @input.json \
28  -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
  • 1 monthly user
  • 0 stars
  • 100.0% runs succeeded
  • Created in Jul 2019
  • Modified 5 days ago