03-19-2023 09:54 PM - edited 03-19-2023 09:56 PM
I'm using node js and express to make a GET request to this endpoint: https://api.ebay.com/buy/browse/v1/item_summary/search
Solved! Go to Best Answer
03-19-2023 10:23 PM
this URL works
https://api.ebay.com/buy/browse/v1/item/v1%7C373817615913%7C642852859250
(my client encoded the | )
This likely should work as well:
https://api.ebay.com/buy/browse/v1/item/v1|373817615913|642852859250
https://api.ebay.com/buy/browse/v1/item_summary/search is for the browse search call
https://developer.ebay.com/api-docs/buy/browse/resources/item_summary/methods/search
For get item it shows the format:
https://api.ebay.com/buy/browse/v1/item/{item_id}?fieldgroups=string
fieldgroups being optional and {item_id} being the format you listed without the extra path stuff preceding it: v1|373817615913|642852859250
https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItem
might want to add these headers as well:
Accept:application/json
Accept-Encoding:application/gzip
03-19-2023 10:23 PM
this URL works
https://api.ebay.com/buy/browse/v1/item/v1%7C373817615913%7C642852859250
(my client encoded the | )
This likely should work as well:
https://api.ebay.com/buy/browse/v1/item/v1|373817615913|642852859250
https://api.ebay.com/buy/browse/v1/item_summary/search is for the browse search call
https://developer.ebay.com/api-docs/buy/browse/resources/item_summary/methods/search
For get item it shows the format:
https://api.ebay.com/buy/browse/v1/item/{item_id}?fieldgroups=string
fieldgroups being optional and {item_id} being the format you listed without the extra path stuff preceding it: v1|373817615913|642852859250
https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItem
might want to add these headers as well:
Accept:application/json
Accept-Encoding:application/gzip
03-20-2023 04:29 PM
Thanks!!
For some reason the response to my GET request did not like the vertical bars used in the itemId, but when i replaced them with '%7C' it worked.
Here is my solution: