Industries PE Ratio API


OVERVIEW
Industries The PE average is calculated using companies that are grouped by industry. This endpoint is updated on a daily basis, allowing you to look back at historical data. Divide the price by the earnings per share, or EPS, to get the price-to-earnings ratio, or PE. EPS can be obtained from financial statements and earnings calendar endpoints, while price can be obtained from our quote endpoint.

We also have sectors pe ratio endpoint.

Industries PE Ratio API


OVERVIEW
Industries The PE average is calculated using companies that are grouped by industry. This endpoint is updated on a daily basis, allowing you to look back at historical data. Divide the price by the earnings per share, or EPS, to get the price-to-earnings ratio, or PE. EPS can be obtained from financial statements and earnings calendar endpoints, while price can be obtained from our quote endpoint.

We also have sectors pe ratio endpoint.

Industries PE Ratio

https://financialmodelingprep.com/api/v4/industry_price_earning_ratio?date=2021-05-07&exchange=NYSE&apikey=YOUR_API_KEY

curl https://financialmodelingprep.com/api/v4/industry_price_earning_ratio?date=2021-05-07&exchange=NYSE&apikey=YOUR_API_KEY
[ {
  "date" : "2021-05-07",
  "industry" : "Auto Manufacturers",
  "exchange" : "NYSE",
  "pe" : "62.1420462666666751"
}, {
  "date" : "2021-05-07",
  "industry" : "Banks Diversified",
  "exchange" : "NYSE",
  "pe" : "33.2373039483871153"
}, {
  "date" : "2021-05-07",
  "industry" : "Computer Hardware",
  "exchange" : "NYSE",
  "pe" : "63.0115322481481428"
}, {
  "date" : "2021-05-07",
  "industry" : "Drug Manufacturers General",
  "exchange" : "NYSE",
  "pe" : "40.6311915389610405"
}, {
  "date" : "2021-05-07",
  "industry" : "Household & Personal Products",
  "exchange" : "NYSE",
  "pe" : "76.1478811079999645"
}, {
  "date" : "2021-05-07",
  "industry" : "Metals & Mining",
  "exchange" : "NYSE",
  "pe" : "52.5766227276190392"
}, {
  "date" : "2021-05-07",
  "industry" : "Oil & Gas Midstream",
  "exchange" : "NYSE",
  "pe" : "152.087980826190488"
}, {
  "date" : "2021-05-07",
  "industry" : "REIT Diversified",
  "exchange" : "NYSE",
  "pe" : "65.8221667666666548"
}, {
  "date" : "2021-05-07",
  "industry" : "Telecom Services",
  "exchange" : "NYSE",
  "pe" : "26.2022392285714183"
}, {
  "date" : "2021-05-07",
  "industry" : "Trucking",
  "exchange" : "NYSE",
  "pe" : "55.3028414118181928"
}, {
  "date" : "2021-05-07",
  "industry" : "Utilities Diversified",
  "exchange" : "NYSE",
  "pe" : "29.8290601925675745"
} ]

INDUSTRIES_PE_RATIO_WITH JAVA


URL url = new URL("https://financialmodelingprep.com/api/v4/industry_price_earning_ratio?date=2021-05-07&exchange=NYSE&apikey=YOUR_API_KEY");

try (BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream(), "UTF-8"))) {
    for (String line; (line = reader.readLine()) != null;) {
    System.out.println(line);
  }
}
Resource List :