---
title: "Stock Analysis API: US stock overviews as JSON"
description: "Stock Analysis API for US stock overviews with quote, valuation and analyst targets, and financial statements by year or quarter. 1 credit per successful call."
url: https://perceptlayer.com/apis/stock-analysis
---

[APIs](https://perceptlayer.com/apis) / [Finance](https://perceptlayer.com/verticals/finance) / Stock Analysis

1 credit per call 2 endpoints 3 datapoints 

# Stock Analysis API

Stock Analysis API for US stock overviews with quote, valuation and analyst targets, and financial statements by year or quarter. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Stock Analysis

GET /v1/stock-analysis/financials?symbol=AAPL&statement=income&period=annual 

```
{
  "success": true,
  "data": {
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "exchange": "NASDAQ",
    "statement": "income",
    "period": "annual",
    "currency": "USD",
    "fiscal_year_months": "October - September",
    "url": "https://stockanalysis.com/stocks/aapl/financials/income-statement/",
    "line_items": [
      {
        "key": "revenue",
        "title": "Revenue",
        "unit": "amount"
      },
      {
        "key": "cost_of_revenue",
        "title": "Cost of Revenue",
        "unit": "amount"
      },
      {
        "key": "gross_profit",
        "title": "Gross Profit",
        "unit": "amount"
      }
    ],
    "periods": [
      {
        "is_ttm": true,
        "fiscal_year": 2026,
        "fiscal_quarter": "Q4",
        "values": {
          "revenue": 478834000000,
          "cost_of_revenue": 245232000000,
          "gross_profit": 233602000000,
          "selling_general_and_admin": 29774000000,
          "research_and_development": 45765000000,
          "operating_expenses": 75539000000,
          "operating_income": 158063000000,
          "other_non_operating_income_expenses": 1174000000,
          "pretax_income": 159237000000,
          "income_tax_expense": 27062000000,
          "net_income": 132175000000,
          "net_income_to_common": 132175000000,
          "shares_outstanding_basic": 14661935000,
          "shares_outstanding_diluted": 14720306000,
          "eps_basic": 9.01484,
          "eps_diluted": 8.98,
          "free_cash_flow": 136056000000,
          "free_cash_flow_per_share": 9.243,
          "dividend_per_share": 1.06,
          "gross_margin": 0.48786,
          "operating_margin": 0.3301,
          "profit_margin": 0.27604,
          "free_cash_flow_margin": 0.28414,
          "ebitda": 171486000000,
          "ebitda_margin": 0.35813,
          "d_and_a_for_ebitda": 13423000000,
          "ebit": 158063000000,
          "ebit_margin": 0.3301,
          "effective_tax_rate": 0.16995,
          "revenue_as_reported": 478834000000
        }
      },
      {
        "period_end": "2026-09-26",
        "is_ttm": false,
        "fiscal_year": 2026,
        "fiscal_quarter": "Q4",
        "values": {
          "revenue": 478834000000,
          "cost_of_revenue": 245232000000,
          "gross_profit": 233602000000,
          "selling_general_and_admin": 29774000000,
          "research_and_development": 45765000000,
          "operating_expenses": 75539000000,
          "operating_income": 158063000000,
          "other_non_operating_income_expenses": 1174000000,
          "pretax_income": 159237000000,
          "income_tax_expense": 27062000000,
          "net_income": 132175000000,
          "net_income_to_common": 132175000000,
          "shares_outstanding_basic": 14661935000,
          "shares_outstanding_diluted": 14720306000,
          "eps_basic": 9.01484,
          "eps_diluted": 8.98,
          "free_cash_flow": 136056000000,
          "free_cash_flow_per_share": 9.243,
          "dividend_per_share": 1.06,
          "gross_margin": 0.48786,
          "operating_margin": 0.3301,
          "profit_margin": 0.27604,
          "free_cash_flow_margin": 0.28414,
          "ebitda": 171486000000,
          "ebitda_margin": 0.35813,
          "d_and_a_for_ebitda": 13423000000,
          "ebit": 158063000000,
          "ebit_margin": 0.3301,
          "effective_tax_rate": 0.16995,
          "revenue_as_reported": 478834000000
        }
      },
      {
        "period_end": "2025-09-27",
        "is_ttm": false,
        "fiscal_year": 2025,
        "fiscal_quarter": "Q4",
        "values": {
          "revenue": 416161000000,
          "cost_of_revenue": 220960000000,
          "gross_profit": 195201000000,
          "selling_general_and_admin": 27601000000,
          "research_and_development": 34550000000,
          "operating_expenses": 62151000000,
          "operating_income": 133050000000,
          "other_non_operating_income_expenses": -321000000,
          "pretax_income": 132729000000,
          "income_tax_expense": 20719000000,
          "net_income": 112010000000,
          "net_income_to_common": 112010000000,
          "shares_outstanding_basic": 14948500000,
          "shares_outstanding_diluted": 15004697000,
          "eps_basic": 7.493059,
          "eps_diluted": 7.46,
          "free_cash_flow": 98767000000,
          "free_cash_flow_per_share": 6.582,
          "dividend_per_share": 1.02,
          "gross_margin": 0.46905,
          "operating_margin": 0.31971,
          "profit_margin": 0.26915,
          "free_cash_flow_margin": 0.23733,
          "ebitda": 144748000000,
          "ebitda_margin": 0.34782,
          "d_and_a_for_ebitda": 11698000000,
          "ebit": 133050000000,
          "ebit_margin": 0.31971,
          "effective_tax_rate": 0.1561,
          "revenue_as_reported": 416161000000
        }
      }
    ]
  },
  "meta": {
    "request_id": "req_55c16cf3ba304d3cb64f39d84f4199fa",
    "credits_charged": 1,
    "credits_remaining": 172
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `financials`: the fields and shapes you will get, shortened to 3 items.

| # | key string | title string | unit string |
| --- | --- | --- | --- |
| 1 | revenue | Revenue | amount |
| 2 | cost\_of\_revenue | Cost of Revenue | amount |
| 3 | gross\_profit | Gross Profit | amount |

Recorded from our API · 3 items shown · 3 datapoints per item GET /v1/stock-analysis/financials?symbol=AAPL&statement=income&period=annual

3 datapoints

### Identity

-   title string

### Other

-   key string
-   unit string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/stock-analysis/financials?symbol=AAPL&statement=income&period=annual" \
  -H "X-API-Key: $API_KEY"
```

Stock Analysis · 2 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/stock-analysis/financials`](https://perceptlayer.com/apis/stock-analysis/financials) | `symbol` +2 optional | `symbol` `name` `exchange` `statement` `period` `currency` +4 more | 1 credit |
| [GET `/v1/stock-analysis/overview`](https://perceptlayer.com/apis/stock-analysis/overview) | `symbol` | `symbol` `name` `short_name` `exchange` `currency` `cik` +24 more | 1 credit |

Overview

## About the Stock Analysis API

## What you can get

The Stock Analysis API returns US stock data from Stock Analysis as JSON through 2 endpoints.

-   **Overview:** `overview` takes a ticker `symbol` as the site writes it, for example `AAPL` or `BRK.B`. A renamed ticker is followed to its new one.
-   **Financials:** `financials` takes a `symbol`, with `statement` (income, balance-sheet, cash-flow or ratios, default income) and `period` (annual or quarterly, default annual).

The recorded `overview` for `AAPL` returns `name`, `exchange`, `currency`, `cik`, a `quote` (price, change, open, high, low, previous close, volume, 52-week range, `market_status` and `trade_date`), `market_cap`, TTM revenue, net income and EPS with their growth, `pe_ratio`, `forward_pe`, `beta`, `dividend`, `ex_dividend_date`, `earnings_date`, `analyst_rating`, `analyst_count`, `price_target`, `analyst_ratings` by rating, a `profile` (description, industry, sector, employees, IPO date and website) and `annual_financials` for five years. In that recording Apple closed at 351.19 on 2026-12-01, with a P/E of 39.11 and a "Buy" rating from 44 analysts. `financials` returns `line_items` (each `key`, `title` and `unit`) and `periods`, each with `period_end`, `fiscal_year`, `fiscal_quarter`, `is_ttm` and the `values` for every line item. Apple's trailing twelve months showed `revenue` of 478,834,000,000 and a `gross_margin` of 0.48786.

## How a call works

`GET /v1/stock-analysis/overview?symbol=AAPL` with your key in the `X-API-Key` header returns the overview; for the statements, call `GET /v1/stock-analysis/financials?symbol=AAPL&statement=income&period=annual`. Amounts are in full currency units, and a line item with unit `fraction` is a share, so 0.25 means 25%. `overview` answers come from a cache for up to 5 minutes, so the quote can be up to five minutes old; `financials` for up to an hour. Every successful call costs 1 credit; failed calls cost nothing.

Finance JSON REST MCP

### More finance APIs

[ARES](https://perceptlayer.com/apis/ares) [Brønnøysund Register Centre](https://perceptlayer.com/apis/brreg) [CoinGecko](https://perceptlayer.com/apis/coingecko) [CoinMarketCap](https://perceptlayer.com/apis/coinmarketcap) [DEX Screener](https://perceptlayer.com/apis/dexscreener) [FDIC BankFind](https://perceptlayer.com/apis/fdic) [Finnish Patent and Registration Office](https://perceptlayer.com/apis/prh) [Finviz](https://perceptlayer.com/apis/finviz) [LEI Lookup](https://perceptlayer.com/apis/lei) [MarketWatch](https://perceptlayer.com/apis/marketwatch) [Morningstar](https://perceptlayer.com/apis/morningstar) [Nasdaq](https://perceptlayer.com/apis/nasdaq)

Use cases

### Screen stocks by P/E, forward P/E, dividend yield and analyst rating

`Use the Stock Analysis API to screen stocks by P/E, forward P/E, dividend yield and analyst rating` 

### Load income statements, balance sheets and cash flows into a model, by year or quarter

`Use the Stock Analysis API to load income statements, balance sheets and cash flows into a model, by year or quarter` 

### Compare margins across companies in a sector from the ratios statement

`Use the Stock Analysis API to compare margins across companies in a sector from the ratios statement` 

### Track analyst price targets and rating counts for a watchlist

`Use the Stock Analysis API to track analyst price targets and rating counts for a watchlist` 

FAQ

## Questions

**How much does the Stock Analysis API cost?**

Each successful call costs one credit, and each statement for one period type is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Is the quote real time?**

No. \`overview\` answers can come from a cache for up to 5 minutes, and the \`quote\` carries its own \`market\_status\` and \`updated\_at\`. For a quote at most a minute old, use the \[Nasdaq API\](/apis/nasdaq).

**How far back do the statements go?**

\`periods\` lists the fiscal years or quarters the statement shows, newest first, each with its \`period\_end\`, and the trailing twelve months marked \`is\_ttm\`. The recorded income statement for \`AAPL\` ran from the trailing twelve months back through fiscal 2026 and 2025. Apple's fiscal year runs October to September, which \`fiscal\_year\_months\` states.

**Do I need a Stock Analysis account?**

No. You call this Stock Analysis API with your Perceptlayer key in the \`X-API-Key\` header, with no Stock Analysis login or subscription.

**Is this the official Stock Analysis API?**

No. Perceptlayer is an independent service and is not affiliated with Stock Analysis. It returns Stock Analysis data as JSON with a Perceptlayer key, so there is no Stock Analysis developer account, app review or partner approval to get first. It only reads data: if Stock Analysis has an official API and you need to act on your own Stock Analysis account, such as posting, managing orders or reading private data, use that one.

**Should I build a Stock Analysis scraper instead?**

You can, but a Stock Analysis scraper is code you maintain: page changes break it, requests get blocked, and Stock Analysis's terms govern how you collect data. The Stock Analysis API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Stock Analysis API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
