Getting basic stock & company information given company name

﹥>﹥吖頭↗ 提交于 2019-12-13 03:58:20

问题


Given a company name, say Google, I want to be able to identify the link to the company profile page in say

  • Google Finance (eg. https://www.google.com/finance?q=NASDAQ%3AGOOG)
  • Bloomberg (http://www.bloomberg.com/quote/GOOG:US)

and extract company information eg. "Google Inc. is a global technology company that provides a web based search engine through its website. The Company offers a wide range of search options, including web, image, groups, directory, and news searches"

How can I do it, I think I need some API to identify the stock ticker based on company name, then somehow build the URL to the appropriate site? It seems Bloomberg has an API, but its very large, could someone point me in the right direction?

For the 1st requirement, it seems from another question, a query to Yahoo Finance API can do the trick:

http://autoc.finance.yahoo.com/autoc?query=yahoo&callback=YAHOO.Finance.SymbolSuggest.ssCallback

But it doesn't seem to provide the needed info for building the URL to Bloomberg (missing country info?).


回答1:


EDIT:

Looks like LinkedIn has significantly changed their API (see https://developer.linkedin.com/support/developer-program-transition).

Therefore the accepted answer no longer works.

A bit of light googling suggests that a variety of "freemium" providers exist, such as https://clearbit.com/ and https://www.fullcontact.com/developer/company-api/, but YMMV.

ORIGINAL ANSWER:

LinkedIn has an API that meets your stated requirements.

The Company Profile API: Retrieves and displays one or more company profiles based on the company ID or universal name. Returns basic company profile data, such as name, website, and industry. Returns handles to additional company content, such as RSS stream and Twitter feed.

https://developer-programs.linkedin.com/documents/company-lookup-api-and-fields




回答2:


There is an entire directory of APIs for web programming at Programmable Web, they have over 8000 APIs currently. I would think they should have everything you need. http://www.programmableweb.com/apis



来源:https://stackoverflow.com/questions/15402059/getting-basic-stock-company-information-given-company-name

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!