Showing Posts For darthmaim.6017:

Achievement points totally wrong

in API Development

Posted by: darthmaim.6017

darthmaim.6017

There are 574 achievement points from SAB achievements currently missing from the API. This will be fixed eventually.

Free account trading post restrictions

in API Development

Posted by: darthmaim.6017

darthmaim.6017

/v2/commerce/prices contains the property you are looking for, “whitelisted”.

Determining correct recipe/item id?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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?

HEADS UP: rate limiting is coming

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

[Solved]Retrieve /v2 text page...?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

guild/:id does not match its example

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

Will Skill Rating be exposed to the PvP API?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

This is already live.

API Key example [request]

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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

Account-Wide Unlocked Recipes

in API Development

Posted by: darthmaim.6017

darthmaim.6017

/v2/account/recipes contains all the recipes unlocked for the account.

ToyTwoHanded or TwoHandedToy?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

ToyTwoHanded is the correct one.

API errors & bugs

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

API errors & bugs

in API Development

Posted by: darthmaim.6017

darthmaim.6017

@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.

Tiles Service: New mixed WvW map

in API Development

Posted by: darthmaim.6017

darthmaim.6017

The tile service will be updated once Lawton is back from his vacation.

WvW API not showing new links

in API Development

Posted by: darthmaim.6017

darthmaim.6017

The tile service will be updated once Lawton is back from his vacation.

Gw2 Api health check?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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)

Item and achievement API not updating

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Lawton is on vacation but should be back soon.

API errors & bugs

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

API itemstats: How to use value?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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).

Is the Api Result for Worlds Cached

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Most API endpoints are cached for 5 minutes (as can be seen in the response headers).

Vendor Item Listing Prices

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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

And Lawtons latest comment:

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.

Characters equipment with selected stats

in API Development

Posted by: darthmaim.6017

darthmaim.6017

event_names v1 API disabled?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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)

Best way to get Item Name from Chat Code?

in API Development

Posted by: darthmaim.6017

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

HTTPRequest in javascript welp :(

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Here is a simple example (no libraries required, but you need an up-to-date browser): https://jsbin.com/kozapureba/edit?js,console

gw2services

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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…)

WvW changes and the API

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

guild/log Kick events with no user details

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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

recipes for scribe using guild materials

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Created a json file for Mystic Forge recipes

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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));

Created a json file for Mystic Forge recipes

in API Development

Posted by: darthmaim.6017

darthmaim.6017

That’s nothing you can change in your code, the server has to add the Access-Control-Allow-Origin: * header to the response.

Created a json file for Mystic Forge recipes

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

Extra data achievements/daily endpoint.

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Daily Ascalon Vista Viewer and Daily Metrica Province Event Completer are for level 11 – 69 (see here: https://gw2treasures.com/achievement)

New to javascript and really lost

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Here ya go:

fetch(‘https://api.guildwars2.com/v2/achievements/2258’)
.then(response => response.json())
.then(data => alert(data.name));

(edited by darthmaim.6017)

OAuth - Little help

in API Development

Posted by: darthmaim.6017

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)

Loeadboard access

in API Development

Posted by: darthmaim.6017

darthmaim.6017

You need a valid session (cookie named “s”) you get by logging in to account.arena.net.

/daily not matching game daily

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

API bug: Agony Infusions 3s30c vendor value

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Doesn’t matter because it got the flag NoSell. There are a bunch of items with vendor value which also have the NoSell flag.

List of /v2/ Errors in JSON Text response?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

There are also {"text":“requires scope x”} and {"error":“not found”}.

No API support for Free Accounts?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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

/daily not matching game daily

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Yep, this is known: #120. It seems like it is always returning the dailies for the next day.

Character Image available in API?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

No, not currently. Its something that is planned, but really far in the future.

Character API error

in API Development

Posted by: darthmaim.6017

darthmaim.6017

This is a known bug and will be fixed Dec. 1st.

Patches in API?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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.

Patches in API?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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

Ascended Items have split stats?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

The weird split stats are in the API since day one of /v1/item_details.json.

Patches in API?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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

Patches in API?

in API Development

Posted by: darthmaim.6017

darthmaim.6017

They just got added 20 minutes ago.

(edited by darthmaim.6017)

Did the characters "created" date change?

in API Development

Posted by: darthmaim.6017

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.

New Endpoint: /v2/wvw/matches

in API Development

Posted by: darthmaim.6017

darthmaim.6017

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)

endpoint requires authentication errors

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Still down “endpoint requires authentication”. Maybe some EU issue again?
Edit: just started working again 5 min after I posted.

(edited by darthmaim.6017)