Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8816565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:39:02+00:00 2026-06-14T04:39:02+00:00

Been looking at the EBAY api tutorial http://developer.ebay.com/DevZone/finding/HowTo/GettingStarted_JS_NV_JSON/GettingStarted_JS_NV_JSON.html But I want to know how

  • 0

Been looking at the EBAY api tutorial

http://developer.ebay.com/DevZone/finding/HowTo/GettingStarted_JS_NV_JSON/GettingStarted_JS_NV_JSON.html

But I want to know how I can search according to category and keywords. I do this by using the operation findItemsAdvanced, but I don’t really know what do here. I have been trying to make it work but what i get back is an empty page. Here’s the html:

<html>
<head>
<title>eBay Search Results</title>
<style type="text/css">body { font-family: arial,sans-serif;} </style>
</head>
<body>
<h1>eBay Search Results</h1>
<div id="results"></div>
<script>
//Parse the response and build an HTML table to display search results
function _cb_findItemsAdvanced(root) {

      var items = root.findItemsByKeywordsResponse[0].searchResult[0].item || [];
      var html = [];
      html.push('<table width="100%" border="0" cellspacing="0" cellpadding="3"><tbody>');
      for (var i = 0; i < items.length; ++i) {
        var item     = items[i];
        var title    = item.title;
        var pic      = item.galleryURL;
        var viewitem = item.viewItemURL;
        var price    = item.sellingStatus[0].currentPrice[0].__value__;

        if (null != title && null != viewitem) {
          html.push('<tr><td>' + '<img src="' + pic + '" border="0">' + '</td>' +
          '<td><a href="' + viewitem + '" target="_blank">' + title + '</a></td>'+ '<td>' + price + "$" + '</td></tr>');
        }
      }
      html.push('</tbody></table>');
      document.getElementById("results").innerHTML = html.join("");

}  // End _cb_findItemsByKeywords() function
//Construct the request
//Replace MyAppID with your Production AppID
var url = "http://svcs.ebay.com/services/search/FindingService/v1";
 url += "?OPERATION-NAME=findItemsAdvanced";
 url += "&SERVICE-VERSION=1.0.0";
 url += "&SECURITY-APPNAME=AppID";
 url += "&GLOBAL-ID=EBAY-US";
 url += "&RESPONSE-DATA-FORMAT=JSON";
 url += "&callback=_cb_findItemsAdvanced";
 url += "&REST-PAYLOAD";
 url += "&categoryId=1"; // video game  
 url += "&keywords=digimon%20world%201"; // change value to game title 
 url += "&paginationInput.entriesPerPage=6"; 

//Submit the request
 s=document.createElement('script'); // create script element
 s.src= url;
 document.body.appendChild(s);
</script>

</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:39:03+00:00Added an answer on June 14, 2026 at 4:39 am

    There are two slight errors in your code.

    The first is the categoryId – in your example you’re specifying categoryId=1. For video games on the US eBay site this should be categoryId=139973. This should then give you results in your API call.

    The second problem is when you come to parse the API call on line 13:

    var items = root.findItemsByKeywordsResponse[0].searchResult[0].item || [];

    Your code is looking for a findItemsByKeywordsResponse but your API call is a findItemsAdvanced – therefore you need to change the line in your Javascript function to:

    var items = root.findItemsAdvancedResponse[0].searchResult[0].item || [];

    I’ve just tested this and it works perfectly!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

been looking but not much luck, i want to create a function that only
Been looking around on the web for one of these, but I'm only finding
Ive been looking for a proper rounding mechanism but nothing I find seems to
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
Been looking around the web, but not found anything so far... can anyone help?
I been looking thru the Android API and been looking for a way to
Been looking for a solution for a long while now, but still no success,
Been looking around but couldn't find anything that explain how to do something like
Been looking ( maybe in the wrong place) , but I'm wondering how do
Ive been looking at different solutions but do any of you guys know the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.