![Algolia Website Indexer avatar](https://images.apifyusercontent.com/9wfmZSdpSUDSPo-u5Kecgdvf6-VvhRfSvUdTpGD4Onw/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9LdGl0UDlxWENUWmtKNVdtNC94aXlpRWVMTnczeHM0b2V2ei1JTUdfNzYzNS0wNC5wbmc.webp)
Algolia Website Indexer
Try for free
No credit card required
View all Actors![Algolia Website Indexer](https://images.apifyusercontent.com/9wfmZSdpSUDSPo-u5Kecgdvf6-VvhRfSvUdTpGD4Onw/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9LdGl0UDlxWENUWmtKNVdtNC94aXlpRWVMTnczeHM0b2V2ei1JTUdfNzYzNS0wNC5wbmc.webp)
![Algolia Website Indexer](https://images.apifyusercontent.com/9wfmZSdpSUDSPo-u5Kecgdvf6-VvhRfSvUdTpGD4Onw/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9LdGl0UDlxWENUWmtKNVdtNC94aXlpRWVMTnczeHM0b2V2ei1JTUdfNzYzNS0wNC5wbmc.webp)
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.
Do you want to learn more about this Actor?
Get a demoThe 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
- 2 monthly users
- 2 stars
- 100.0% runs succeeded
- Created in Jul 2019
- Modified 3 months ago
Categories