The Energy Statistics Data API provides efficient access to information from Yahoo Finance's energy sector page. Users can retrieve company names with one lightweight request and fetch detailed financial information for specific companies, such as stock prices, market capitalization, and performance metrics, with a separate endpoint. This two-step structure minimizes data transfer overhead, making the API ideal for applications requiring real-time, precise data for market analysis or financial research.
{"companies":[{"company_id":"TXGE","company_name":"Texas Gulf Energy, Incorporated"},{"company_id":"XOM","company_name":"Exxon Mobil Corporation"},{"company_id":"CVX","company_name":"Chevron Corporation"},{"company_id":"COP","company_name":"ConocoPhillips"},{"company_id":"EOG","company_name":"EOG Resources, Inc."},{"company_id":"EPD","company_name":"Enterprise Products Partners L.P."},{"company_id":"WMB","company_name":"The Williams Companies, Inc."},{"company_id":"ET","company_name":"Energy Transfer LP"},{"company_id":"OKE","company_name":"ONEOK, Inc."},{"company_id":"KMI","company_name":"Kinder Morgan, Inc."}]}
curl --location --request POST 'https://zylalabs.com/api/7014/energy+statistics+data+api/10842/get+company+names' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"symbol":"KMI","price":26.57,"market_cap":"59.018B","performance":{"day_change":"+0.02%","ytd_return":"+50.60%"},"sector":"Energy"}
curl --location --request POST 'https://zylalabs.com/api/7014/energy+statistics+data+api/10843/get+energy+company+details' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"company_ID":"Required"}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The API provides structured access to energy sector companies' names and financial details, ensuring optimal performance by separating requests.
You can get a list of company names and, for each company, retrieve details like stock prices, market cap, and performance metrics.
Use the "get energy company details" endpoint and provide the company's stock symbol as a parameter.
The API returns data in a clean JSON format for easy integration into applications.
The Energy Statistics Data API allows you to retrieve comprehensive data on the energy sector, including company names, stock prices, market capitalization, and various performance metrics for specific companies.
The "get company names" endpoint returns a list of companies in the energy sector, including their IDs and names. The "get energy company details" endpoint provides detailed financial information for a specific company, including stock price, market capitalization, and performance metrics.
For the "get company names" endpoint, key fields include "company_id" and "company_name." For the "get energy company details" endpoint, important fields are "symbol," "price," "market_cap," and "performance," which includes "day_change" and "ytd_return."
The response data is structured in JSON format. The "get company names" endpoint returns an array of company objects, while the "get energy company details" endpoint returns a single object with financial metrics and performance data.
The "get company names" endpoint provides a list of energy sector companies, while the "get energy company details" endpoint offers financial metrics such as stock price, market cap, and performance indicators for a specified company.
Users can customize requests by specifying the company symbol when using the "get energy company details" endpoint. This allows retrieval of tailored financial information for the desired company.
In the "get energy company details" response, "symbol" refers to the company's stock ticker, "price" indicates the current stock price, "market_cap" shows the company's total market value, and "performance" provides insights into daily and year-to-date changes.
Typical use cases include market analysis, financial research, investment decision-making, and tracking performance trends of energy sector companies based on real-time data.
Data accuracy is maintained through sourcing from reputable financial platforms like Yahoo Finance, which regularly updates information to reflect current market conditions and company performance metrics.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
7,033ms
Service Level:
100%
Response Time:
10,990ms
Service Level:
100%
Response Time:
61ms
Service Level:
100%
Response Time:
1,767ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
2,645ms
Service Level:
100%
Response Time:
3,870ms
Service Level:
100%
Response Time:
1,377ms
Service Level:
100%
Response Time:
17,064ms
Service Level:
100%
Response Time:
60ms