@@ -16,6 +16,7 @@ All URIs are relative to *https://scrapebadger.com*
1616| [ ** EbayKeywordSuggestions** ] ( EBayApi.md#ebaykeywordsuggestions ) | ** GET** /v1/ebay/autocomplete | Keyword suggestions |
1717| [ ** EbayListCategories** ] ( EBayApi.md#ebaylistcategories ) | ** GET** /v1/ebay/categories | List categories |
1818| [ ** EbayListMarkets** ] ( EBayApi.md#ebaylistmarkets ) | ** GET** /v1/ebay/markets | List markets |
19+ | [ ** EbaySearchByImage** ] ( EBayApi.md#ebaysearchbyimage ) | ** POST** /v1/ebay/search/by-image | Search by image |
1920| [ ** EbaySearchListings** ] ( EBayApi.md#ebaysearchlistings ) | ** GET** /v1/ebay/search | Search listings |
2021
2122<a id =" ebaybrowseacategory " ></a >
@@ -1260,6 +1261,107 @@ This endpoint does not need any parameter.
12601261
12611262[[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
12621263
1264+ <a id =" ebaysearchbyimage " ></a >
1265+ # ** EbaySearchByImage**
1266+ > Object EbaySearchByImage (Dictionary<string, Object> requestBody)
1267+
1268+ Search by image
1269+
1270+ Search active listings by image, the way eBay's camera icon does. No `` sort_by `` : eBay ignores it on a visual results page.
1271+
1272+ ### Example
1273+ ``` csharp
1274+ using System .Collections .Generic ;
1275+ using System .Diagnostics ;
1276+ using System .Net .Http ;
1277+ using ScrapeBadger .Api ;
1278+ using ScrapeBadger .Client ;
1279+ using ScrapeBadger .Model ;
1280+
1281+ namespace Example
1282+ {
1283+ public class EbaySearchByImageExample
1284+ {
1285+ public static void Main ()
1286+ {
1287+ Configuration config = new Configuration ();
1288+ config .BasePath = " https://scrapebadger.com" ;
1289+ // Configure API key authorization: ApiKeyAuth
1290+ config .AddApiKey (" X-API-Key" , " YOUR_API_KEY" );
1291+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
1292+ // config.AddApiKeyPrefix("X-API-Key", "Bearer");
1293+
1294+ // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
1295+ HttpClient httpClient = new HttpClient ();
1296+ HttpClientHandler httpClientHandler = new HttpClientHandler ();
1297+ var apiInstance = new EBayApi (httpClient , config , httpClientHandler );
1298+ var requestBody = new Dictionary <string , Object >(); // Dictionary<string, Object> |
1299+
1300+ try
1301+ {
1302+ // Search by image
1303+ Object result = apiInstance .EbaySearchByImage (requestBody );
1304+ Debug .WriteLine (result );
1305+ }
1306+ catch (ApiException e )
1307+ {
1308+ Debug .Print (" Exception when calling EBayApi.EbaySearchByImage: " + e .Message );
1309+ Debug .Print (" Status Code: " + e .ErrorCode );
1310+ Debug .Print (e .StackTrace );
1311+ }
1312+ }
1313+ }
1314+ }
1315+ ```
1316+
1317+ #### Using the EbaySearchByImageWithHttpInfo variant
1318+ This returns an ApiResponse object which contains the response data, status code and headers.
1319+
1320+ ``` csharp
1321+ try
1322+ {
1323+ // Search by image
1324+ ApiResponse < Object > response = apiInstance .EbaySearchByImageWithHttpInfo (requestBody );
1325+ Debug .Write (" Status Code: " + response .StatusCode );
1326+ Debug .Write (" Response Headers: " + response .Headers );
1327+ Debug .Write (" Response Body: " + response .Data );
1328+ }
1329+ catch (ApiException e )
1330+ {
1331+ Debug .Print (" Exception when calling EBayApi.EbaySearchByImageWithHttpInfo: " + e .Message );
1332+ Debug .Print (" Status Code: " + e .ErrorCode );
1333+ Debug .Print (e .StackTrace );
1334+ }
1335+ ```
1336+
1337+ ### Parameters
1338+
1339+ | Name | Type | Description | Notes |
1340+ | ------| ------| -------------| -------|
1341+ | ** requestBody** | [ ** Dictionary< ; string, Object> ; ** ] ( Object.md ) | | |
1342+
1343+ ### Return type
1344+
1345+ ** Object**
1346+
1347+ ### Authorization
1348+
1349+ [ ApiKeyAuth] ( ../README.md#ApiKeyAuth )
1350+
1351+ ### HTTP request headers
1352+
1353+ - ** Content-Type** : application/json
1354+ - ** Accept** : application/json
1355+
1356+
1357+ ### HTTP response details
1358+ | Status code | Description | Response headers |
1359+ | -------------| -------------| ------------------|
1360+ | ** 200** | Successful Response | - |
1361+ | ** 422** | Validation Error | - |
1362+
1363+ [[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
1364+
12631365<a id =" ebaysearchlistings " ></a >
12641366# ** EbaySearchListings**
12651367> Object EbaySearchListings (string query, string domain = null, string categoryId = null, int? page = null, int? perPage = null, string sortBy = null, string condition = null, string buyingFormat = null, decimal? minPrice = null, decimal? maxPrice = null, bool? freeShipping = null, string location = null, string language = null)
0 commit comments