The Agility Search REST API allows developers to query your indexed data. There are four methods that can be used after initializing the JS API with following snippet, which can be generated from the Agility Search Dashboard of your instance.
Search API Initialization
websiteName: "Your Website Name",
authKey: "an auth key"