Yahoo Finance API

This API helps you to query stocks, quotes, movers and other financial information to help you make informed financial decisions.

Unlock the power of financial data with the Yahoo Finance API, a cutting-edge tool designed to empower developers, analysts, and businesses with seamless access to a wealth of market insights. Built on Yahoo's robust infrastructure and leveraging the extensive resources of the Yahoo Finance platform, this API offers an unparalleled opportunity to harness real-time and historical financial data effortlessly.

At its core, the Yahoo Finance API is engineered to streamline the process of retrieving crucial financial information, enabling users to access a vast array of data points with just a few simple requests. Whether you're seeking stock quotes, market trends, historical prices, company fundamentals, or portfolio analytics, our API provides a comprehensive solution tailored to meet your specific needs.

One of the key strengths of the Yahoo Finance API lies in its versatility and scalability. From individual investors tracking their portfolios to financial institutions conducting in-depth market analysis, our API caters to a diverse range of users across various industries. Whether you're developing a trading algorithm, building a financial application, or conducting academic research, our API delivers the data you need in a format that's easy to integrate and analyze.

Key features of the Yahoo Finance API include:

  1. Real-Time Data: Stay up-to-date with the latest market movements and stock prices with real-time data feeds that provide instant access to live market information.

  2. Historical Data: Dive deep into historical market trends and performance metrics with comprehensive historical data spanning years of financial history.

  3. Company Insights: Gain valuable insights into individual companies with access to detailed company profiles, financial statements, and key performance indicators.

  4. Market Trends: Identify emerging trends and market opportunities with access to market indices, sector performance data, and global economic indicators.

  5. Portfolio Management: Track and analyze your investment portfolio with advanced portfolio management tools, including performance tracking, risk analysis, and asset allocation.

  6. Developer-Friendly: Built with developers in mind, our API offers easy-to-use endpoints, extensive documentation, and robust support to streamline the integration process.

  7. Customizable Solutions: Tailor the API to suit your specific requirements with customizable parameters, flexible data formats, and advanced filtering options.

  8. Reliable Infrastructure: Rely on Yahoo's trusted infrastructure and industry-leading security measures to ensure the confidentiality, integrity, and availability of your data.

With the Yahoo Finance API, the possibilities are endless. Whether you're a seasoned developer, financial analyst, or entrepreneur, our API provides the tools you need to unlock the full potential of financial data and drive informed decision-making in today's dynamic markets. Explore the possibilities and unleash the power of financial insights with the Yahoo Finance API.

API Documentation

Endpoints


This endpoint /yhprice is designed to fetch pricing information for a given stock ticker symbol from Yahoo Finance. It's a GET request that expects the ticker symbol as a query parameter (ticker). The endpoint first checks if the ticker symbol is provided, and if not, it returns a 400 error indicating that the ticker symbol is required.

If the ticker symbol is provided, it proceeds to fetch data from Yahoo Finance using the yahooFinance.quote function, which likely retrieves the latest market data for the given symbol. It then constructs a response object containing the symbol, price, currency, symbol name, and market capitalization (if available) extracted from the fetched data.

If the data retrieval is successful, it returns a JSON response with the fetched information. However, if there's any error during the process, it catches the error, logs it, and returns a 500 error with a message indicating the failure to fetch data from Yahoo Finance.

Overall, this endpoint provides a simple and straightforward way to retrieve real-time pricing information for a given stock symbol from Yahoo Finance.



                                                                            
GET https://zylalabs.com/api/3833/yahoo+finance+api/4469/stock+price
                                                                            
                                                                        

Stock Price - Endpoint Features

Object Description
ticker [Required] the stock ticker/ symbol
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {
  "symbol": "AAPL",
  "price": 178.59,
  "currency": "USD",
  "symbolName": "Apple Inc.",
  "marketCap": 298041489100
}
                                                                                                                                                                                                                    
                                                                                                    

Stock Price - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3833/yahoo+finance+api/4469/stock+price?ticker=TSLA' --header 'Authorization: Bearer YOUR_API_KEY' 


    

This endpoint /search is designed to perform a search query, likely against a database or external API, to retrieve information based on a given query string. It's a GET request that expects parameters such as query, quotesCount, and limit to be provided as query parameters.

If the query parameter is missing, it returns a 400 error with a message indicating that the query string is required.

Otherwise, if the query parameter is provided, it proceeds to execute the search query. The endpoint seems to use the fetchSearch function, which likely interacts with a search service or database to retrieve relevant information based on the provided query, quotesCount, and limit.

Upon successfully retrieving the search results, it returns a JSON response containing the search results. However, if there's any error during the process, it catches the error and returns a 500 error with a message indicating the failure.

Overall, this endpoint provides a way to perform search queries and retrieve results based on the provided parameters, potentially enabling users to search for various types of information within the application.



                                                                            
GET https://zylalabs.com/api/3833/yahoo+finance+api/4470/search
                                                                            
                                                                        

Search - Endpoint Features

