ff14-advanced-market-search / AzerothAuctionAssassin

Apache License 2.0
7 stars 9 forks source link

Season of Discovery server support #7

Closed cohenaj194 closed 8 months ago

cohenaj194 commented 8 months ago

so theres no api for SoD yet, when they add it we can support that server group too

ahh bummer. Didn't realize that. I make little bots/api stuff in the past and have one for realm status, and saw it had an api endpoint for auctions listed, but I guess they didn't actually populate it

_links     : @{self=}
id         : 5816
has_queue  : False
status     : @{type=UP; name=Up}
population : @{type=HIGH; name=High}
realms     : {@{id=5816; region=; connected_realm=; name=Crusader Strike; category=Seasonal; locale=enUS; timezone=America/Denver; type=; is_tournament=False; slug=crusader-strike}}
auctions   : @{href=https://us.api.blizzard.com/data/wow/connected-realm/5816/auctions/?namespace=dynamic-classic1x-us}
pvp_season : @{href=https://us.api.blizzard.com/data/wow/pvp-region/2/pvp-season/?namespace=dynamic-classic1x-us}

but then quering the api for auctions does give a 404, so I guess not possible for now

cohenaj194 commented 8 months ago

server ids can come from

https://us.api.blizzard.com/data/wow/connected-realm/index?namespace=dynamic-classic1x-us&access_token=$token

image

ninthwalker commented 8 months ago

Additional info:

Classic servers have an additional index for AH data since their AH's are not combined

2 = Alliance AH 6 = Horde AH 7 = Nuetral AH

Endpoint Example for Horde AH data on Crusader Strike server: https://us.api.blizzard.com/data/wow/connected-realm/5816/auctions/6?namespace=dynamic-classic1x-us&locale=en_US&access_token=$token

Here are the realm slug/ID's for the 8 US servers. I didn't Query/check for EU ones.

crusader-strike: 5816 chaos-bolt: 5820 living-flame: 5815 lone-wolf: 5814 lava-lash: 5819 wild-growth: 5813 penance-au: 5817 shadowstrike-au: 5818

cohenaj194 commented 8 months ago

Additional info:

Classic servers have an additional index for AH data since their AH's are not combined

2 = Alliance AH 6 = Horde AH 7 = Nuetral AH

I got this fixed at least

cohenaj194 commented 8 months ago

Apparently SoD is working now

https://us.api.blizzard.com/data/wow/connected-realm/5085/auctions/2?namespace=dynamic-classic1x-us&locale=en_US&access_token=$YOUR_TOKEN
cohenaj194 commented 8 months ago

Additional info:

Classic servers have an additional index for AH data since their AH's are not combined

2 = Alliance AH 6 = Horde AH 7 = Nuetral AH

Endpoint Example for Horde AH data on Crusader Strike server: https://us.api.blizzard.com/data/wow/connected-realm/5816/auctions/6?namespace=dynamic-classic1x-us&locale=en_US&access_token=$token

Here are the realm slug/ID's for the 8 US servers. I didn't Query/check for EU ones.

crusader-strike: 5816 chaos-bolt: 5820 living-flame: 5815 lone-wolf: 5814 lava-lash: 5819 wild-growth: 5813 penance-au: 5817 shadowstrike-au: 5818

The realm count doesnt add up. From this api there is 22 realms https://us.api.blizzard.com/data/wow/connected-realm/index?namespace=dynamic-classic1x-us&access_token=

5066
5073
5098
5099
5107
5117
5121
5124
5126
5135
5139
5142
5147
5149
5813
5814
5815
5816
5817
5818
5819
5820
5821
cohenaj194 commented 8 months ago

apparently there are bugs and extra realms show up in the dynamic-classic1x-us but are actually regular classic realms, SOD realms are just those 8 and the RU realms in EU are AU in the us.