Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 33.4 KB

SearchByImageApi.md

File metadata and controls

87 lines (62 loc) · 33.4 KB

Ebay\SearchByImageApi

All URIs are relative to https://api.ebay.com/buy/browse/v1.

Method HTTP request Description
searchByImage() POST /item_summary/search_by_image

searchByImage()

searchByImage($aspect_filter, $category_ids, $charity_ids, $fieldgroups, $filter, $limit, $offset, $sort, $search_by_image_request): \Ebay\Model\Buy\Browse\SearchPagedCollection

<img src="/cms/img/docs/experimental-icon.svg" class="legend-icon experimental-icon" alt="Experimental Release" title="Experimental Release"> This is an <a href="https://developer.ebay.com/api-docs/static/versioning.html#experimental\">Experimental method.

This method searches for eBay items based on a image and retrieves summaries of the items. You pass in a Base64 image in the request payload and can refine the search by category, or eBay product ID (ePID), or a combination of these using URI parameters.

To get the Base64 image string, you can use sites such as <a href="https://codebeautify.org/image-to-base64-converter\" target="_blank">https://codebeautify.org/image-to-base64-converter.

This method also supports the following:

  • Filtering by the value of one or multiple fields, such as listing format, item condition, price range, location, and more. For the fields supported by this method, see the <a href="#uri.filter">filter parameter.
  • Filtering by item aspects using the <a href="#uri.aspect_filter">aspect_filter parameter.

For details and examples of these capabilities, see <a href="/api-docs/buy/static/api-browse.html">Browse API in the Buying Integration Guide.

Pagination and sort controls

There are pagination controls (limit and offset fields) and sort query parameters that control/sort the data that is returned. By default, the results are sorted by "Best Match". For more information about Best Match, see the eBay help page <a href="https://pages.ebay.com/help/sell/searchstanding.html\" target="_blank">Best Match.

URLs for this method

Request headers

This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, <a href="/api-docs/buy/static/api-browse.html#Headers">Request headers in the Buying Integration Guide.

URL Encoding for Parameters

Query parameter values need to be URL encoded. For details, see <a href="/api-docs/static/rest-request-components.html#parameters">URL encoding query parameter values. For readability, code examples in this document have not been URL encoded.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see <a href="/api-docs/buy/browse/overview.html#API">API Restrictions.

