How to Create Autocomplete Amazon Keyword Suggestion With Jquery – I will share how to create autocomplete amazon keyword suggestion with jquery. If you have a website that is affiliated with Amazon, the amazon suggestion has an important role to assist the user on finding the desired product. As a developer, suggestion can be used to display the relevant products, it could be to get a set of ASIN codes.

Autocomplete Amazon Keyword Suggestion With Jquery Free Script

Let’s start the tutorial how to create autocomplete amazon keyword suggestion

URL for getting Amazon suggestion is as follows"your keyword"

an example :

We will get the results as shown below

How To Create Amazon Keyword Suggestion Tools

We can show the results of amazon suggestion with a good interface, we just need autocomplete script from jquery

Create new php file and copy the following code

<!-- Author: Sigit Prasetya Nugroho Author URI: Tutorial URI: Description: Amazon Keyword Suggestion tools Version: 1.0.0 -->
	<title>Amazon suggestion</title>
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src="//"></script>

<div class="container search-content">

<h3>Example Amazon Keyword Suggestion</h3>

<div class="input-group">
					<input type="text" class="form-control" id="searchbox" placeholder="Search for...">

<!-- /input-group -->

<script type="text/javascript">
$(document).ready(function() {
        source: function(Query, Response) {
            	url: "",
		          dataType: "jsonp",
		          data: {
		            q: Query.term,
		            "search-alias": "aps",
		            client: "amazon-search-ui",
		            mkt: 1,

                success: function(Data) {

                    if (Data) {
                        var DataArr = Data.toString().split(',');
                        var Queries = new Array();
                        for (var q = 1; q < (DataArr.length - 1); q++) {
                            DataArr[q] = $.trim(DataArr[q]);
                            if (0 < DataArr[q].length && DataArr[q] != '[object Object]' && !$.isNumeric(DataArr[q])) {
                        if (0 < Queries.length) {
        delay: 1000,
        minLength: 2

Example demo :

See the Pen Amazon suggestion tools by Sigit Prasetya Nugroho (@seegatesite) on CodePen

Its easy right, read my another article about amazon affiliate tips and tutorial here.

Thus article create autocomplete amazon keyword suggestion with jquery, hope useful 🙂

The following two tabs change content below.
This site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.


 Add your comment
  1. Hi, this is great and working fine thank you! Just I have a small problem, I need to refresh my page after the suggestion, because of it don’t working if I try to write something to input field. Only if I refresh the page after work again. Could you recommend something, how we can solve this problem?

Leave a Comment

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.

%d bloggers like this: