PI

Pinecone integration

  • jan.turon/pinecone-integration
  • Modified
  • Users 36
  • Runs 534
  • Created by Author's avatarJan Turo艌

Simplify your data operations with this Apify and Pinecone integration. Easily push selected fields from your Apify Actor directly into any Pinecone index. If the index doesn't exist, the integration will create it. Practical and straightforward solution for handling data between Apify and Pinecone.

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token that you can find under Settings > Integrations. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

List of most relevant API endpoints

See API reference for full details.

Run Actor synchronously and get dataset items

Runs this Actor and waits for it to finish. The POST payload including its Content-Type header is passed as INPUT to the Actor (usually application/json). The HTTP response contains the Actor's dataset items, while the format of items depends on specifying dataset items' format parameter.

POSThttps://api.apify.com/v2/acts/jan.turon~pinecone-integration/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>

Hint: This endpoint can be used with both POST and GET request methods, but only the POST method allows you to pass input.

Run Actor synchronously

Runs this Actor and waits for it to finish. The POST payload including its Content-Type is passed as INPUT to the Actor (usually application/json) and the OUTPUT is returned in the HTTP response. The Actor is started with the default options; you can override them using various URL query parameters. Note that long HTTP connections might break.

POSThttps://api.apify.com/v2/acts/jan.turon~pinecone-integration/run-sync?token=<YOUR_API_TOKEN>

Hint: This endpoint can be used with both POST and GET request methods, but only the POST method allows you to pass input.

Run Actor

Runs this Actor. The POST payload including its Content-Type header is passed as INPUT to the Actor (typically application/json). The Actor is started with the default options; you can override them using various URL query parameters.

POSThttps://api.apify.com/v2/acts/jan.turon~pinecone-integration/runs?token=<YOUR_API_TOKEN>

Hint: By adding the method=POST query parameter, this API endpoint can be called using a GET request and thus used in third-party webhooks.

Get Actor

Returns settings of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/jan.turon~pinecone-integration?token=<YOUR_API_TOKEN>

Get list of Actor versions

Returns a list of versions of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/jan.turon~pinecone-integration/versions?token=<YOUR_API_TOKEN>

Get list of Actor webhooks

Returns a list of webhooks of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/jan.turon~pinecone-integration/webhooks?token=<YOUR_API_TOKEN>