In mainland China, the Wow api interface cannot be accessed

I am in mainland China. When I try to call the interface, I cannot access it.

I can get the access token normally

https://oauth.battle.net/token?grant_type=client_credentials

response info:
{
“access_token”: “----”,
“token_type”: “bearer”,
“expires_in”: 86399,
“sub”: “----”
}

But when I want to continue calling the game data interface

Connected Realms Search

use host name gateway.battlenet.com.cn

this is url detail

https://gateway.battlenet.com.cn/data/wow/search/connected-realm?namespace=dynamic-classic-cn&status.type=UP&realms.timezone=America%2FNew_York&orderby=id&_page=1&access_token=-------
response info: HTTP ERROR 404

I did not see when the changes come in to effect but it could be related to this information. Upcoming Changes to Battle.net’s API Gateway

TLDR; is that you need to pass the access token on a Auth header instead of a URL query string like you are doing.

Thanks for the reminder. I also tried putting the access token in the header, but the URL still returned a 404 error.

1 Like