algolia / algoliasearch-client-python

⚡️ A fully-featured and blazing-fast Python API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/python/?language=python
MIT License
196 stars 67 forks source link

Use Secured API Key with SearchClient #547

Closed nikevp closed 1 day ago

nikevp commented 1 year ago

Description

I am trying run search queries using a secured api key with this library. It does not appear SearchClient supports passing in a read only api key. Is a read only key supported by this library?

client = SearchClient.create('YourApplicationID', 'YourWriteAPIKey')
shortcuts commented 1 year ago

Is a read only key supported by this library?

Hey, the Algolia clients does not validate API keys, but forward errors from the REST API. You should be able to use any API keys, as long as the method used matches its scope