GetHistoricalSectorPE
getHistoricalSectorPEAccess historical price-to-earnings (P/E) ratios for various sectors using the Historical Sector P/E API.
How it works ↓Pricing
Per call
$0.01
Model
flat
Pay only for what you use. No subscriptions.
Inputs
from
stringexchange
stringto
stringsector *
stringInput Parameters
Cost per run
Execution cost$0.01
About GetHistoricalSectorPE
Access historical price-to-earnings (P/E) ratios for various sectors using the Historical Sector P/E API. Analyze how sector valuations have evolved over time to understand long-term trends and market shifts.
Frequently Asked Questions
Access historical price-to-earnings (P/E) ratios for various sectors using the Historical Sector P/E API. Analyze how sector valuations have evolved over time to understand long-term trends and market shifts.
GetHistoricalSectorPE costs $0.01 per call on xpay. No subscription, no minimums. Pay only for the calls you make. New accounts get $5 in free credits.
Connect the Financial Modeling Prep MCP endpoint to your client — Claude Code: claude mcp add --transport http financial-modeling-prep "https://financial-modeling-prep.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"; Cursor/Windsurf/Cline/VS Code: same URL in mcp.json. The agent will see getHistoricalSectorPE as a callable tool with the input schema and run it directly. (Unified across all providers: https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY, then xpay_run with toolPath financial-modeling-prep/getHistoricalSectorPE.)
Yes — that's exactly what xpay is for. You don't need a Financial Modeling Prep account or API key. Sign up at xpay.tools (Google or email), get $5 free credit, and run GetHistoricalSectorPE immediately. Billing flows through your xpay balance.
GetHistoricalSectorPE accepts 4 input parameters: from, exchange, to, sector. See the input schema and runnable form on this page for details and to test live.

