Hey duders,
I'm trying do a lookup on the API using only the data I can glean from the URL itself. Take, for example, Mario's page:
http://www.giantbomb.com/mario/94-177/
From what I can tell, the word "mario" is ignored and is just there to make the URL human-readable. Instead, Giant Bomb seems to use the numbers (94-177) to resolve the resource and forward to its page. Now, all of the characters I've looked up start with "94-" so I assume "94" stands for character. If you look up /character/177 in the API, it returns Mario's details so 177 must be Mario's ID.
Now, my question is, is there a more straightforward way of finding an object based on its URL? Or do I need to figure out the ID for each object type and store those in my application for making requests?
Thanks,
Drew
Reverse Engineering the Giant Bomb URLs
That's about it. The number before the hyphen indicates the page type, and the number after the hyphen is the ID of the page. Here's something I threw together in December. It doesn't give any information with regard to the API, but you can easily get that from the API documentation
Giant Bomb
Name | Pluralized name | ID | Link | Additional notes |
---|---|---|---|---|
Game | Games | 61 | /games/ | |
Franchise | Franchises | 62 | /franchises/ | |
Character | Characters | 94 | /characters/ | |
Platform | Platforms | 60 | /platforms/ | |
Person | People | 72 | /person/ | |
Company | Companies | 65 | /company/ | |
Object | Objects | 93 | /things/ | |
Concept | Concepts | 92 | /concepts/ | |
Location | Locations | 95 | /locations/ | |
Accessory | Accessories | 59 | /accessory/ | |
Review | Reviews | 141 | /reviews/ | ID is not normally seen |
User review | User reviews | 31 | /user_reviews/ | ID for individual user reviews is seen, but not type ID |
Video | Videos | 17 | /videos/ | |
Release | Releases | 63 | none | ID for individual releases can be seen in some areas, but not the type ID |
Rating board | Rating boards | 56 | none | USK rating board and associated ratings are unused |
Game rating | Game ratings | 77 | none | USK rating board and associated ratings are unused Rating board and rating pages are associated with releases and cannot be viewed individually |
Region | Regions | 58 | none | Individual regions cannot be viewed |
Genre | Genres | 64 | none | |
Theme | Themes | 150 | none |
Please Log In to post.
Log in to comment