A SERVICE OF

logo

Chapter 1: Using the REST API 23
Legacy REST GetSearchResults Input
Version 3.7
Legacy REST GetSearchResults Input
Formerly, REST input parameters for GetSearchResults were similar to the legacy XML API input
parameters for GetSearchResults.
Now, all applications must be migrated from legacy input parameters to unified schema input
parameters. The unified schema is standardized and uses objects for data exchange.
This section of the REST API Guide may be applicable until you migrate all applications from legacy
input parameters to unified schema input parameters.
This section contains the following subsections:
“Legacy Samples for GetSearchResults” on page 23
“Legacy Affiliate Parameters for GetSearchResults” on page 23
“Legacy Input Parameters for GetSearchResults” on page 24
Legacy Samples for GetSearchResults
This section contains samples that use legacy GetSearchResults input parameters. All applications
must be migrated from legacy input parameters to unified schema input parameters. Please see the
following section of this guide for the unified schema GetSearchResults input parameters:
“GetSearchResults Input Parameters” on page 10. Also see the section “Root URLs, Containers, and
Repeating Parameters” on page 3.
This legacy input sample shows use of a
Query parameter to search eBay. The value of Query is "toy
boat" with the space character HTTP-encoded as %20:
http://rest.api.ebay.com/
restapi?CallName=GetSearchResults&RequestToken=UserToken&RequestUserId=UserName&Query=toy
%20boat&Schema=1&CompatibilityLevel=475
This legacy input sample shows use of a category ID in the request:
http://rest.api.ebay.com/
restapi?CallName=GetSearchResults&RequestToken=UserToken&RequestUserId=UserName&Category=6
17&Query=star+trek&Schema=1&CompatibilityLevel=475
This legacy input sample shows a search for listing titles and descriptions that contain "fuzzy
slippers"; a maximum of 5 results is returned:
http://rest.api.ebay.com/
restapi?CallName=GetSearchResults&RequestToken=UserToken&RequestUserId=UserName&Query=fuzz
y%20slippers&MaxResults=5&SearchInDescription=1&Schema=1&CompatibilityLevel=475
Legacy Affiliate Parameters for GetSearchResults
This sample shows use of affiliate parameters in GetSearchResults using legacy input parameters:
http://rest.api.ebay.com/
restapi?CallName=GetSearchResults&RequestToken=UserToken&RequestUserId=UserName&Query=tape