<span class="tablenote">eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: api_auth
$config = Ebay\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure OAuth2 access token for authorization: api_auth
$config = Ebay\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Api\SearchByImageApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$aspect_filter = 'aspect_filter_example'; // string | This field lets you filter by item aspects. The aspect name/value pairs and category, which is required, is used to limit the results to specific aspects of the item. For example, in a clothing category one aspect pair would be Color/Red. <br /><br />For example, the method below uses the category ID for Women's Clothing. This will return only items for a woman's red shirt.<br /><br /><code>category_ids=15724&aspect_filter=categoryId:15724,Color:{Red}</code>  <br /><br /><b>Required: </b> The category ID is required <i>twice</i>; once as a URI parameter and as part of the <b> aspect_filter</b>. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/gct:AspectFilter
$category_ids = 'category_ids_example'; // string | The category ID is used to limit the results. This field can have one category ID or a comma separated list of IDs.    <br /><br /><span class=\"tablenote\"><b> Note: </b>Currently, you can pass in only one category ID per request.</span> <br /> <br />You can also use any combination of the <b> category_Ids</b> and <b> epid</b> fields. This gives you additional control over the result set.<br /> <br />The list of eBay category IDs is not published and category IDs are not the same across all the eBay marketplaces. You can use the following techniques to find a category by site: <ul> <li>Use the <a href=\"https://pages.ebay.com/sellerinformation/news/categorychanges.html\" target=\"_blank\">Category Changes page</a>.</li> <li>Use the Taxonomy API. For details see <a href=\"/api-docs/buy/buy-categories.html\">Get Categories for Buy APIs</a>. </li>  <li>Submit the following method to get the <b> dominantCategoryId</b> for an item. <br /><code>/buy/browse/v1/item_summary/search?q=<em > keyword</em>&fieldgroups=ASPECT_REFINEMENTS  </code></li></ul>   <b> Required: </b> The method must have <b> category_ids</b> or <b> epid</b> (or any combination of these)
$charity_ids = 'charity_ids_example'; // string | The charity ID is used to limit the results to only items associated with the specified charity. This field can have one charity ID or a comma separated list of IDs. The method will return all the items associated with the specified charities.<br /><br /> <b>For example:</b><br /><code>/buy/browse/v1/item_summary/search?charity_ids=13-1788491,300108469</code><br /><br />The charity ID is the charity's registration ID, also known as the Employer Identification Number (EIN). In GB, it is the Charity Registration Number (CRN), commonly called \"Charity Number\".   <ul><li>To find the charities eBay supports, you can search for a charity at <a href=\"https://charity.ebay.com/search\" target=\"_blank\">Charity Search </a> or go to <a href=\"https://www.ebay.com/b/Charity/bn_7114598164\" target=\"_blank\">Charity Shop</a>.</li>   <li>To find the charity ID of a specific charity, click on a charity and use the EIN number. For example, the charity ID for  <a href=\"https://charity.ebay.com/charity/American-Red-Cross/3843\" target=\"_blank\">American Red Cross</a>, is <code>530196605</code>.</li></ul> You  can also use any combination of the <code>category_Ids</code> and <code>q</code> fields with a <code>charity_Ids</code> to filter the result set. This gives you additional control over the result set. <br /><br /><b>Restriction: </b> This is supported only on the US and GB marketplaces.<br /><br /><b>Maximum: </b> 20 IDs <br /><br /><b>Required:</b> One ID
$fieldgroups = 'fieldgroups_example'; // string | This field is a comma separated list of values that lets you control what is returned in the response. The default is <b> MATCHING_ITEMS</b>, which returns the items that match the keyword or category specified. The other values return data that can be used to create histograms or provide additional information.  <br /><br /><b> Valid Values: </b> <ul>    <li><b> ASPECT_REFINEMENTS</b> - This returns the <a href=\"#response.refinement.aspectDistributions\">aspectDistributions</a> container, which has the <b> dominantCategoryId</b>, <b> matchCount</b>, and <b> refinementHref</b> for the various aspects of the items found. For example, if you searched for 'Mustang', some of the aspect would be <b> Model Year</b>,  <b> Exterior Color</b>, <b> Vehicle Mileage</b>, etc. <br /> <br /><span class=\"tablenote\"> <b>Note: </b> ASPECT_REFINEMENTS are category specific.</span> <br /><br /></li>   <li><b> BUYING_OPTION_REFINEMENTS</b> - This returns the <a href=\"#response.refinement.buyingOptionDistributions\">buyingOptionDistributions</a>  container, which has the <b> matchCount</b> and <b> refinementHref</b> for <b> AUCTION</b> and <b> FIXED_PRICE</b> (Buy It Now) items. <br /><br /><span class=\"tablenote\"> <b>Note: </b>Classified items are not supported and only \"Buy It Now\" (non-auction) items are returned.</span> <br /><br /> </li>   <li><b> CATEGORY_REFINEMENTS</b> - This returns the <a href=\"#response.refinement.categoryDistributions\">categoryDistributions</a> container, which has the categories that the item is in.   </li>   <li><b> CONDITION_REFINEMENTS</b> - This returns the <a href=\"#response.refinement.conditionDistributions\">conditionDistributions</a>  container, such as <b> NEW</b>, <b> USED</b>, etc. Within these groups are multiple states of the condition. For example, <b> New </b> can be New without tag, New in box, New without box, etc. </li>   <li><b> EXTENDED</b> - This returns the <a href=\"/api-docs/buy/browse/resources/item_summary/methods/search#response.itemSummaries.shortDescription\">shortDescription</a> field, which provides condition and item aspect information and the <a href=\"/api-docs/buy/browse/resources/item_summary/methods/search#response.itemSummaries.itemLocation.city\">itemLocation.city</a> field.   </li>  <li><b> MATCHING_ITEMS</b> - This is meant to be used with one or more of the refinement values above. You use this to return the specified refinements and all the matching items. </li> <li><b> FULL </b> - This returns all the refinement containers and all the matching items.</li>   </ul> Code so that your app gracefully handles any future changes to this list.  <br /><br /><b>Default: </b> MATCHING_ITEMS
$filter = 'filter_example'; // string | This field supports multiple field filters that can be used to limit/customize the result set. <br /><br /><b> For example: </b><br /><code>/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50]</code><br /><br />You can also combine filters. <br /><code>/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50],sellers:{rpseller|bigSal} </code>   <br /><br />The following are the supported filters. For details and examples for all the filters, see <a href=\"/api-docs/buy/static/ref-buy-browse-filters.html\">Buy API Field Filters</a>. <div style=\"overflow-x:auto;\"> <table>  <tr>  <td>  <ul>  <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#bidCount\">bidCount</a> </li><li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#buyingOptions\">buyingOptions</a> </li>  <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#charityOnly\">charityOnly</a> </li>  <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#conditionIds\">conditionIds</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#conditions\">conditions</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#deliveryCountry\">deliveryCountry</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#deliveryOptions\">deliveryOptions</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#deliveryPostalCode\">deliveryPostalCode</a> </li>   <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#excludeCategoryIds\">excludeCategoryIds</a> </li>  </ul></td> <td>  <ul>   <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#excludeSellers\">excludeSellers</a> </li> <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#guaranteedDeliveryInDays\">guaranteedDeliveryInDays</a> </li>     <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#itemEndDate\">itemEndDate</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#itemLocationCountry\">itemLocationCountry</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#itemStartDate\">itemStartDate</a> </li>  <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#maxDeliveryCost\">maxDeliveryCost</a></li>  <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#paymentMethods\">paymentMethods</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#pickupCountry\">pickupCountry</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#pickupPostalCode\">pickupPostalCode</a> </li>  </ul> </td>   <td>  <ul>   <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#pickupRadius\">pickupRadius</a> </li>   <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#pickupRadiusUnit\">pickupRadiusUnit</a> </li>  <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#price\">price</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#priceCurrency\">priceCurrency</a> </li>  <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#qualifiedPrograms\">qualifiedPrograms</a> </li>          <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#returnsAccepted\">returnsAccepted</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#sellerAccountTypes\">sellerAccountTypes</a> </li>    <li><a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#sellers\">sellers</a> </li>  </ul></td>  </tr>  </table>  </div> For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:FilterField
$limit = 'limit_example'; // string | The number of items, from the result set, returned in a single page.  <br /><br /><b> Default:</b> 50   <br /> <br /><b> Maximum number of items per page (limit): </b>200  <br /> <br /> <b> Maximum number of items in a result set: </b> 10,000
$offset = 'offset_example'; // string | The number of items to skip in the result set. This is used with the <b> limit</b> field to control the pagination of the output.  <br /><br />If <b> offset</b> is 0 and <b> limit</b> is 10, the method will retrieve items 1-10 from the list of items returned, if <b> offset</b> is 10 and <b> limit</b> is 10, the method will retrieve items 11 thru 20 from the list of items returned.  <br /><br /><b> Valid Values</b>: 0-10,000 (inclusive)   <br /> <br /> <b> Default:</b> 0    <br /> <br /> <b> Maximum number of items returned: </b> 10,000
$sort = 'sort_example'; // string | Specifies the order and the field name to use to sort the items. <br /><br />You can sort items by price (in ascending or descending order) or by distance (only applicable if the <a href=\"/api-docs/buy/static/ref-buy-browse-filters.html#pickupCountry\">\"pickup\" filters</a> are used, and only ascending order is supported). You can also sort items by listing date, with the most recently listed (newest) items appearing first.<br /><br /><span class=\"tablenote\"><b>Note: </b> To sort in descending order, insert a hyphen (<code>-</code>) before the field name. If no <b>sort</b> parameter is submitted, the result set is sorted by &quot;<a href=\"https://pages.ebay.com/help/sell/searchstanding.html\" target=\"_blank\">Best Match</a>&quot;.</span><br /><br />The following are examples of using the <b> sort</b> query parameter.<br /><br /><table><tr><th>Sort</th><th>Result</th>  </tr> <tr> <td><code>sort=price</code></td>  <td> Sorts by <b> price</b> in ascending order (lowest price first)</td> </tr>   <tr>  <td><code>sort=-price</code></td>  <td> Sorts by <b> price</b> in descending order (highest price first)</td> </tr>   <tr>  <td><code>sort=distance</code></td>  <td> Sorts by <b> distance</b> in ascending order (shortest distance first)</td> </tr> <tr> <td><code>sort=newlyListed</code></td>  <td>Sorts by <b>listing date</b> (most recently listed/newest items first)</td> </tr> <tr> <td><code>sort=endingSoonest</code></td>  <td>Sorts by <b>date/time</b> the listing ends (listings nearest to end date/time first)</td> </tr>  </table>  <br /><b> Default: </b> Ascending For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:SortField
$search_by_image_request = new \Ebay\Model\Buy\Browse\SearchByImageRequest(); // \Ebay\Model\Buy\Browse\SearchByImageRequest | The container for the image information fields.

