Get price of item in steam community market with JSON - json

I tried to find the price of the items in the steam community market through the steam website by selecting View Page Info (Google Chrome) to locate the JSON page but with no luck.
NOTE I am trying to understand how to get the URL of the JSON page of the items in the steam community market and not to scrap the JSON page.
I have searched through StackOverflow and they seem to be able to get this URL with the JSON which I am unable to find.
//way number 1
http://steamcommunity.com/market/priceoverview/?currency=3&appid=730&market_hash_name=StatTrak%E2%84%A2%20P250%20%7C%20Steel%20Disruption%20%28Factory%20New%29
// way number 2
http://steamcommunity.com/market/pricehistory/?country=DE&currency=3&appid=440&market_hash_name=Specialized%20Killstreak%20Brass%20Beast

You can use the priceoverview endpoint, just make sure you find the correct appid and market_hash_name.
You can easily locate needed values for these parameters by navigating to any Steam Market item listing.
For example, on this screenshot the appid is equal to 730 and the market_hash_name is AK-47%20%7C%20Redline%20%28Field-Tested%29.
The final parameter for request is currency, you can use the value of 1 for USD.
Finally, the request URL will look like this: http://steamcommunity.com/market/priceoverview/?appid=730&market_hash_name=AK-47%20%7C%20Redline%20%28Field-Tested%29&currency=1
And querying it will yield the following JSON response:
{
"success":true,
"lowest_price":"$7.90",
"volume":"1,113",
"median_price":"$7.77"
}
You can also read more about the whole Steam Market parsing topic here.

Related

How to automatically import content into Wordpress from a URL with information in json format?

Searching for APIs that showed the last result of the contests, I came across the API of Caixa itself that, through a simple URL, provided me with the last result like this address: https://servicebus2.caixa.gov.br/portaldeloterias/api/megasena
How to capture this result and play in a fixed Wordpress page, and every time there is a new result, it changes only in that created page?

How to find how many json endpoints an api has

I’m in the middle of making an Express app. It’s just a learning project.
I’m getting some info from an Anime api called jikan.me, it provides info about different Anime series like a picture url and synopsis.
For example one is at https://api.jikan.me/anime/16 .
Now, the jikan api might have a json endpoint at anime/1 but there's nothing at anime/2.
I want to find a list of all the numbers (https://api.jikan.me/anime/[numbers]) that actually contain endpoints.
I've tried simply going to https://api.jikan.me/anime but it returns error: No ID/Path Given.
I'm expecting there is likely no absolute answer to this problem but that I might learn something about server-side code along the way.
Where would I begin to look to find this info?
This is a bit late but, Jikan is an unofficial REST API for MyAnimeList. The IDs are respective to the IDs on MAL. For example; https://myanimelist.net/anime/1 can be parsed through https://api.jikan.moe/anime/1 but the ID 2 does not exist on MAL. It's a 404, hence that error.
To initially get some IDs, you can try the search endpoint.
Furthermore, I'll be releasing REST 2.2 quite soon (this month) which will give you the ability to parse from pages like these and thus you'll get another endpoint that provides a handful of IDs to get their data from.
Source: I'm the developer of Jikan
If it's not in the documentation it's probably information not available to you... a REST api needs to be specifically configured to offer certain endpoints, that number at the end might just be an ID that's searched for in an internal database and there's no way for the application to know if there's gonna be something there; all they can do is return an error message for you to handle as is the case here.

Looking for json data that contains dota2 hero and item details

I am working on an application that get response from steam API. I am halfway through my task. Now I need some help on getting response of dota2 hero or item details that completely contains ìd name and image_url.
I want to know are there any steam API call to receive the response that I required?
Thanks in advance
You can use the following steam API call to get name, id and localized_name replace {ur_key} with the web API key that steam provided you.
https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/?key={ur_key}&language=en_us&format=JSON
But you need image URL too, you can use this json data of heroes and this data of items
I hope this would be helpful for you.

MediaWiki JSON API - Get all the date in List of wiki page

I need help on the MediaWiki API where I want just all the data of each president (image url, name and url, state, term, etc...) in a json format: List of Presidents.
I am already following the help page for query and it's not helpful in targeting just the table list. Is there a way to do this where it's not in a lump sum of html? Thanks

Unable to capture http log for some part of page with Charlesproxy or Fiddler?

I am trying to check the data loading into search listing in this page link below :
http://www.tigerdirectwireless.com/ecommerce/phones/?r=tigerdirect&filterbycarrier=68
We could not find the product details(name, price etc.) in page source. I have inspected in both Charles and Fiddler , but not able to view a log of any http request or response for this data.
Even after saving a complete webpage will not not download the listing products details, nor HTTrack Website Copier we help us identifying this.
We actually want the know the link from where this response data in generating in text/markup format.
Thanks Guys.
The data is sent back in JSON and the page is built up dynamically using JavaScript. For instance http://www.tigerdirectwireless.com/eCommerce/Service/CoreServicesProxy.asmx/GetPartnerPhoneList is the JSON response that contains the list of phones and details, while http://www.tigerdirectwireless.com/eCommerce/Service/CoreServicesProxy.asmx/GetPartnerPricedPhoneList contains the phones and prices.