Yahoo Finance Search API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Look up stocks and other instruments on Yahoo Finance by ticker. Get name, sector, industry, market cap, price, exchange, P/E ratio and dividend yield. Pass exact symbols with any exchange suffix, or several in tickers. Company names are not searched, and quotes may not be real time.
Send POST https://api.everyinfra.com/api/v1/social with platform set to yahoo_finance and action set to search. Price $1.39 per 1,000 requests ($0.001389 per call). Failed calls and empty results are not charged. Each element in tickers counts as one call: the number of elements you send sets the charge. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Yahoo Finance Search endpoint (yahoo_finance/search).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to yahoo_finance and action to search, and put the parameters inside params.
- Required parameters:
- keyword: Specifies a single Yahoo Finance ticker symbol (e.g., AAPL) with required exchange suffixes retained. It does not perform full-text company name searches.
- Optional parameters:
- tickers: Accepts an array of ticker symbols for the Yahoo Finance search action, overriding single-target keyword inputs. This array does not apply to other actions like history.
- limit: The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows.
- Returns a list of records. Main fields of each record: id, name, symbol, sector, industry, market_cap, price, currency, quote_type, exchange, pe_ratio, dividend_yield.
- Example request body:
{
"platform": "yahoo_finance",
"action": "search",
"params": {
"keyword": "AAPL"
}
}
- Price: $1.39 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | yahoo_finance | Platform identifier, fixed value. |
action | body | string | Yes | search | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | Specifies a single Yahoo Finance ticker symbol (e.g., AAPL) with required exchange suffixes retained. It does not perform full-text company name searches. The history, financials, news, analyst, and options actions process one ticker per request to retrieve historical market data, financial statements, news items, analyst coverage, or options chains. |
tickers | body.params | array | No | - | Accepts an array of ticker symbols for the Yahoo Finance search action, overriding single-target keyword inputs. This array does not apply to other actions like history; uppercase ticker symbols with explicit exchange suffixes are recommended. |
limit | body.params | integer (1–) | No | - | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "yahoo_finance",
"action": "search",
"params": {
"keyword": "AAPL"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "yahoo_finance", "action": "search", "results": [ { "id": "AAPL", "name": "Apple Inc.", "symbol": "AAPL", "sector": "Technology", "industry": "Consumer Electronics", "market_cap": 4977636933632, "price": 341.07, "quote_type": "EQUITY", "pe_ratio": 39.068733, "dividend_yield": 0.32, "platform": "yahoo_finance" } ], "count": 1, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
name | Name of the object itself, for account, product and business capabilities. |
symbol | Keeps the platform's own meaning |
sector | Keeps the platform's own meaning |
industry | Keeps the platform's own meaning |
market_cap | Keeps the platform's own meaning |
price | Price as a number without a currency symbol; see currency. |
currency | Currency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency. |
quote_type | Keeps the platform's own meaning |
exchange | Keeps the platform's own meaning |
pe_ratio | Keeps the platform's own meaning |
dividend_yield | Keeps the platform's own meaning |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
Official references
#Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.
- Yahoo Finance: Ticker Suffixes, Exchange Delays, and Information Use ↗
Official guidance explains that exchange ticker suffixes and data delays vary, defining data strictly for informational purposes. This explains ticker symbol and market data freshness boundaries; it does not prove that this endpoint supports real-time trading.
Checked 2026-09-05