Object Description
query [Required] The query to search
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"result":{"explains":[],"count":21,"quotes":[{"exchange":"NMS","shortname":"Tesla, Inc.","quoteType":"EQUITY","symbol":"TSLA","index":"quotes","score":77081,"typeDisp":"Equity","longname":"Tesla, Inc.","exchDisp":"NASDAQ","sector":"Consumer Cyclical","sectorDisp":"Consumer Cyclical","industry":"Auto Manufacturers","industryDisp":"Auto Manufacturers","dispSecIndFlag":true,"isYahooFinance":true},{"exchange":"GER","shortname":"TESLA INC. DL -,001","quoteType":"EQUITY","symbol":"TL0.DE","index":"quotes","score":20120,"typeDisp":"Equity","longname":"Tesla, Inc.","exchDisp":"XETRA","sector":"Consumer Cyclical","sectorDisp":"Consumer Cyclical","industry":"Auto Manufacturers","industryDisp":"Auto Manufacturers","isYahooFinance":true},{"exchange":"NEO","shortname":"TESLA, INC. CDR (CAD HEDGED)","quoteType":"EQUITY","symbol":"TSLA.NE","index":"quotes","score":20095,"typeDisp":"Equity","longname":"Tesla, Inc.","exchDisp":"NEO","sector":"Consumer Cyclical","sectorDisp":"Consumer Cyclical","industry":"Auto Manufacturers","industryDisp":"Auto Manufacturers","isYahooFinance":true},{"exchange":"FRA","shortname":"TESLA INC","quoteType":"EQUITY","symbol":"TL0.F","index":"quotes","score":20042,"typeDisp":"Equity","longname":"Tesla, Inc.","exchDisp":"Frankfurt","sector":"Consumer Cyclical","sectorDisp":"Consumer Cyclical","industry":"Auto Manufacturers","industryDisp":"Auto Manufacturers","isYahooFinance":true},{"exchange":"BUE","shortname":"TESLA INC CEDEAR EA 15 REP 1 CO","quoteType":"EQUITY","symbol":"TSLAD.BA","index":"quotes","score":20021,"typeDisp":"Equity","longname":"Tesla, Inc.","exchDisp":"Buenos Aires","isYahooFinance":true},{"index":"10947367cb744a95b0a39f6a0702f5f5","name":"Tesla Medical","permalink":"tesla-medical","isYahooFinance":false},{"index":"77669f4682d64ad2a21d4cf95f2d7269","name":"TeslaVolts","permalink":"teslavolts","isYahooFinance":false}],"news":[{"uuid":"3ec8ab2d-422a-3409-8b13-a9b48d5b9fca","title":"Tesla Stock Heads For 2024 Lows As Investors Await Q1 Earnings For Clarity On Elon Musk's Big Bet On Autonomy","publisher":"Investor's Business Daily","link":"https://finance.yahoo.com/m/3ec8ab2d-422a-3409-8b13-a9b48d5b9fca/tesla-stock-heads-for-2024.html","providerPublishTime":"2024-04-16T14:24:04.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/5GBCnG8p4J0OLHQnsh5z5Q--~B/aD01NjM7dz0xMDAwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/ibd.com/9e746c13e150c7bee48c24ef1dffb078","width":1000,"height":563,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/Wku9RO.OXYWPgwO70cyBfQ--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/ibd.com/9e746c13e150c7bee48c24ef1dffb078","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"54f06c00-5fe3-3f1a-9619-a1481d08c692","title":"Tesla layoffs hit high performers, some departments slashed, sources say","publisher":"TechCrunch","link":"https://finance.yahoo.com/m/54f06c00-5fe3-3f1a-9619-a1481d08c692/tesla-layoffs-hit-high.html","providerPublishTime":"2024-04-16T12:35:03.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/F3WzKenc8CoWce9L1wWx9Q--~B/aD0xMzQ4O3c9MjM5NjthcHBpZD15dGFjaHlvbg--/https://media.zenfs.com/en/techcrunch_350/e42616c88053be98a6b1f06b60e4ec24","width":2396,"height":1348,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/t3HDnUuoYnir_KSmEgPcIw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/techcrunch_350/e42616c88053be98a6b1f06b60e4ec24","width":140,"height":140,"tag":"140x140"}]}},{"uuid":"8edab8e4-ec09-30b4-9ac8-d98c11b4aaa7","title":"Tesla’s Value Declines Below $500 Billion as Risks Pile Up","publisher":"Bloomberg","link":"https://finance.yahoo.com/news/tesla-value-declines-below-500-134149504.html","providerPublishTime":"2024-04-16T13:41:49.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/xfPA1yHgq8MTVtnAh2JMKw--~B/aD02NzU7dz0xMjAwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/bloomberg_markets_842/14708bc966448ca4edb2438182e13aee","width":1200,"height":675,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/e.PEu_niC1BbubpKE99qEA--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/bloomberg_markets_842/14708bc966448ca4edb2438182e13aee","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"b89b3053-3217-3499-ad76-2aaacb6cc0d5","title":"Tesla (TSLA) to Cut Jobs by 10% to Manage Costs Amid Low EV Sales","publisher":"Zacks","link":"https://finance.yahoo.com/news/tesla-tsla-cut-jobs-10-123100303.html","providerPublishTime":"2024-04-16T12:31:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/devY3XHJ1YpzrP8OVL3zBg--~B/aD00MDA7dz02MzU7YXBwaWQ9eXRhY2h5b24-/https://media.zenfs.com/en/zacks.com/962d113d34adba715b05697dec9c80b7","width":635,"height":400,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/.L4tlr.1KMxSb11cwM9lpw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/zacks.com/962d113d34adba715b05697dec9c80b7","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA","F"]},{"uuid":"5c394e96-af30-3009-b609-c9100c19cea7","title":"Tesla Stock Breached Support. This Is Where It’s Headed.","publisher":"Barrons.com","link":"https://finance.yahoo.com/m/5c394e96-af30-3009-b609-c9100c19cea7/tesla-stock-breached-support..html","providerPublishTime":"2024-04-16T09:25:43.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/_kc6REYMS1JrAuV5bYtjfA--~B/aD02NTt3PTMyMDthcHBpZD15dGFjaHlvbg--/https://media.zenfs.com/en/Barrons.com/12ea0f43d8f8307249a68d1cb2e0587e","width":320,"height":65,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/5waH37HKuL3X52B3V2GWrw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/Barrons.com/12ea0f43d8f8307249a68d1cb2e0587e","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"fb91fbfd-bf56-31bf-a3e4-75f5b395952c","title":"Analysts weigh in on 'far-reaching' Tesla layoffs as stock extends slump","publisher":"TheStreet","link":"https://finance.yahoo.com/m/fb91fbfd-bf56-31bf-a3e4-75f5b395952c/analysts-weigh-in-on.html","providerPublishTime":"2024-04-16T12:27:51.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/.JhYgvFgP97vm5LYI6Syrw--~B/aD04MDA7dz0xMTYyO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/thestreet_881/3d4c82c51cb3741a69a5d6778146c167","width":1162,"height":800,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/ON0RpsMsoewiwqLMFcSlSw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/thestreet_881/3d4c82c51cb3741a69a5d6778146c167","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"5c169cb5-7966-3ae0-850b-354943223d72","title":"Tesla's global job cuts include leading markets US, China","publisher":"Reuters","link":"https://finance.yahoo.com/news/tesla-global-job-cuts-hit-070027304.html","providerPublishTime":"2024-04-16T07:00:27.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/eSbs9MSVOPRPco0yPwxURQ--~B/aD01MzM7dz04MDA7YXBwaWQ9eXRhY2h5b24-/https://media.zenfs.com/en/reuters-finance.com/6f7b235fd404f012a5f3e21a0ef78c8d","width":800,"height":533,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/3PLk1fcTfL_WjsXxxUe_ZQ--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/reuters-finance.com/6f7b235fd404f012a5f3e21a0ef78c8d","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"7e11bbf4-8166-397a-8728-14e18e9ab579","title":"Tesla Stock Is Falling Again. This Is Where It’s Headed.","publisher":"Barrons.com","link":"https://finance.yahoo.com/m/7e11bbf4-8166-397a-8728-14e18e9ab579/tesla-stock-is-falling-again..html","providerPublishTime":"2024-04-16T11:29:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/dvCMWdniRtT2TnXV9jbrUA--~B/aD02NDA7dz0xMjgwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/Barrons.com/b42d1cd7e2fb497bb37b15584439da27","width":1280,"height":640,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/fWpKPh0IGlnDu6zaClWTNg--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/Barrons.com/b42d1cd7e2fb497bb37b15584439da27","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA","^GSPC"]},{"uuid":"990b531b-7a5a-3aa3-a0c7-31e38280ac05","title":"Tesla's Latest Price Cut Looks Desperate","publisher":"Motley Fool","link":"https://finance.yahoo.com/m/990b531b-7a5a-3aa3-a0c7-31e38280ac05/tesla%27s-latest-price-cut.html","providerPublishTime":"2024-04-16T12:30:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/KNQyTaRjk6Mubi1XW_0lFQ--~B/aD0xMTUzO3c9MjYwMTthcHBpZD15dGFjaHlvbg--/https://media.zenfs.com/en/motleyfool.com/616871a3356d0c8d5539a115ac73425d","width":2601,"height":1153,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/dQuucmFXZZiX1Co4apt.Fg--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/motleyfool.com/616871a3356d0c8d5539a115ac73425d","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"b6f01d97-5355-3bdf-91df-602c74e3cb7f","title":"Tesla Cuts 'More Than 10%' Of Employees; Top Execs Depart As EV Giant Prepares For 'Next Phase Of Growth'","publisher":"Investor's Business Daily","link":"https://finance.yahoo.com/m/b6f01d97-5355-3bdf-91df-602c74e3cb7f/tesla-cuts-%27more-than-10%25%27-of.html","providerPublishTime":"2024-04-15T20:20:21.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/95mNngUcxsBdBpe5goShGw--~B/aD01NjM7dz0xMDAwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/ibd.com/e43cfbed9c26f391715b25d65eb23c40","width":...
                                                                                                                                                                                                                    
                                                                                                    

Search - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3833/yahoo+finance+api/4470/search?query=tesla' --header 'Authorization: Bearer YOUR_API_KEY' 


    

This /news endpoint is a GET request intended to fetch news articles related to a specific stock ticker symbol. It expects the ticker parameter to be provided as a query parameter, representing the stock symbol for which news articles are to be fetched. Additionally, it accepts an optional limit parameter to specify the maximum number of news articles to retrieve, with a default limit of 14 if not explicitly provided.

If the ticker parameter is missing, the endpoint responds with a 400 status code along with a JSON object containing a message prompting the user to provide the ticker symbol.

Once the ticker parameter is provided, the endpoint attempts to fetch news articles related to the specified stock symbol by calling the fetchStockNews function. This function likely interacts with a news API or service to retrieve relevant news articles based on the provided stock ticker and optional limit.

If the news retrieval process is successful, the endpoint responds with a JSON object containing the fetched news articles. However, if any error occurs during the process, such as failure to fetch news or other unexpected errors, the endpoint catches the error and responds with a 500 status code along with a JSON object containing an error message.

In summary, this endpoint provides a way to fetch news articles related to a specific stock symbol, allowing users to stay informed about recent developments and news impacting the stock market.



                                                                            
GET https://zylalabs.com/api/3833/yahoo+finance+api/4471/news
                                                                            
                                                                        

News - Endpoint Features

Object Description
ticker [Required] the stock ticker/ symbol
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"news":[{"uuid":"b89b3053-3217-3499-ad76-2aaacb6cc0d5","title":"Tesla (TSLA) to Cut Jobs by 10% to Manage Costs Amid Low EV Sales","publisher":"Zacks","link":"https://finance.yahoo.com/news/tesla-tsla-cut-jobs-10-123100303.html","providerPublishTime":"2024-04-16T12:31:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/devY3XHJ1YpzrP8OVL3zBg--~B/aD00MDA7dz02MzU7YXBwaWQ9eXRhY2h5b24-/https://media.zenfs.com/en/zacks.com/962d113d34adba715b05697dec9c80b7","width":635,"height":400,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/.L4tlr.1KMxSb11cwM9lpw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/zacks.com/962d113d34adba715b05697dec9c80b7","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA","F"]},{"uuid":"27075970-ec1c-31e2-88ef-591a6f779098","title":"Magnificent Seven Stocks: Nvidia, Apple, Tesla See Market Cap Shake-Up","publisher":"Investor's Business Daily","link":"https://finance.yahoo.com/m/27075970-ec1c-31e2-88ef-591a6f779098/magnificent-seven-stocks%3A.html","providerPublishTime":"2024-04-16T14:18:50.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/WGyXqXf_LcdzpRaHhGTxDw--~B/aD01NjM7dz0xMDAwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/ibd.com/e1d7160b119125a42817027007c6b741","width":1000,"height":563,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/F3QCz3tLO1_nSlQ3mil89g--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/ibd.com/e1d7160b119125a42817027007c6b741","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["COMP"]},{"uuid":"8df97086-8c90-3bb7-8cba-ce54d437bc6c","title":"Bank of America, Morgan Stanley, and UnitedHealth report: Yahoo Finance","publisher":"Yahoo Finance Video","link":"https://finance.yahoo.com/video/bank-america-morgan-stanley-unitedhealth-113013090.html","providerPublishTime":"2024-04-16T11:30:13.000Z","type":"VIDEO","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/JROOHNXjo16ZbnG0EpU6Ag--~B/aD0xMDgwO3c9MTkyMDthcHBpZD15dGFjaHlvbg--/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-09/1af93af0-db18-11e9-bff7-e34690b9be52","width":1920,"height":1080,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/.Pl07vIrpkJy_AGrKrtjlw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-09/1af93af0-db18-11e9-bff7-e34690b9be52","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["UAL","BAC","TSLA","DJT","DJTWW","RIVN","BA","JNJ","PNC","MS","UNH"]},{"uuid":"92535b87-b766-3bbe-ab25-1cc416bcc26f","title":"Tesla Is Running Out of Time to Deliver on Self-Driving Promises","publisher":"The Wall Street Journal","link":"https://finance.yahoo.com/m/92535b87-b766-3bbe-ab25-1cc416bcc26f/tesla-is-running-out-of-time.html","providerPublishTime":"2024-04-16T11:52:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/335PpXsiMYa3Hn4CNJeAOQ--~B/aD02NDA7dz0xMjgwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/wsj.com/3b5ffd2292a70c4cd35baf00e43a7633","width":1280,"height":640,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/JzvtESaklK9DP2zLBKtmOA--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/wsj.com/3b5ffd2292a70c4cd35baf00e43a7633","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"240eb652-2caa-3752-9245-c70c574838bc","title":"Tesla (TSLA) Reduces FSD Monthly Subscription Price by 50%","publisher":"Zacks","link":"https://finance.yahoo.com/news/tesla-tsla-reduces-fsd-monthly-152400436.html","providerPublishTime":"2024-04-15T15:24:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/qcNfuGLpp8.CUP2WyvvZ3Q--~B/aD00MDA7dz02MzU7YXBwaWQ9eXRhY2h5b24-/https://media.zenfs.com/en/zacks.com/cdf0e845342e2ccbc2f5c42fc22f87f1","width":635,"height":400,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/WErXXk50jZZ6f9C6cUPH3A--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/zacks.com/cdf0e845342e2ccbc2f5c42fc22f87f1","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"990b531b-7a5a-3aa3-a0c7-31e38280ac05","title":"Tesla's Latest Price Cut Looks Desperate","publisher":"Motley Fool","link":"https://finance.yahoo.com/m/990b531b-7a5a-3aa3-a0c7-31e38280ac05/tesla%27s-latest-price-cut.html","providerPublishTime":"2024-04-16T12:30:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/KNQyTaRjk6Mubi1XW_0lFQ--~B/aD0xMTUzO3c9MjYwMTthcHBpZD15dGFjaHlvbg--/https://media.zenfs.com/en/motleyfool.com/616871a3356d0c8d5539a115ac73425d","width":2601,"height":1153,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/dQuucmFXZZiX1Co4apt.Fg--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/motleyfool.com/616871a3356d0c8d5539a115ac73425d","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"fb91fbfd-bf56-31bf-a3e4-75f5b395952c","title":"Analysts weigh in on 'far-reaching' Tesla layoffs as stock extends slump","publisher":"TheStreet","link":"https://finance.yahoo.com/m/fb91fbfd-bf56-31bf-a3e4-75f5b395952c/analysts-weigh-in-on.html","providerPublishTime":"2024-04-16T12:27:51.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/.JhYgvFgP97vm5LYI6Syrw--~B/aD04MDA7dz0xMTYyO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/thestreet_881/3d4c82c51cb3741a69a5d6778146c167","width":1162,"height":800,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/ON0RpsMsoewiwqLMFcSlSw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/thestreet_881/3d4c82c51cb3741a69a5d6778146c167","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"4e70b8b9-17fe-3804-b8a9-f3c0f69fb9ac","title":"Tesla Stock Is Down 60%. How Much Further Could It Tumble?","publisher":"Motley Fool","link":"https://finance.yahoo.com/m/4e70b8b9-17fe-3804-b8a9-f3c0f69fb9ac/tesla-stock-is-down-60%25.-how.html","providerPublishTime":"2024-04-16T10:30:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/7.Un9AUGmNfmaUSkxa_K1g--~B/aD0xMDgwO3c9MTgwMDthcHBpZD15dGFjaHlvbg--/https://media.zenfs.com/en/motleyfool.com/25a84feec7f9dcdd855a5209065aa69e","width":1800,"height":1080,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/zjQmXENIt5KE0TP7yY9Whw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/motleyfool.com/25a84feec7f9dcdd855a5209065aa69e","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["TSLA"]},{"uuid":"ac3a04e6-c8de-358b-bb01-ccb1922b6d6d","title":"Stocks to Watch Tuesday: UnitedHealth, Tesla, J&J, Morgan Stanley","publisher":"The Wall Street Journal","link":"https://finance.yahoo.com/m/ac3a04e6-c8de-358b-bb01-ccb1922b6d6d/stocks-to-watch-tuesday%3A.html","providerPublishTime":"2024-04-16T14:04:10.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/5OXenMtMcpv9ijMGh9V9lw--~B/aD02NDA7dz0xMjgwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/wsj.com/ffda70b68331156111c4024b1f20b857","width":1280,"height":640,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/IRGUPhUnl5f8UtL7FAKmLw--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/wsj.com/ffda70b68331156111c4024b1f20b857","width":140,"height":140,"tag":"140x140"}]},"relatedTickers":["LYV","MS","BAC","UNH"]},{"uuid":"3a065977-f4ea-3475-8f56-df9bc121b22a","title":"Are Battery-Powered Home Appliances in Our Future?","publisher":"The Wall Street Journal","link":"https://finance.yahoo.com/m/3a065977-f4ea-3475-8f56-df9bc121b22a/are-battery-powered-home.html","providerPublishTime":"2024-04-16T14:00:00.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/hEYm9ykybfvm3rZLQ5DcgQ--~B/aD02NDA7dz0xMjgwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/wsj.com/98f5293e30b2c916f83fcb0e1ecc02be","width":1280,"height":640,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/3FFEYwAP1sY7vXS3Nab72A--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/wsj.com/98f5293e30b2c916f83fcb0e1ecc02be","width":140,"height":140,"tag":"140x140"}]}},{"uuid":"e68b0c59-cb17-345d-b487-b8e385f37701","title":"Bill Gates Says AI Will 'Absolutely' Play A Role In Climate Change By Allowing Scientists To Genetically Modify Beef Cows","publisher":"Benzinga","link":"https://finance.yahoo.com/news/bill-gates-says-ai-absolutely-140014848.html","providerPublishTime":"2024-04-16T14:00:14.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/fPCpfoFoiiWEZw6COoc_7A--~B/aD01NjM7dz0xMDAwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/Benzinga/92359fd4499b44118bea465ee299ecf7","width":1000,"height":563,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/zdzXz2u0nHY4aYeCqMIHYQ--~B/Zmk9ZmlsbDtoPTE0MDtweW9mZj0wO3c9MTQwO2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/Benzinga/92359fd4499b44118bea465ee299ecf7","width":140,"height":140,"tag":"140x140"}]}},{"uuid":"ff68e1fa-7e16-39a8-83c0-03a564e678bc","title":"1 Wall Street Analyst Thinks Tesla Stock Is Going to $120. Is It a Sell?","publisher":"Motley Fool","link":"https://finance.yahoo.com/m/ff68e1fa-7e16-39a8-83c0-03a564e678bc/1-wall-street-analyst-thinks.html","providerPublishTime":"2024-04-16T12:07:22.000Z","type":"STORY","thumbnail":{"resolutions":[{"url":"https://s.yimg.com/uu/api/res/1.2/rAJuk.7EyeyFLBUt9ibBRQ--~B/aD0xNDE0O3c9MjEyMDthcHBpZD15dGFjaHlvbg--/https://media.zenfs.com/en/motleyfool.com/cf7d5cec649a0ee8c0e22afc97a199f9","width":2120,"height":1414,"tag":"original"},{"url":"https://s.yimg.com/uu/api/res/1.2/SNi5onMfd0lZI2fZRs3REQ--~B/Zmk9ZmlsbDtoPTE0MDtweW...
                                                                                                                                                                                                                    
                                                                                                    

News - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3833/yahoo+finance+api/4471/news?ticker=O' --header 'Authorization: Bearer YOUR_API_KEY' 


    

This /fullData endpoint is a GET request designed to retrieve comprehensive data about a specific stock symbol. It expects the ticker parameter to be provided as a query parameter, representing the stock symbol for which full data is to be fetched.

If the ticker parameter is missing, the endpoint responds with a 400 status code along with a JSON object containing an error message prompting the user to provide the ticker symbol.

Once the ticker parameter is provided, the endpoint attempts to fetch comprehensive data about the specified stock symbol by calling the yahooFinance.quote function. This function likely interacts with a financial data provider, such as Yahoo Finance, to retrieve detailed information about the specified stock symbol.

If the data retrieval process is successful, the endpoint responds with a JSON object containing the full data of the stock, including various details such as the symbol, price, currency, and other relevant information.

However, if any error occurs during the process, such as failure to fetch data or other unexpected errors, the endpoint catches the error, logs it for debugging purposes, and responds with a 500 status code along with a JSON object containing an error message indicating the failure to fetch stock quote data.

In summary, this endpoint provides a convenient way to retrieve comprehensive data about a specific stock symbol, allowing users to access detailed information about the stock for analysis or decision-making purposes.



                                                                            
GET https://zylalabs.com/api/3833/yahoo+finance+api/4472/stock+full+information
                                                                            
                                                                        

Stock Full Information - Endpoint Features

Object Description
ticker [Required] the stock ticker/ symbol
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"language":"en-US","region":"US","quoteType":"EQUITY","typeDisp":"Equity","quoteSourceName":"Nasdaq Real Time Price","triggerable":true,"customPriceAlertConfidence":"HIGH","currency":"USD","marketState":"PRE","exchange":"NMS","shortName":"Tesla, Inc.","longName":"Tesla, Inc.","messageBoardId":"finmb_27444752","exchangeTimezoneName":"America/New_York","exchangeTimezoneShortName":"EDT","gmtOffSetMilliseconds":-14400000,"market":"us_market","esgPopulated":false,"regularMarketChangePercent":1.6534768,"regularMarketPrice":174.6,"hasPrePostMarketData":true,"firstTradeDateMilliseconds":"2010-06-29T13:30:00.000Z","priceHint":2,"preMarketChange":-2.8400116,"preMarketChangePercent":-1.6265817,"preMarketTime":"2024-04-12T13:22:04.000Z","preMarketPrice":171.76,"regularMarketChange":2.8400116,"regularMarketTime":"2024-04-11T20:00:00.000Z","regularMarketDayHigh":175.88,"regularMarketDayRange":{"low":168.51,"high":175.88},"regularMarketDayLow":168.51,"regularMarketVolume":93736391,"regularMarketPreviousClose":171.76,"bid":174.56,"ask":174.66,"bidSize":2,"askSize":2,"fullExchangeName":"NasdaqGS","financialCurrency":"USD","regularMarketOpen":172.47,"averageDailyVolume3Month":102815070,"averageDailyVolume10Day":100978650,"fiftyTwoWeekLowChange":22.230011,"fiftyTwoWeekLowChangePercent":0.14589494,"fiftyTwoWeekRange":{"low":152.37,"high":299.29},"fiftyTwoWeekHighChange":-124.69,"fiftyTwoWeekHighChangePercent":-0.41661933,"fiftyTwoWeekLow":152.37,"fiftyTwoWeekHigh":299.29,"fiftyTwoWeekChangePercent":-5.621624,"earningsTimestamp":"2024-04-23T20:00:00.000Z","earningsTimestampStart":"2024-04-23T20:00:00.000Z","earningsTimestampEnd":"2024-04-23T20:00:00.000Z","trailingAnnualDividendRate":0,"trailingPE":40.604652,"trailingAnnualDividendYield":0,"epsTrailingTwelveMonths":4.3,"epsForward":3.48,"epsCurrentYear":2.55,"priceEpsCurrentYear":68.47059,"sharesOutstanding":3184790016,"bookValue":19.665,"fiftyDayAverage":182.1774,"fiftyDayAverageChange":-7.5773926,"fiftyDayAverageChangePercent":-0.041593485,"twoHundredDayAverage":228.20775,"twoHundredDayAverageChange":-53.607742,"twoHundredDayAverageChangePercent":-0.23490763,"marketCap":556064374784,"forwardPE":50.172417,"priceToBook":8.878718,"sourceInterval":15,"exchangeDataDelayedBy":0,"averageAnalystRating":"2.9 - Hold","tradeable":false,"cryptoTradeable":false,"displayName":"Tesla","symbol":"TSLA"}
                                                                                                                                                                                                                    
                                                                                                    

Stock Full Information - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3833/yahoo+finance+api/4472/stock+full+information?ticker=TSLA' --header 'Authorization: Bearer YOUR_API_KEY' 


    

This /stockOptions endpoint is a GET request intended to retrieve information about stock options for a specific stock symbol. It expects the ticker parameter to be provided as a query parameter, representing the stock symbol for which options information is to be fetched.

If the ticker parameter is missing, the endpoint responds with a 400 status code along with a JSON object containing an error message prompting the user to provide the ticker symbol.

Once the ticker parameter is provided, the endpoint attempts to fetch information about stock options for the specified stock symbol. This is done by calling the yahooFinance.options function, which likely interacts with a financial data provider, such as Yahoo Finance, to retrieve options data for the specified stock symbol.

If the options retrieval process is successful, the endpoint responds with a JSON object containing information about the stock options, which may include details such as expiration dates, strike prices, and other relevant information.

However, if any error occurs during the process, such as failure to fetch data or other unexpected errors, the endpoint catches the error, logs it for debugging purposes, and responds with a 500 status code along with a JSON object containing an error message indicating the failure to fetch stock options data.

In summary, this endpoint provides a way to retrieve information about stock options for a specific stock symbol, allowing users to access data relevant to options trading or analysis.



                                                                            
GET https://zylalabs.com/api/3833/yahoo+finance+api/4473/stock+options
                                                                            
                                                                        

Stock Options - Endpoint Features

Object Description
ticker [Required] the stock ticker/ symbol
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"underlyingSymbol":"TSLA","expirationDates":["2024-04-12T00:00:00.000Z","2024-04-19T00:00:00.000Z","2024-04-26T00:00:00.000Z","2024-05-03T00:00:00.000Z","2024-05-10T00:00:00.000Z","2024-05-17T00:00:00.000Z","2024-05-24T00:00:00.000Z","2024-06-21T00:00:00.000Z","2024-07-19T00:00:00.000Z","2024-08-16T00:00:00.000Z","2024-09-20T00:00:00.000Z","2024-10-18T00:00:00.000Z","2024-11-15T00:00:00.000Z","2024-12-20T00:00:00.000Z","2025-01-17T00:00:00.000Z","2025-03-21T00:00:00.000Z","2025-06-20T00:00:00.000Z","2025-09-19T00:00:00.000Z","2025-12-19T00:00:00.000Z","2026-01-16T00:00:00.000Z","2026-06-18T00:00:00.000Z","2026-12-18T00:00:00.000Z"],"strikes":[100,105,110,115,120,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,152.5,155,157.5,160,162.5,165,167.5,170,172.5,175,177.5,180,182.5,185,187.5,190,192.5,195,197.5,200,202.5,205,210,215,220,225,230,235,240,245,250,255,260,265,270,275,280,285,290,295,300,305,310,315,320,325,330,335,340,345,350,355,360,365,370,375,380,385,390,395],"hasMiniOptions":false,"quote":{"language":"en-US","region":"US","quoteType":"EQUITY","typeDisp":"Equity","quoteSourceName":"Nasdaq Real Time Price","triggerable":true,"customPriceAlertConfidence":"HIGH","currency":"USD","hasPrePostMarketData":true,"firstTradeDateMilliseconds":"2010-06-29T13:30:00.000Z","priceHint":2,"preMarketChange":-2.7150116,"preMarketChangePercent":-1.5549895,"preMarketTime":"2024-04-12T13:22:30.000Z","preMarketPrice":171.885,"regularMarketChange":2.8400116,"regularMarketTime":"2024-04-11T20:00:00.000Z","regularMarketDayHigh":175.88,"regularMarketDayRange":{"low":168.51,"high":175.88},"regularMarketDayLow":168.51,"regularMarketVolume":93736391,"regularMarketPreviousClose":171.76,"bid":174.56,"ask":174.66,"bidSize":2,"askSize":2,"fullExchangeName":"NasdaqGS","financialCurrency":"USD","regularMarketOpen":172.47,"averageDailyVolume3Month":102815070,"averageDailyVolume10Day":100978650,"fiftyTwoWeekLowChange":22.230011,"fiftyTwoWeekLowChangePercent":0.14589494,"fiftyTwoWeekRange":{"low":152.37,"high":299.29},"fiftyTwoWeekHighChange":-124.69,"fiftyTwoWeekHighChangePercent":-0.41661933,"fiftyTwoWeekLow":152.37,"fiftyTwoWeekHigh":299.29,"fiftyTwoWeekChangePercent":-5.621624,"earningsTimestamp":"2024-04-23T20:00:00.000Z","earningsTimestampStart":"2024-04-23T20:00:00.000Z","earningsTimestampEnd":"2024-04-23T20:00:00.000Z","trailingAnnualDividendRate":0,"trailingPE":40.604652,"trailingAnnualDividendYield":0,"epsTrailingTwelveMonths":4.3,"epsForward":3.48,"epsCurrentYear":2.55,"priceEpsCurrentYear":68.47059,"sharesOutstanding":3184790016,"bookValue":19.665,"fiftyDayAverage":182.1774,"fiftyDayAverageChange":-7.5773926,"fiftyDayAverageChangePercent":-0.041593485,"twoHundredDayAverage":228.20775,"twoHundredDayAverageChange":-53.607742,"twoHundredDayAverageChangePercent":-0.23490763,"marketCap":556064374784,"forwardPE":50.172417,"priceToBook":8.878718,"sourceInterval":15,"exchangeDataDelayedBy":0,"averageAnalystRating":"2.9 - Hold","tradeable":false,"cryptoTradeable":false,"marketState":"PRE","regularMarketChangePercent":1.6534768,"regularMarketPrice":174.6,"exchange":"NMS","shortName":"Tesla, Inc.","longName":"Tesla, Inc.","messageBoardId":"finmb_27444752","exchangeTimezoneName":"America/New_York","exchangeTimezoneShortName":"EDT","gmtOffSetMilliseconds":-14400000,"market":"us_market","esgPopulated":false,"displayName":"Tesla","symbol":"TSLA"},"options":[{"expirationDate":"2024-04-12T00:00:00.000Z","hasMiniOptions":false,"calls":[{"contractSymbol":"TSLA240412C00100000","strike":100,"currency":"USD","lastPrice":75.04,"change":0,"percentChange":0,"volume":67,"openInterest":105,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T19:24:03.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00105000","strike":105,"currency":"USD","lastPrice":72.75,"change":0,"percentChange":0,"volume":4,"openInterest":13,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-09T14:27:41.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00110000","strike":110,"currency":"USD","lastPrice":64.07,"change":0,"percentChange":0,"volume":12,"openInterest":44,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T18:59:56.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00115000","strike":115,"currency":"USD","lastPrice":59.13,"change":0,"percentChange":0,"volume":5,"openInterest":7,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T19:01:45.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00120000","strike":120,"currency":"USD","lastPrice":52.12,"change":0,"percentChange":0,"volume":5,"openInterest":125,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-10T15:08:27.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00125000","strike":125,"currency":"USD","lastPrice":49.95,"change":0,"percentChange":0,"volume":20,"openInterest":106,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T19:20:32.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00129000","strike":129,"currency":"USD","lastPrice":44.83,"change":0,"percentChange":0,"volume":1,"openInterest":1,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-08T17:08:53.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00130000","strike":130,"currency":"USD","lastPrice":45,"change":0,"percentChange":0,"volume":181,"openInterest":393,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T19:18:31.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00132000","strike":132,"currency":"USD","lastPrice":39.75,"change":0,"percentChange":0,"volume":1,"openInterest":13,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-10T17:01:43.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00133000","strike":133,"currency":"USD","lastPrice":38.75,"change":0,"percentChange":0,"volume":1,"openInterest":22,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-10T17:01:43.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00134000","strike":134,"currency":"USD","lastPrice":38.73,"change":0,"percentChange":0,"volume":25,"openInterest":26,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T17:04:51.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00135000","strike":135,"currency":"USD","lastPrice":39.52,"change":0,"percentChange":0,"volume":44,"openInterest":197,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T18:07:14.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00136000","strike":136,"currency":"USD","lastPrice":36.6,"change":0,"percentChange":0,"volume":10,"openInterest":9,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-08T14:38:32.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00137000","strike":137,"currency":"USD","lastPrice":39,"change":0,"percentChange":0,"volume":1,"openInterest":42,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-09T18:35:36.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00138000","strike":138,"currency":"USD","lastPrice":33.61,"change":0,"percentChange":0,"volume":1,"openInterest":9,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-10T13:47:59.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00139000","strike":139,"currency":"USD","lastPrice":35.4,"change":0,"percentChange":0,"volume":1,"openInterest":71,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T18:46:40.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00140000","strike":140,"currency":"USD","lastPrice":35,"change":0,"percentChange":0,"volume":95,"openInterest":622,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T19:29:32.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00141000","strike":141,"currency":"USD","lastPrice":29.22,"change":0,"percentChange":0,"volume":20,"openInterest":23,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T14:46:51.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00142000","strike":142,"currency":"USD","lastPrice":30.6,"change":0,"percentChange":0,"volume":6,"openInterest":24,"bid":0,"ask":0,"contractSize":"REGULAR","expiration":"2024-04-12T00:00:00.000Z","lastTradeDate":"2024-04-11T16:32:45.000Z","impliedVolatility":0.000010000000000000003,"inTheMoney":true},{"contractSymbol":"TSLA240412C00143000","strike":143,"currency":"USD","lastPrice":27.75,"change":0,"percentChange":0,"volume":1,"openInterest":50,"bid":0...
                                                                                                                                                                                                                    
                                                                                                    

Stock Options - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3833/yahoo+finance+api/4473/stock+options?ticker=TSLA' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Yahoo Finance API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

To use this API users must select one the available endpoint, read the description and specify the required parameter and will receive up-to-date information of the stock and much more!

The Yahoo Finance API provides several endpoints for retrieving different types of financial data. Some of the endpoints include search, news, historical data, stock options, dividends, earnings, and more.

You can search for a stock by making a GET request to the '/search' endpoint with the ticker symbol as a query parameter. Optionally, you can specify the number of quotes to return and the limit of results.

To fetch historical data for a stock, you can make a GET request to the '/yhfhistorical' endpoint with the ticker symbol as a query parameter. Additionally, you can specify the start and end dates for the historical data.

The '/fullData' endpoint provides comprehensive information about a stock, including its symbol, price, currency, symbol name, market cap, and more.

You can retrieve stock options by making a GET request to the '/stockOptions' endpoint with the ticker symbol as a query parameter. This endpoint returns information about available options for the specified stock.

The '/financials' endpoint allows you to fetch various financial data for a stock, such as financial statements, earnings, dividends, and more. You need to provide the stock symbol as a query parameter to retrieve the data.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

 Service Level
82%
 Response Time
1,614ms

Category:


Related APIs