eBay Developers Program
  • Forums Sign in
  • My Account
    • My Developer Account
    • Solutions Directory
    • Applications Settings
  • Forums
    • Orders, Returns and Feedback
    • Java SDK for Trading API
    • Search
    • Selling
    • Talk to Your Fellow Devs
    • .Net SDK for Trading API
    • Tokens, Notifications, Messages
    • Feedback & Suggestions
  • Documentation
    • Release Notes
    • Finding API
    • Shopping API
    • Trading API
    • Large Merchant Services
    • Marketing Handbook
    • All Features Comparison
    • All API Documentation
  • Support
    • eBay SDKs
    • API Site Status
    • Program & News Blog
    • Compatible Application Check
    • Support Ticket
    • Knowledge Base
    • Developer Help Center
    • Search Details
  • Home
  • eBay Forums
  • Buy APIs (BETA) - Browse /
avatar image

Question by sh4kesbeer · Mar 22 at 02:35 PM · browse apibrowsemarketplacesmarketplace

X-EBAY-C-MARKETPLACE-ID is ignored

Hi, I try to search the german ebay but I will always get US results no matter how I set X-EBAY-C-MARKETPLACE-ID. Is this a known issue? A couple months earlier a guy seems to have had the same issue (see this forum) but there was no real solution. Is this a known bug and is there any way to make this work?

People who like this

0
Comment
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

6 Replies

· Add your reply
  • Sort: 
avatar image

Answer by helios825 · Mar 24 at 02:18 AM

Pleas show us some code.

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by sh4kesbeer · Mar 24 at 03:10 AM

Hi, thanks for your reply.

I do e.g. in the following way:

 let queryURL = "https://api.ebay.com/buy/browse/v1/item_summary/search?" +
         "q=abitur"
 let options = {
     headers: {
         "Authorization": "Bearer " + auth_token,
         "X-EBAY-C-MARKETPLACE-ID": "EBAY_DE",
         "Accept-Language": "en-US",
         "Content-Type": "application/json",
         "Accept": "application/json",
         "Accept-Charset": "utf-8",
         "Content-Language": "en-US"
     }
 }
 let itemReq = https.get(queryURL, options, (res) => {
     var data = null
     res.on("data", part => {
         data = data === null ? part : data + part
     })
     res.on("end", () => {
         let response = JSON.parse(data)
         resolve(response)
     })
 })
 console.log(itemReq)

It also does not seem to matter what accept-language or content-language I set...

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by helios825 · Mar 25 at 11:39 PM

Hmmm... I'm not sure about why, but I wonder if all of those HTML "quot" entities might be getting in the way.

For example, you may need to have exactly this syntax: X-EBAY-C-MARKETPLACE-ID: EBAY_DE

Notice above the colon, then space, then EBAY_DE .

Perhaps also try this (without any "quot"s getting in the way): X-EBAY-C-MARKETPLACE-ID = EBAY_DE

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by sh4kesbeer · Mar 26 at 01:08 AM

Thanks for your reply! As I stated in the comment (which seems to have disappeared mysteriously...) in the code there are no "quot" things these were inserted by this forum to escape the ". The headers are handled by the nodejs api by giving key-values. After all the Authorization part with the bearer token is working (if I remove it the server will complain) so I guess the handling of the headers is correct. I will attach a screenshot of how this looks unescaped in my code as I am a bit frustrated right now...


screenshot-2019-03-26-at-090519.png (30.7 kB)
Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by helios825 · Mar 27 at 12:37 AM

I'm not experienced with Javascript. Is the colon and space (": ") in those headers sent in the eBay API request, or are they just delimiters in the code? It might matter for the locale but not for the token.

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by spulface · Apr 02 at 01:25 AM

Actually, have a try with EBAY-DE instead of EBAY_DE.

Disclaimer: I am an eBay employee but the views expressed on this post are mine and do not necessarily reflect the views of eBay Inc.

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to filter search results by availability. 1 Answer

feed api failure 1 Answer

GET /item 404 The specified item Id was not found 3 Answers

Even if the itemId exists in sandbox, error (errorId:11001 The specified item Id was not found.) occurs. 1 Answer

API Access after November changes 1 Answer


Support

Developer Help Center
eBay Developers Program Blog
API Site Status
Request Support
Knowledge Base
Developer Forums
eBay Software Development Kits

API Information

API License Agreement
API Documentation
API Call Limits
Marketing Handbook
API Features Comparison

Apps Center

Applications Directory
Solutions Directory

Social Media

     

Programs

About Us
Success Stories
Affiliate Developers
eBay Market Data Program
Developer Directory
Developer Jobs
Copyright 1999 - 2019 eBay Inc. All rights reserved. User Agreement | Privacy Policy.    Site Feedback
  • Anonymous
  • Login with eBay
  • Create
  • Ask a question
  • Forums
  • Buy APIs (BETA) - Browse
  • Buy APIs (BETA) - Order
  • Feedback, Comments, Suggestions
  • New Sell APIs - Account, Inventory, Catalog and Compliance
  • New Sell APIs - Fulfillment
  • New Sell APIs - Marketing, Analytics, Metadata
  • Post Order APIs - Cancellation
  • Post Order APIs - Inquiry, Case Management
  • Post Order APIs - Return
  • Talk to your fellow developers
  • Token, Messaging, Sandbox related issues
  • eBay APIs: .NET SDK for Trading API
  • eBay APIs: Java SDK for Trading API
  • eBay APIs: Orders, resolutions and feedback
  • eBay APIs: Search
  • eBay APIs: Selling
  • Explore
  • Tags
  • Questions
  • Users
  • Badges