Yahoo Finance Valuation & Fundamentals
POST /api/v1/yahoo-finance/valuation
Scrape valuation and fundamental metrics from Yahoo Finance including market cap, trailing/forward P/E, EPS, dividend yield, ex-dividend date, target estimate, and beta.
Overview
Scrape valuation and fundamental metrics from Yahoo Finance including market cap, trailing/forward P/E, EPS, dividend yield, ex-dividend date, target estimate, and beta.
POST /api/v1/yahoo-finance/valuation
Method: POST Path: /api/v1/yahoo-finance/valuation Category: Finance
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| geolocation | string | Optional | Country the request is made from, as a two-letter code, e.g. US |
| target | string | Required | Ticker symbol or Yahoo Finance quote URL, e.g. AAPL |
Request Example
Yahoo Finance Valuation & Fundamentals Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/yahoo-finance/valuation" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"geolocation": "US", "target": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "valuation_and_fundamentals": { "market_capitalization": 0, "pe_ratio_ttm": 0.0, "pe_ratio_forward": 0.0, "eps_ttm": 0.0, "dividend_yield_pct": 0.0, "ex_dividend_date": "2026-01-01T12:00:00Z", "one_year_target_estimate": 0.0, "beta": 0.0 }, "valuation_measures": { "market_cap": {}, "enterprise_value": {}, "trailing_p_e": {}, "forward_p_e": {}, "peg_ratio_current": {}, "price_sales": {}, "price_book": {}, "enterprise_value_revenue": {}, "enterprise_value_ebitda": {} }, "financial_highlights": { "fiscal_year": {}, "profitability": {}, "management_effectiveness": {}, "income_statement": {}, "balance_sheet": {}, "cash_flow_statement": {} }, "trading_information": { "stock_price_history": {}, "share_statistics": {}, "dividends_splits": {} }, "analyst_price_targets": { "low": 0.0, "average": 0.0, "current": 0.0, "high": 0.0 }, "performance_overview": {}, "error": "string", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Yahoo Finance Valuation & Fundamentals", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| valuation_and_fundamentals | object | Yes | |
| valuation_and_fundamentals.market_capitalization | integer | null | Yes | Total market value of outstanding shares |
| valuation_and_fundamentals.pe_ratio_ttm | number | null | No | Trailing twelve months price-to-earnings ratio |
| valuation_and_fundamentals.pe_ratio_forward | number | null | No | Forward price-to-earnings ratio |
| valuation_and_fundamentals.eps_ttm | number | null | No | Diluted earnings per share (TTM) |
| valuation_and_fundamentals.dividend_yield_pct | number | null | No | Annualized dividend yield percentage |
| valuation_and_fundamentals.ex_dividend_date | string | null | No | Ex-dividend date (YYYY-MM-DD) |
| valuation_and_fundamentals.one_year_target_estimate | number | null | No | Analyst 1-year median price target estimate |
| valuation_and_fundamentals.beta | number | null | No | 5-year monthly beta volatility coefficient |
| valuation_measures | object | No | Key valuation multiples across current and historical quarters |
| valuation_measures.market_cap | object | No | |
| valuation_measures.enterprise_value | object | No | |
| valuation_measures.trailing_p_e | object | No | |
| valuation_measures.forward_p_e | object | No | |
| valuation_measures.peg_ratio_current | object | No | |
| valuation_measures.price_sales | object | No | |
| valuation_measures.price_book | object | No | |
| valuation_measures.enterprise_value_revenue | object | No | |
| valuation_measures.enterprise_value_ebitda | object | No | |
| financial_highlights | object | No | Fundamental metrics by financial category |
| financial_highlights.fiscal_year | object | No | Fiscal year schedule and most recent quarter |
| financial_highlights.profitability | object | No | Profit margin and operating margin |
| financial_highlights.management_effectiveness | object | No | Return on assets and return on equity |
| financial_highlights.income_statement | object | No | TTM revenue, gross profit, EBITDA, and quarterly growth |
| financial_highlights.balance_sheet | object | No | Total cash, total debt, debt-to-equity, and book value |
| financial_highlights.cash_flow_statement | object | No | Operating cash flow and levered free cash flow |
| trading_information | object | No | Stock price history, share statistics, and dividend history |
| trading_information.stock_price_history | object | No | 52-week change, 50-day and 200-day moving averages |
| trading_information.share_statistics | object | No | Shares outstanding, float, insider/institutional holdings, and short interest |
| trading_information.dividends_splits | object | No | Dividend payout ratio, payment dates, and stock split history |
| analyst_price_targets | object | No | Consensus analyst price targets |
| analyst_price_targets.low | number | null | No | |
| analyst_price_targets.average | number | null | No | |
| analyst_price_targets.current | number | null | No | |
| analyst_price_targets.high | number | null | No | |
| performance_overview | object | No | Trailing period returns vs benchmark |
| error | string | No | Error message when scrape fails |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/yahoo-finance/valuation?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
target,geolocation example,US
Pricing & Rate Limits
Endpoint Pricing
$0.0022 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |