# Figuring out the Puzzle id from the screenshot url and query for achievements

**URL:** https://forum.eternagame.org/t/figuring-out-the-puzzle-id-from-the-screenshot-url-and-query-for-achievements/2847
**Category:** Feature Suggestions
**Created:** [June 28, 2017, 6:20pm UTC](https://forum.eternagame.org/t/figuring-out-the-puzzle-id-from-the-screenshot-url-and-query-for-achievements/2847 "2017-06-28T18:20:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MasterStormer](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@MasterStormer](https://forum.eternagame.org/u/MasterStormer)
#### Post date: [June 28, 2017, 6:20pm UTC](https://forum.eternagame.org/t/figuring-out-the-puzzle-id-from-the-screenshot-url-and-query-for-achievements/2847/1 "2017-06-28T18:20:00Z")

</div>

I have 2 questions/suggestions about data I need for some ideas I had:

- Is there a way to infer the puzzle id from the screenshot url? I had an idea for a statbot that checks which progression puzzles people ask the most help for, and where do most people quit. However for where people ask for help I need to be able to read the screenshot url. Also, if the url doesn’t have anything to do with the id, could it be changed? I mean I if it would be /puzzleid-screenshotindex it wouldn’t creat any collisions with the current system.
- Is there a query to check for badges/achievements/etc?

---

<div class="post-metadata">

### Author: ![LFP6](https://forum.eternagame.org/user_avatar/forum.eternagame.org/lfp6/32/7_2.png) [@LFP6](https://forum.eternagame.org/u/LFP6)
#### Post date: [June 29, 2017, 12:28pm UTC](https://forum.eternagame.org/t/figuring-out-the-puzzle-id-from-the-screenshot-url-and-query-for-achievements/2847/2 "2017-06-29T12:28:00Z")

</div>

As far as I know, there is no metadata associated with screenshots currently. I hope to change that once Vieet and I get to reimplement screenshots for the HTML chat. As far as how the URLs are generated currently, I’m not sure. They look random, but I’d probably need a dev to confirm that.There are a few queries that might do what you’re looking for re: badges/achievements. Check into achievement\_roadmap (note, this is from an old webpage that’s no longer used, so essentially deprecated), side\_project\_roadmap (used to populate the home screen for a logged in user), and the me/user queries (used to populate the profile page)

---

<div class="post-metadata">

### Author: ![MasterStormer](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@MasterStormer](https://forum.eternagame.org/u/MasterStormer)
#### Post date: [June 29, 2017, 10:05pm UTC](https://forum.eternagame.org/t/figuring-out-the-puzzle-id-from-the-screenshot-url-and-query-for-achievements/2847/4 "2017-06-29T22:05:00Z")

</div>

I found the achievements data in “me” however: 1. It seems to cut off before the actual end of the json, and 2. It only works for the logged user. “user” gives much less information. It doesn’t feel right, as I can see other people’s achievemens while being logged into my user

---

<div class="post-metadata">

### Author: ![LFP6](https://forum.eternagame.org/user_avatar/forum.eternagame.org/lfp6/32/7_2.png) [@LFP6](https://forum.eternagame.org/u/LFP6)
#### Post date: [July 8, 2017, 8:24pm UTC](https://forum.eternagame.org/t/figuring-out-the-puzzle-id-from-the-screenshot-url-and-query-for-achievements/2847/6 "2017-07-08T20:24:00Z")

</div>

I’m not sure what you mean about it cutting off. If you’re looking at it from your browser, you could get a screwy view, since it has embedded html, with the forward slashes escaped. You’d really want to look at the response in the network tools, do a query from JS, or use an HTTP query tool (I’ve fussed with&nbsp;[postman&nbsp;](https://www.getpostman.com/)a bit, and it’s pretty nice). This query is of course built for the logged in user.

I just took another look into these queries, and realized this gets a little weird. ‘me’ is actually not used to generate the profile page, however does contain similar data to ‘my\_user’, which is what’s actually used, and more closely mirrors the ‘user’ query. For both ‘my\_user’ and ‘user’, there is an additional parameter called ‘tab\_type’, which provides different data depending on which page of the profile you are on:  
 ![](https://d2he8ud106d9gn.cloudfront.net/original/1X/cd81084c5019bc7def77de8e66e1f0919f01e59b.png "Image https//d2r1vs3d9006apcloudfrontnet/s3\_images/1619517/RackMultipart20170708-41460-1i7aixj-Screenshot\_1\_inlinepng1499545397")  
Since the badges show up on the first tab of the profile page, you should add ‘&tab\_type=about’ to the URL of the query you’re making.
