Etsy API call for standard search
<p>What is the <code>Esty</code> api call for the standard search on <a href="https://www.etsy.com/" rel="nofollow">etsy.com</a>?<br>
I would like to get the number of results when searching for "winter giraffe" on <code>etsy.com</code>, which is 472.</p>

<p>So far, I have:</p>

<pre><code>String api_key = ...;
String terms = "winter+giraffe";

try{

        String output = getHTML("https://openapi.etsy.com/v2/listings/active.js?keywords="+
                       terms+"&amp;limit=12&amp;includes=Images:1&amp;api_key="+api_key);
        String input = output;
        int index = input.indexOf("listing_id");
        int count = 0;
        while (index != -1) {
                count++;
                input = input.substring(index + 1);
                index = input.indexOf("listing_id");
        }
        System.out.println("\nNo of listings is : " + count);


       }
       catch(Exception e){System.out.println("Something went wrong.");}
</code></pre>

<p>The problem is that this gives me </p>

<blockquote>
  <p>"No of listings is :24" </p>
</blockquote>

<p>Also, in the output string, it says : </p>

<blockquote>
  <p>"count":50100. So that is also not it..</p>
</blockquote>