overfast-api: Missing some hero-data

First of all - really nice api!

But can you provide some more informations about the heroes? First of all can you create an endpoint where you can fetch all hero specific data with 1 api call? Atm i need to loop threw each hero to get the complete data. E.g. heroes/ana -> then heroes/ashe etc.

Maybe an endpoint heroes/all would be nice.

I have created an external json with some more informations needed for the heroes. Would be really nice if this can be integraded into the normal heroes/all - heroes/ana request

[
    {
        "name": "Ana",
        "totalhp": 200,
        "hp": 200,
        "armor": 0,
        "shield": 0,
        "abilities": [
            {
                "name": "Biotic Rifle",
                "thumbnail": "https://images.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/bltc56d4d9789a018d0/63390487ed7dcc6a0028039c/ANA_BIOTICRIFLE.jpg",
                "video": "https://assets.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/blt90138e57c4b91c94/6339047e64fe5a7d4481a05c/OVERWATCH_WEBSITE_CHARACTER_CAPTURE_AnaBioticRifle_WEB_16x9_1920x1080p30_WEBM.webm"
            },
            {
                "name": "Sleep Dart",
                "thumbnail": "https://images.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/bltb27e2783f517c7fe/63390487e3c2a2741688cba3/ANA_SLEEPDART.jpg",
                "video": "https://assets.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/bltb6b9ecf5d9a2ec69/6339047ef87c00687e8ef222/OVERWATCH_WEBSITE_CHARACTER_CAPTURE_AnaSleepDart_WEB_16x9_1920x1080p30_WEBM.webm"
            },
            {
                "name": "Biotic Grenade",
                "thumbnail": "https://images.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/bltcd66dcc6eb196187/633904873922a2677fc88cfa/ANA_BIOTICGRENADE.jpg",
                "video": "https://assets.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/blt73fcfa06c4272760/6339047d3922a2677fc88cf6/OVERWATCH_WEBSITE_CHARACTER_CAPTURE_AnaBioticGrenade_WEB_16x9_1920x1080p30_WEBM.webm"
            },
            {
                "name": "Nano Boost",
                "thumbnail": "https://images.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/blt5901c5f790bb82f9/63390487da1d806602f83eee/ANA_NANOBOOST.jpg",
                "video": "https://assets.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/blt557e93a659cf572c/6339047e1a0b5e7d3d1ec595/OVERWATCH_WEBSITE_CHARACTER_CAPTURE_AnaNanoBoost_WEB_16x9_1920x1080p30_WEBM.webm"
            }
        ]
    },
    {
        "name": "Ashe",
        "totalhp": 200,
        "hp": 200,
        "armor": 0,
        "shield": 0,
        "abilities": [
            {
                "name": "The Viper",
                "thumbnail": "https://images.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/bltde449a1db082c1a1/633904ac64fe5a7d4481a060/ASHE_THE_VIPER.jpg",
                "video": "https://assets.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/bltfb9b1667be81b34b/633904bab8dbde69f52798ee/OVERWATCH_WEBSITE_CHARACTER_CAPTURE_AsheTheViper_WEB_16x9_1920x1080p30_WEBM.webm" 
            },
            {
                "name": "Coach Gun",
                "thumbnail": "https://images.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/blt0f6057298d1c0012/633904ac3922a2677fc88cfe/ASHE_COACH_GUN.jpg",
                "video": "https://assets.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/blt65112ab5e888622d/633904b91a0b5e7d3d1ec599/OVERWATCH_WEBSITE_CHARACTER_CAPTURE_AsheCoachGun_WEB_16x9_1920x1080p30_WEBM.webm"
            },
            {
                "name": "Dynamite",
                "thumbnail": "https://images.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/bltbbcb722a61594c10/633904acf87c00687e8ef226/ASHE_DYNAMITE.jpg",
                "video": "https://assets.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/blt9de32278cc1b4ea0/633904ba399a07678557c13d/OVERWATCH_WEBSITE_CHARACTER_CAPTURE_AsheDynamite_WEB_16x9_1920x1080p30_WEBM.webm"
            },
            {
                "name": "B.O.B.",
                "thumbnail": "https://images.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/blt171114cdbf544989/633904aced7dcc6a002803a0/ASHE_BOB.jpg",
                "video": "https://assets.blz-contentstack.com/v3/assets/blt2477dcaf4ebd440c/bltc1dff03c9903dad0/633904baec7e18758be51042/OVERWATCH_WEBSITE_CHARACTER_CAPTURE_AsheBOB_WEB_16x9_1920x1080p30_WEBM.webm"
            }
        ]
    },
    {
        
    }
]

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 25 (10 by maintainers)

Most upvoted comments

Ye all good right now 👍

At the player stats summary for the heroes -> can u add a hero key for filtering the list? Cant filter the list for a specific hero because you dont have any unique key 😃

I don’t understand your issue here 🤔 You should be able to use the key referencing the object in your code ("ana": {...}), without me needing to add a key in the object, I would find it superfluous 😅 Maybe I’m missing a point, don’t hesitate to give me more precision if you think this is the case 👍

Also which timeformat is that: “time_played”: 172937 ?

As stated in the introduction on the main documentation page, it’s in seconds 😉

First of all can you create an endpoint where you can fetch all hero specific data with 1 api call? Atm i need to loop threw each hero to get the complete data. E.g. heroes/ana -> then heroes/ashe etc.

Finally, regarding this main topic, I’m starting to wonder if this is really necessary 🤔

  • Is there any performance issue when you’re making X calls to the API ?
  • Do you really have a use case where you need to retrieve all the data about all heroes in one shot ?
  • Shouldn’t you just call the endpoint of a specific hero whenever you want to consult details for this hero ?

Don’t hesitate to give me some details and arguments, I will be happy to discuss about it 😄

I made the update about heroes HP and abilities videos in the last release : https://github.com/TeKrop/overfast-api/releases/tag/v2.15.0

You’ll find the new data in hitpoints and abilities[].video fields, I’ll let you check the updated documentation and an example with Ana :

I’ll let this issue opened while I’ll be working on exposing more data in the general /heroes endpoint as discussed earlier 👍

Btw: here is a screen of the profile page 😃 http://i.epvpimg.com/K0nNcab.png

Health, armor and shields are OK (dev in progress), and i’ll take a look for the thumbnails and videos for the skills, I should be able to retrieve them directly, I’ll keep you updated 😉

ye the code wont be official but its free 4 all 😃 so remeber herodata (health shield etc)

thumbnails and videos for the skills (from the offical website 😃 i can give you the links 😃)

Oh very nice app you have here, can’t wait to try it ! When you’ll publish it (and/or the source code), don’t hesitate to share the link with me, I’ll gladly add your project in the README if you’re OK with it (🚀 Community projects section)

yeah i really like it 😃 Here is a video from the app ill programming right now 😃 - will be available for iOS and Android. Link

Hello,

Thank you 😄 It’s a good suggestion, I think I’ll do the following :

  • Add health, armor and shields in the /heroes/{hero_key} endpoint. The data will come from a CSV file in the project, like maps. It should be easy to update for anybody in a PR (can be useful if I’m not available when there is an update). I’ll add some information in order to guide those who would want to update it.
  • Add the possibility to retrieve all heroes information when using /heroes endpoint, with a specific GET attribute (i’ll share it in the dedicated PR).

I’ll keep you updated here 😉