The Agility Website Search API is a JSON REST API with only a few methods to learn.
You first need to get the embed code from the Agility Search Dashboard by clicking "GENERATE" on the Generate Embed Script section.
The Agility Website Search JS SDK has a dependency on jQuery. You'll need to ensure that it is loaded prior to loading the following script.
<script src="https://search.agilitycms.com/scripts/agility-search.min.js"></script>
<script type="text/javascript">
Agility.Search.Init({ url: "https://search.agilitycms.com", websiteName: "MySiteName", lang:"", authKey: "xxxxxxxxxxxxxx" });
</script>
Now, you can either use the simple embed method or write your own Javascript code to use the REST API.
Comments
Please sign in to leave a comment.