How do I make algolia search work with kitsu’s anime content api — using the index/indices and key/s provided by kitsu?

I cant seem to figure out how to connect algolia/algoliasearch to kitsu api: https://hummingbird-me.github.io/api-docs/#tag/Algolia

I was able to do the OAuth part. I am now trying to connect it to algolia.

Per kitsu:

Kitsu uses Algolia for searching. Algolia’s search provides more accurate search results and allows you to build complex search filters to find exactly what you want.

And as per the documentation I need to retrieve the keys and indices that I will use to connect to algolia:

All Algolia Keys – Get all the Algolia Keys needed to search Kitsu with Algolia.

So I was able to that as well — I had to fetch it from kitsu:

fetch('https://kitsu.io/api/edge/algolia-keys')
    .then(res => res.json())
    .then(data => console.log(data))

screenshot of the keys / indices

I have tried creating an account with algolia. I found tutorials but all of them would just create their own index and import dummy JSON data.

I was able to do this (create a new empty index from scratch):

https://github.com/algolia-samples/api-clients-quickstarts/blob/master/javascript/simple.js

…but it is still not giving any hint or example how to consume or use an external key or index that is not from my own algolia account. I just need to use the index and key that i got from that GET request from kitsu so that i can implement search using algolia on kitsu’s anime content on the website im trying to build.