I'm using Yahoo Finance Api to extract stockrates. To find the symbols using Yahoo Finance - but oddly a few of the symbols that Yahoo presents, doesn't return any data when using the API?!
Here are a few examples (Try looking them up with the above url):
DKIEUIXBNP.CO
DKIENGKEUO.CO
DKIGLOIXVAKK.CO
But when trying to extract data. The symbol seems to be unknown.
API-txt-file-download
Using the YQL, it says "Unknown ticker symbol"
YQL Example
Why o' why?
Thanks in advance
I would not use the yahoo YQL, but rather their older web-service that returns a CSV. I have an open-source plugin on Grails framework called yahoofinance that gets stock data from yahoo finance. I tested your stock symbols and it does return a response but like I said since these particular stocks have very low trading data, the data returned is mostly 0.0 and N/A
Try using the yahoo web-services (using example symbol)
finance.yahoo.com/d/quotes.csv?s=DKIENGKEUO.CO&f=snl1d1t1cc1p2pohgvmlt7a2ba
-> f=snl1d1t1cc1p2pohgvmlt7a2ba, represents the statistics you are requesting.
Related
I'm looking for the correct API for the events that show up in a regular Google Search, the ones that are structured (with name, datetime, location)
Any help or guidance is appreciated
I have tried the Custom Search with no luck, and also the Calendar API (which seems to require a calendar ID, more so for personal calendars or targeted public ones)
We've actually just made an API to scrape the Google event results. You can query it directly like this:
https://serpapi.com/search.json?engine=google_events&q=Events+in+Austin
Or if you are using Ruby, you can do something like this:
require 'google_search_results'
params = {
engine: "google_events",
q: "Events in Austin",
}
client = GoogleSearchResults.new(params)
events_results = client.get_hash[:events_results]
Some documentation: https://serpapi.com/google-events-api
I had a quick look - while I didn't find a fully programatic API yet, here are two things that can get you started on more:
How to search the events page directly: use the following URL schema: https://www.google.com/search?q=cool+conferences&oq=cool+conferences&ibp=htl;events&rciv=evn - replacing "cool+conferences" with any string you like - this can let you create dynamic URLs for event searches.
How to access event metadata for a given page - google is pushing a standard to structure data on webpages to support "smart" searches such as for events. They are using a data structure called JSON-ld. More details. If you want to read such metadata from a webpage, here is one scraper I have found that does that - extruct (though I didn't get a change to test it yet).
Hope this helps :)
I am trying to filter data from YouTube data API (using commentThreads).
Goal here is to get all the comments published for the channel after 2018-03-25. I have tried different date formats and it looks like the filter is not working as I get all the results back.
Any ideas?
https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&allThreadsRelatedToChannelId=UCU34OIeAyiD4BaDwihx5QpQ&key=xxxx&maxResults=100&publishedAfter=2018-03-25T13:15:30Z
I've never used the Youtube google api, but assuming that this is the API reference: https://developers.google.com/youtube/v3/docs/commentThreads/list
It doesn't mention the publishedAfter-option, which leads me to believe that it doesn't exist?
This probably means that you'll need to use the order option along with maxResults to achieve your goal.
In my codeacademy and codeschool lessons, I've been fetching data from google rss and simulated twitter feeds.
My newest exercise, however, involves fetching an array of text data from a REST API.
When I try
$.get('https://api.parse.com/1/classes/chats?order=-createdAt', function(x){$('.messages').append('<li>'+x.responseText+'</li>');});
I get
which has the text and username I need. Sort of...
but when I try to alert or console.log either *x.responseText or x.responseText.results I obviously get undefined instead of an array.
What am I missing?
Study more AJAX and I'll find a technique?
Or do I have to send special instructions to the parse server using some commands found here.
You are not using XMLHttpRequest directly, you are using jQuery and it will read the responseText and handle it for you.
Just use x (or, rather, x.results).
I am using yahoo finance to get stock quotes. Now i want to get the graph of a particular company. Is it possible to do this using yahoo. If not could someone please provide some other api through which one could achieve this. ( the 20 minute delay is not an issue at all). I am looking for stocks listed in bse and nse.
Yahoo Finance API lets you retrieve graphs of stocks.
The main url is https://chart.finance.yahoo.com/z?s=AAPL&t=6m&q=l&l=on&z=s&p=m50,m200
For options to use, please refer to this page.
The result is a picture, so you just have to write (for eg in HTML):
<img src="https://chart.finance.yahoo.com/z?s=AAPL&t=6m&q=l&l=on&z=s&p=m50,m200"/>
to display:
Please note that I'm not sure if Yahoo Finance supports stocks for India, http://in.finance.yahoo.com/q?s=%5EBSESN and http://in.finance.yahoo.com/q/cp?s=%5ENSEI don't seem to display list of components...
Is it possible to subscribe to Yahoo search results with google reader through reader api?
Yahoo search results can be returned in RSS format, which can then be passed to the Google Reader API for subscription.
The Yahoo RSS feed URL format is (for search term 'nascar'):
http://api.search.yahoo.com/WebSearchService/rss/webSearch.xml?appid=yahoosearchwebrss&query=nascar
Unfortunately it looks like these feeds are not returning results at the moment. It's possible that they've been discontinued.
As an alternative, you can use the Bing search RSS feeds which have the format:
http://www.bing.com/search?format=rss&q=nascar
Bing search results power Yahoo search, so you'll get the same (or close to the same) results either way.