Chapter 1: Using the REST API 17
Obtain Item Data with GetItem
Version 3.7
The following location contains additional information about using GetProducts in the unified
schema, as well as links to related topics:
http://developer.ebay.com/DevZone/XML/docs/WebHelp/
index.htm?context=eBay_XML_API&topic=SearchingItemsWithQuery
After you have tested your program’s ability to handle output, you can use your program in
production to transform output or you can enable server-side processing. Server-side processing
uses your XSL files to format the output for you. For more information on server-side processing that
uses your XSL files, see “Transforming Data Returned” on page 20.
Obtain Item Data with GetItem
You can use GetItem to obtain detailed information about one item. GetItem takes an item ID as
input.
For example, you could use an URL similar to the following to obtain detailed information about the
item with the item ID of 123456789123:
http://rest.api.ebay.com/
restapi?CallName=GetItem&RequestToken=UserToken&RequestUserId=UserName&ItemID=1234567891
23&Version=491
Optionally, you can specify other parameters, such as a detail level, to modify the data returned. For
example, to use the
DetailLevel parameter that is specifically for getting attribute information, you
could specify an URL similar to the following:
http://rest.api.ebay.com/
restapi?CallName=GetItem&RequestToken=UserToken&RequestUserId=UserName&ItemID=1234567891
23&DetailLevel=ItemReturnAttributes&Version=491
Parameters for GetItem are the same in the REST API as in the unified schema, except for the REST-
specific input parameters. For the REST-specific input parameters, see “Basic REST Input
Parameters” on page 3. For more information about using GetItem, including descriptions of the call-
specific input and output parameters, see the following document:
GetItem
General information about the unified schema format is available at the following location:
http://developer.ebay.com/support/docs/
After you have tested your program’s ability to handle output, you can use your program in
production to transform output or you can enable server-side processing. Server-side processing
uses your XSL files to format the output for you. For more information on server-side processing that
uses your XSL files, see “Transforming Data Returned” on page 20.