04-17-2025 07:53 AM - edited 04-17-2025 07:54 AM
Hi everyone.
I've an issue while making search item with a very specific keyword.
I use ebay SDK by BenMorel
I put here only PHP a few lines of code, let me know if you need more.
Here how I do the request:
$service = new BService\BrowseService([
'marketplaceId' => $sideID,//Consts\GlobalIds::IT,
'authorization' => $OAuthresponse->access_token
]);
$ebay_request = new Types\SearchForItemsRestRequest();
$ebay_request->q = $code;
$ebay_request->epid = $code;
$ebay_request->filter = 'sellers:{pitstopmodelitaly},searchInDescription:true';
$ebay_response = $service->searchForItems($ebay_request);
Here is a reply with a few lines for each store:
[
[
{
"country": "EBAY-US"
},
{
"title": "Edit185 Tractor Fahr D180 D180H 1954 1/43",
"id": "v1|256240681578|0"
}
],
[
{
"country": "EBAY-GB"
}
],
[
{
"country": "EBAY-FR"
},
{
"title": "EDIT185 Tracteur Fahr D180 D180H 1954 1/43",
"id": "v1|256098024911|0"
}
],
[
{
"country": "EBAY-DE"
}
],
[
{
"country": "EBAY-IT"
},
{
"title": "EDIT185 trattore Fahr D180 D180H 1954 1/43",
"id": "v1|256004502016|0"
}
],
[
{
"country": "EBAY-ES"
},
{
"title": "EDIT185 trattore Fahr D180 D180H 1954 1/43",
"id": "v1|256004502016|0"
}
]
]
As you can see it works but it seems it works only if my keyword is in title.
Does make it sense?
I would try to make search by MPN (it is a field I always fill with the specific keyword I need), but I don't understand how do that (well.. I thought the "q" field would be enough 🤔).
The BIG problem is WebInterpret which makes translation and it removes my precious keyword from title (I wrote a ticket at their support).
In last days I'm thinking it's more harmful than useful.
I would appreciate if you can help me especially to understand if is my code is correct 🙂.
Thanks to everyone
Regards