Core API
...
Core Requests
Search
4 min
search parameters get get /request the search parameters are applicable when making a request with type=search to retrieve search results for an ebay domain the ebay domain is specified using the ebay domain parameter and the search term is specified in the search term parameter the parameters should be appended as querystring parameters to the ebay product data api get http request search results are retrieved from the search results page https //www ebay com/sch/i html? nkw=memory+cards on ebay for example, to request search results for the search term "memory cards" sorted by "high to low price", on ebay com , the request would be http https //api countdownapi com/request?api key=demo\&type=search\&ebay domain=ebay com\&search term=memory+cards\&sort by=price high to lowcurl l get https //api countdownapi com/request \\ d api key="demo" \\ d type="search" \\ d ebay domain="ebay com" \\ d search term="memory+cards" \\ d sort by="price high to low"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "search", ebay domain "ebay com", search term "memory cards", sort by "price high to low" } // make the http get request to countdown api axios get('https //api countdownapi com/request', { params }) then(response => { // print the json response from countdown api console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'type' 'search', 'ebay domain' 'ebay com', 'search term' 'memory cards', 'sort by' 'price high to low' } \# make the http get request to countdown api api result = requests get('https //api countdownapi com/request', params) \# print the json response from countdown api print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'type' => 'search', 'ebay domain' => 'ebay com', 'search term' => 'memory cards', 'sort by' => 'price high to low' ]); \# make the http get request to countdown api $ch = curl init(sprintf('%s?%s', 'https //api countdownapi com/request', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response from countdown api echo $api result; ?> search parameters the following parameters are available for all requests made when type=search true falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type next steps search results https //docs trajectdata com/countdownapi/ebay product data api/results/search