/v2/commerce/prices contains the property you are looking for, “whitelisted”.
They are both valid, you can/could get both items in game. I don’t know what your script is supposed to do, but why not show all items unlocking a recipe?
I always believed all endpoints was refresh on a 5minute timer. I recently learned, mainly because i wasn’t interested in TP before, /v2/commerce/listings has a 30s refresh.
Could these timers be reported in https://api.guildwars2.com/v2 details?
Each response contains cache headers with the correct times used by the endpoint.
And to finish, le’ts be crazy, the number of requests/minute left for the actual IP?
This is currently not possible but will come one day.
That page is made for humans to view directly and doesn’t have Access-Control-Allow-Origin headers. You probably want to load https://api.guildwars2.com/v2.json instead if you want to process it with javascript.
Some fields are only returned when you request the guild endpoint with an api key of the guild leader, otherwise you will only get public data.
This is already live.
The “Authorization: Bearer api-key-here” is a so called http header, nothing that goes directly in the URL, but something you can set when making the api request programmatically.
If you want to test this in your browser, you can instead append “?access_token=api-key-here” to your url, for example: https://api.guildwars2.com/v2/account?access_token=51969C37-FA95-744C-BB29-075C684EBD33C086D050-124E-4575-994B-304F23DA6F70
This is also mentioned on the api wiki page: https://wiki.guildwars2.com/wiki/API:2#Authentication
/v2/account/recipes contains all the recipes unlocked for the account.
ToyTwoHanded is the correct one.
It’s still the same area that needs to be cropped, in your example the image just expands a little into the otherwise black/transparent part, but thats not visible ingame. The game internally renders them by upscaling the image to 1024×256px (if they are not already), then cropping it to the lower-left 647×136px.
@Markus: The game servers were offline because of the rollback (more info), and the API had to be taken down too.
@Reincarnated: Lawton will look at this once he is back from his vacation.
The tile service will be updated once Lawton is back from his vacation.
The tile service will be updated once Lawton is back from his vacation.
The API was offline because everything was rolled back to an earlier snapshot (all gameservers, api, forum, … were not available at that time) (more details). It was the first time that the API was down.
(edited by darthmaim.6017)
Lawton is on vacation but should be back soon.
Max zoom of the WvW map is now 6 (instead of 7). It’s best not hardcoding this (like in the example) but use the values returned from https://api.guildwars2.com/v2/continents/2.
I think there is no formula, the itemstats endpoint just returns ratios, the real values come from look up tables (depending on level, rarity and 2-3 more according to this conversation).
Most API endpoints are cached for 5 minutes (as can be seen in the response headers).
Different vendors can sell an item at different prices, and some of those vendors are not player accessible, so its difficult to include this in the item endpoint. There were a few requests for a list of all vendors, here is the github issue for it: https://github.com/arenanet/api-cdi/issues/235
I’ve actually wobbled a bit on my “IT’S IMPOSSIBLE” opinion and think there might be a way to expose vendor data but it’s still kind of a mess.
That is coming soon: https://github.com/arenanet/api-cdi/pull/261
@lye Apr 19 19:29 (https://gitter.im/arenanet/api-cdi?at=57166b04b129b59c56d98d1b)i’m fixing a live server crash right now
(/v1/event_names.json is disabled for today)
we changed the deploy process for the content server since last time it leaked some goodies before the patch went out
having the old content server running while the new patch is out has triggered some interesting bugs
[…]
[X] fixed [ ] not fixed
I guess lawton forgot to enable the endpoint again or its still not fixed.
(edited by darthmaim.6017)
Here is a simple example to get the id from an item chatlink (only works for items, not for other types of chatlink): https://gist.github.com/darthmaim/b9df8ae919d0bc749712
Here is a simple example (no libraries required, but you need an up-to-date browser): https://jsbin.com/kozapureba/edit?js,console
I don’t know what happened to gw2services, but you can check for new items on gw2treasures.com: https://en.gw2treasures.com/stats/items/new (I still want to make a better page for that…)
developing in lockstep with the WvW changes so the API stuff should be ready day one. Unfortunately nothing’s announced so I can’t really talk what the changes are until some point in the future.
oh crap, I forgot about the name resolution issue
yeah any names no longer in the guild currently can’t be resolved
this is the same issue that the game client had a long time ago that I have independently reproduced
they fixed it in-game
I guess you have to post your code, this simple example works:
fetch(‘http://gw2profits.com/json/v2/forge/’)
.then(r => r.json())
.then(j => console.log(j));
That’s nothing you can change in your code, the server has to add the Access-Control-Allow-Origin: * header to the response.
The response is missing CORS headers (Access-Control-Allow-Origin: *). Otherwise you are not allowed to access the response with javascript from a different domain.
Daily Ascalon Vista Viewer and Daily Metrica Province Event Completer are for level 11 – 69 (see here: https://gw2treasures.com/achievement)
fetch(‘https://api.guildwars2.com/v2/achievements/2258’)
.then(response => response.json())
.then(data => alert(data.name));
(edited by darthmaim.6017)
First of all, the API doesn’t use OAuth, but API keys. You can generate API keys on your account page.
Then you can access all authenticated endpoints with that, for example the some basic account info, by requesting “v2/account?access_token=YOUR-API-KEY-HERE” (example with my API key)
Same thing for guild data, but currently its limited to guild leaders. You can only access guild information of guilds, where the owner of the API key is the guild leader.
As an example, I can get all members of my test guild, but I can’t get the members of the ArenaNet guild.
So all you really need is the API key of the guild leader, and you can start making requests to the API with it
(edited by darthmaim.6017)
You need a valid session (cookie named “s”) you get by logging in to account.arena.net.
Being able to see tomorrow’s dailies should be considered a feature, not a bug. Will the daily endpoint allow us to have increments like say /achievements/daily/0 for today’s dailies, and /achievements/daily/1 for tomorrow’s dailies, /achievements/daily/2 for the day after tomorrow and so on?
See the github issue #120 for discussion about possible endpoints returning future dailies.
Doesn’t matter because it got the flag NoSell. There are a bunch of items with vendor value which also have the NoSell flag.
There are also {"text":“requires scope x”} and {"error":“not found”}.
I think you need to create a character first or you will get this error.
Free accounts work for me, example: https://api.guildwars2.com/v2/account?access_token=0EC434E5-DF4E-7F45-8481-F763894E6D8A799DFCE5-12C6-4E9D-BF4C-549BE99F51CC
Yep, this is known: #120. It seems like it is always returning the dailies for the next day.
No, not currently. Its something that is planned, but really far in the future.
This is a known bug and will be fixed Dec. 1st.
My website gw2treasures is pretty good at finding (guessing) the item that is made (example: https://gw2treasures.com/item/74542) based on the name. I guess I could also guess the ingredients and required discipline based on type, attributes, level and rarity, but I would rather have those recipes in the API.
Im querying my database for all items with details.unlock_type = “CraftingRecipe” where details.recipe_id does not exist in my recipe table.
Here is the current export with unlocking item id and name: https://gist.github.com/darthmaim/eb907088eda2a0b39124
The weird split stats are in the API since day one of /v1/item_details.json.
There are quite a few recipes missing. These are for example all recipes linked from CraftingRecipe items that don’t exist currently:
7020, 11018, 10448, 11396, 11595, 10612, 10715, 10568, 10082, 10564, 11055, 9999, 9927, 11703, 11650, 10848, 10851, 10935, 10943, 10044, 11299, 11555, 10213, 9964, 10543, 11198, 10879, 11700, 10858, 10058, 11175, 11290, 11069, 10165, 11028, 11456, 10040, 10009, 10803, 11477, 11542, 10680, 10465, 11532, 10188, 10664, 11142, 11466, 10342, 10197, 10316, 10953, 10526, 10466, 11631, 11668, 10695, 10487, 10781, 11340, 11076, 10779, 10083, 11372, 10558, 10455, 11258, 10161, 11164, 10404, 10248, 10869, 10436, 10670, 11074, 11660, 10860, 10753, 10789, 11472, 10171, 11117, 11557, 10660, 11453, 11001, 11689, 10032, 11267, 11289, 10713, 10403, 10304, 10777, 11697, 11276, 11048, 11376, 11667, 10685, 11211, 11362, 11129, 11334, 10172, 10381, 10631, 10783, 11707, 9962, 10861, 9991, 11508, 10978, 11262, 11721, 11032, 9956, 10295, 10418, 11601, 11478, 10137, 10852, 10807, 9955, 11687, 11539, 10345, 10773, 11435, 11201, 10900, 10822, 10763, 10504, 10123, 11296, 10712, 10992, 10233, 10745, 10125, 10035, 10138, 10561, 10478, 10995, 11422, 10824, 11388, 9984, 10458, 9972, 10908, 11229, 11386, 11547, 10068, 10536, 10676, 11706, 11377, 9931, 11526, 11501, 11244, 9963, 10112, 10750, 11147, 10107, 1031
They just got added 20 minutes ago.
(edited by darthmaim.6017)
Really even if it is an issue, it is irrilevant.
No it’s not irrelevant. Most of us are using the creation as unique identifier for each character, because the name is not immutable.
That said, I didn’t notice any creation date changes in my database.
v2/achievements/daily doesn’t show up in /v2 This is why I didn’t notice it here: https://gist.github.com/darthmaim/16ccbda1944c2d4126f9/revisions. (guess I should have read the PR again)
Still down “endpoint requires authentication”. Maybe some EU issue again?
Edit: just started working again 5 min after I posted.
(edited by darthmaim.6017)