try {
    $result = $apiInstance->searchByImage($aspect_filter, $category_ids, $charity_ids, $fieldgroups, $filter, $limit, $offset, $sort, $search_by_image_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SearchByImageApi->searchByImage: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
aspect_filter string This field lets you filter by item aspects. The aspect name/value pairs and category, which is required, is used to limit the results to specific aspects of the item. For example, in a clothing category one aspect pair would be Color/Red. <br /><br />For example, the method below uses the category ID for Women's Clothing. This will return only items for a woman's red shirt.<br /><br /><code>category_ids=15724&aspect_filter=categoryId:15724,Color:{Red}</code> <br /><br /><b>Required: </b> The category ID is required <i>twice</i>; once as a URI parameter and as part of the <b> aspect_filter</b>. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/gct:AspectFilter [optional]
category_ids string The category ID is used to limit the results. This field can have one category ID or a comma separated list of IDs. <br /><br /><span class=&quot;tablenote&quot;><b> Note: </b>Currently, you can pass in only one category ID per request.</span> <br /> <br />You can also use any combination of the <b> category_Ids</b> and <b> epid</b> fields. This gives you additional control over the result set.<br /> <br />The list of eBay category IDs is not published and category IDs are not the same across all the eBay marketplaces. You can use the following techniques to find a category by site: <ul> <li>Use the <a href=&quot;https://pages.ebay.com/sellerinformation/news/categorychanges.html\" target=&quot;_blank&quot;>Category Changes page</a>.</li> <li>Use the Taxonomy API. For details see <a href=&quot;/api-docs/buy/buy-categories.html&quot;>Get Categories for Buy APIs</a>. </li> <li>Submit the following method to get the <b> dominantCategoryId</b> for an item. <br /><code>/buy/browse/v1/item_summary/search?q=<em > keyword</em>&fieldgroups=ASPECT_REFINEMENTS </code></li></ul> <b> Required: </b> The method must have <b> category_ids</b> or <b> epid</b> (or any combination of these) [optional]
charity_ids string The charity ID is used to limit the results to only items associated with the specified charity. This field can have one charity ID or a comma separated list of IDs. The method will return all the items associated with the specified charities.<br /><br /> <b>For example:</b><br /><code>/buy/browse/v1/item_summary/search?charity_ids=13-1788491,300108469</code><br /><br />The charity ID is the charity's registration ID, also known as the Employer Identification Number (EIN). In GB, it is the Charity Registration Number (CRN), commonly called &quot;Charity Number&quot;. <ul><li>To find the charities eBay supports, you can search for a charity at <a href=&quot;https://charity.ebay.com/search\" target=&quot;_blank&quot;>Charity Search </a> or go to <a href=&quot;https://www.ebay.com/b/Charity/bn_7114598164\" target=&quot;_blank&quot;>Charity Shop</a>.</li> <li>To find the charity ID of a specific charity, click on a charity and use the EIN number. For example, the charity ID for <a href=&quot;https://charity.ebay.com/charity/American-Red-Cross/3843\" target=&quot;_blank&quot;>American Red Cross</a>, is <code>530196605</code>.</li></ul> You can also use any combination of the <code>category_Ids</code> and <code>q</code> fields with a <code>charity_Ids</code> to filter the result set. This gives you additional control over the result set. <br /><br /><b>Restriction: </b> This is supported only on the US and GB marketplaces.<br /><br /><b>Maximum: </b> 20 IDs <br /><br /><b>Required:</b> One ID [optional]
fieldgroups string This field is a comma separated list of values that lets you control what is returned in the response. The default is <b> MATCHING_ITEMS</b>, which returns the items that match the keyword or category specified. The other values return data that can be used to create histograms or provide additional information. <br /><br /><b> Valid Values: </b> <ul> <li><b> ASPECT_REFINEMENTS</b> - This returns the <a href=&quot;#response.refinement.aspectDistributions&quot;>aspectDistributions</a> container, which has the <b> dominantCategoryId</b>, <b> matchCount</b>, and <b> refinementHref</b> for the various aspects of the items found. For example, if you searched for 'Mustang', some of the aspect would be <b> Model Year</b>, <b> Exterior Color</b>, <b> Vehicle Mileage</b>, etc. <br /> <br /><span class=&quot;tablenote&quot;> <b>Note: </b> ASPECT_REFINEMENTS are category specific.</span> <br /><br /></li> <li><b> BUYING_OPTION_REFINEMENTS</b> - This returns the <a href=&quot;#response.refinement.buyingOptionDistributions&quot;>buyingOptionDistributions</a> container, which has the <b> matchCount</b> and <b> refinementHref</b> for <b> AUCTION</b> and <b> FIXED_PRICE</b> (Buy It Now) items. <br /><br /><span class=&quot;tablenote&quot;> <b>Note: </b>Classified items are not supported and only &quot;Buy It Now&quot; (non-auction) items are returned.</span> <br /><br /> </li> <li><b> CATEGORY_REFINEMENTS</b> - This returns the <a href=&quot;#response.refinement.categoryDistributions&quot;>categoryDistributions</a> container, which has the categories that the item is in. </li> <li><b> CONDITION_REFINEMENTS</b> - This returns the <a href=&quot;#response.refinement.conditionDistributions&quot;>conditionDistributions</a> container, such as <b> NEW</b>, <b> USED</b>, etc. Within these groups are multiple states of the condition. For example, <b> New </b> can be New without tag, New in box, New without box, etc. </li> <li><b> EXTENDED</b> - This returns the <a href=&quot;/api-docs/buy/browse/resources/item_summary/methods/search#response.itemSummaries.shortDescription&quot;>shortDescription</a> field, which provides condition and item aspect information and the <a href=&quot;/api-docs/buy/browse/resources/item_summary/methods/search#response.itemSummaries.itemLocation.city&quot;>itemLocation.city</a> field. </li> <li><b> MATCHING_ITEMS</b> - This is meant to be used with one or more of the refinement values above. You use this to return the specified refinements and all the matching items. </li> <li><b> FULL </b> - This returns all the refinement containers and all the matching items.</li> </ul> Code so that your app gracefully handles any future changes to this list. <br /><br /><b>Default: </b> MATCHING_ITEMS [optional]
filter string This field supports multiple field filters that can be used to limit/customize the result set. <br /><br /><b> For example: </b><br /><code>/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50]</code><br /><br />You can also combine filters. <br /><code>/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50],sellers:{rpseller bigSal} </code> <br /><br />The following are the supported filters. For details and examples for all the filters, see <a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html&quot;>Buy API Field Filters</a>. <div style=&quot;overflow-x:auto;&quot;> <table> <tr> <td> <ul> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#bidCount&quot;>bidCount</a> </li><li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#buyingOptions&quot;>buyingOptions</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#charityOnly&quot;>charityOnly</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#conditionIds&quot;>conditionIds</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#conditions&quot;>conditions</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#deliveryCountry&quot;>deliveryCountry</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#deliveryOptions&quot;>deliveryOptions</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#deliveryPostalCode&quot;>deliveryPostalCode</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#excludeCategoryIds&quot;>excludeCategoryIds</a> </li> </ul></td> <td> <ul> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#excludeSellers&quot;>excludeSellers</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#guaranteedDeliveryInDays&quot;>guaranteedDeliveryInDays</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#itemEndDate&quot;>itemEndDate</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#itemLocationCountry&quot;>itemLocationCountry</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#itemStartDate&quot;>itemStartDate</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#maxDeliveryCost&quot;>maxDeliveryCost</a></li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#paymentMethods&quot;>paymentMethods</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#pickupCountry&quot;>pickupCountry</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#pickupPostalCode&quot;>pickupPostalCode</a> </li> </ul> </td> <td> <ul> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#pickupRadius&quot;>pickupRadius</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#pickupRadiusUnit&quot;>pickupRadiusUnit</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#price&quot;>price</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#priceCurrency&quot;>priceCurrency</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#qualifiedPrograms&quot;>qualifiedPrograms</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#returnsAccepted&quot;>returnsAccepted</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#sellerAccountTypes&quot;>sellerAccountTypes</a> </li> <li><a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#sellers&quot;>sellers</a> </li> </ul></td> </tr> </table> </div> For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:FilterField
limit string The number of items, from the result set, returned in a single page. <br /><br /><b> Default:</b> 50 <br /> <br /><b> Maximum number of items per page (limit): </b>200 <br /> <br /> <b> Maximum number of items in a result set: </b> 10,000 [optional]
offset string The number of items to skip in the result set. This is used with the <b> limit</b> field to control the pagination of the output. <br /><br />If <b> offset</b> is 0 and <b> limit</b> is 10, the method will retrieve items 1-10 from the list of items returned, if <b> offset</b> is 10 and <b> limit</b> is 10, the method will retrieve items 11 thru 20 from the list of items returned. <br /><br /><b> Valid Values</b>: 0-10,000 (inclusive) <br /> <br /> <b> Default:</b> 0 <br /> <br /> <b> Maximum number of items returned: </b> 10,000 [optional]
sort string Specifies the order and the field name to use to sort the items. <br /><br />You can sort items by price (in ascending or descending order) or by distance (only applicable if the <a href=&quot;/api-docs/buy/static/ref-buy-browse-filters.html#pickupCountry&quot;>&quot;pickup&quot; filters</a> are used, and only ascending order is supported). You can also sort items by listing date, with the most recently listed (newest) items appearing first.<br /><br /><span class=&quot;tablenote&quot;><b>Note: </b> To sort in descending order, insert a hyphen (<code>-</code>) before the field name. If no <b>sort</b> parameter is submitted, the result set is sorted by &quot;<a href=&quot;https://pages.ebay.com/help/sell/searchstanding.html\" target=&quot;_blank&quot;>Best Match</a>&quot;.</span><br /><br />The following are examples of using the <b> sort</b> query parameter.<br /><br /><table><tr><th>Sort</th><th>Result</th> </tr> <tr> <td><code>sort=price</code></td> <td> Sorts by <b> price</b> in ascending order (lowest price first)</td> </tr> <tr> <td><code>sort=-price</code></td> <td> Sorts by <b> price</b> in descending order (highest price first)</td> </tr> <tr> <td><code>sort=distance</code></td> <td> Sorts by <b> distance</b> in ascending order (shortest distance first)</td> </tr> <tr> <td><code>sort=newlyListed</code></td> <td>Sorts by <b>listing date</b> (most recently listed/newest items first)</td> </tr> <tr> <td><code>sort=endingSoonest</code></td> <td>Sorts by <b>date/time</b> the listing ends (listings nearest to end date/time first)</td> </tr> </table> <br /><b> Default: </b> Ascending For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:SortField [optional]
search_by_image_request \Ebay\Model\Buy\Browse\SearchByImageRequest The container for the image information fields. [optional]

Return type

\Ebay\Model\Buy\Browse\SearchPagedCollection

Authorization

api_auth, api_auth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]