
Weaviate Integration
Deprecated
Pricing
$5.00/month + usage

Weaviate Integration
Deprecated
Easily integrate Apify & Weaviate Push selected fields from Apify Actor into any Weaviate class. If the Weaviate class does not exist the integration will created it. Efficient & user-friendly data handling solution.
0.0 (0)
Pricing
$5.00/month + usage
0
Total users
2
Monthly users
1
Last modified
2 years ago
You can access the Weaviate Integration programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "weaviateClass": "XXX",12 "weaviateHost": "myindex.weaviate.network",13 "fieldMappings": [14 {15 "datasetColumnName": "url",16 "dbPropertyName": "key",17 "isKeyColumn": true,18 "isMetadata": true,19 "dataType": [20 "text"21 ]22 },23 {24 "datasetColumnName": "pageTitle",25 "dbPropertyName": "pageTitle",26 "isKeyColumn": false,27 "isMetadata": false,28 "dataType": [29 "text"30 ]31 }32 ]33};34
35// Run the Actor and wait for it to finish36const run = await client.actor("datastorm/weaviate-integration").call(input);37
38// Fetch and print Actor results from the run's dataset (if any)39console.log('Results from dataset');40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);41const { items } = await client.dataset(run.defaultDatasetId).listItems();42items.forEach((item) => {43 console.dir(item);44});45
46// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Weaviate Integration API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Weaviate Integration API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-client
Other API clients include: