Pull GraniteShares ETF Trust's industry peers, with any metrics you choose plus the industry median and average, in one call with the Business Quant Peers API. Swap YOUR_API_KEY for your own key.
https://data.businessquant.com/peers?ticker=FIYY&cols=Revenue%20(Quarter),Net%20Income%20(Quarter)&api_key=YOUR_API_KEY
import requests
url = "https://data.businessquant.com/peers"
params = {"ticker": "FIYY", "cols": "Revenue (Quarter),Net Income (Quarter)", "api_key": "YOUR_API_KEY"}
data = requests.get(url, params=params).json()
const res = await fetch("https://data.businessquant.com/peers?ticker=FIYY&cols=Revenue%20(Quarter),Net%20Income%20(Quarter)&api_key=YOUR_API_KEY");
const data = await res.json();