# US Stocks Fundamental Analysis: NYSE & NASDAQ Screener (`acmegen.ai/us-stocks-fundamental-analysis`) Actor

Fundamental data for all US stocks (NYSE & NASDAQ) in one query: P/E, P/B, ROE, margins, dividend yield and more, plus computed Graham and Bazin fair value. Whole market or filter by ticker.

- **URL**: https://apify.com/acmegen.ai/us-stocks-fundamental-analysis.md
- **Developed by:** [Acmee AI](https://apify.com/acmegen.ai) (community)
- **Categories:** AI, Automation, Developer tools
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 📈 US Stocks Fundamental Analysis (NYSE & NASDAQ Screener)

Get the **top 300 largest companies of each US exchange** (NYSE & NASDAQ, ranked by market cap) in a **single query**, with every key fundamental already calculated - P/E, P/B, P/S, EV/EBITDA, ROE, ROIC, margins, dividend yield, payout, debt/equity and more. On top of the raw data, each stock is enriched with **Graham** and **Bazin fair value** and the upside vs. the current price.

> 🎯 **One call, the large caps.** No need to loop ticker by ticker - pull the 300 biggest names per exchange at once and filter/sort in your spreadsheet or database.

***

### What you get (per stock)

| Group | Fields |
|---|---|
| **Identification** | `symbol`, `name`, `exchange`, `price`, `marketCap`, `volume` |
| **Valuation** | `peRatio`, `pbRatio`, `psRatio`, `evToEbitda`, `earningsYieldPct` |
| **Per share** | `eps`, `bookValuePerShare`, `dividendPerShare`, `fcfPerShare` |
| **Profitability** | `roe`, `roic`, `roa`, `profitMargin`, `grossMargin`, `operatingMargin` |
| **Dividends** | `dividendYield`, `payoutRatio` |
| **Health & size** | `debtToEquity`, `currentRatio`, `revenue`, `netIncome`, `sharesOut`, `beta` |
| **Fair value (computed)** | `grahamFairValue`, `grahamUpsidePct`, `grahamNumber`, `grahamQualifies`, `bazinFairValue`, `bazinUpsidePct` |

The fair-value fields are **computed by this Actor** (the source does not provide them):

- **Graham fair value** = √(22.5 × EPS × Book Value/Share)
- **Bazin ceiling price** = Dividend/Share ÷ target yield (default 6%)
- **Upside %** = (fair value / price − 1) × 100

***

### How to use

Leave empty to pull the top 300 of each exchange (NYSE + NASDAQ), or filter by tickers:

```json
{ "tickers": ["TSM", "JPM"] }
```

- `tickers`: optional filter (e.g. AAPL, MSFT), applied within the top 300 of each exchange; empty = all

Export the dataset as **JSON, CSV or Excel**, or call the real-time **Standby API** (`POST /screen`).

***

### Example output

One record per stock, sorted by market cap (largest first):

```json
[
  {
    "symbol": "TSM",
    "name": "Taiwan Semiconductor Manufacturing Company Limited",
    "exchange": "NYSE",
    "price": 423.16,
    "marketCap": 1890210051627,
    "volume": 13189036,
    "peRatio": 31.67,
    "pbRatio": 10.19,
    "psRatio": 14.73,
    "evToEbitda": 20.37,
    "earningsYieldPct": 3.16,
    "eps": 11.51,
    "bookValuePerShare": 7.1,
    "dividendPerShare": 2.64,
    "fcfPerShare": 1.29,
    "roe": 36.21,
    "roic": 51.6,
    "roa": 17.32,
    "profitMargin": 46.5,
    "grossMargin": 61.87,
    "operatingMargin": 53.33,
    "dividendYield": 0.62,
    "payoutRatio": 22.91,
    "debtToEquity": 0.18,
    "currentRatio": 2.49,
    "revenue": 128327204972,
    "netIncome": 59678536449,
    "sharesOut": 25932370000,
    "beta": 1.26,
    "grahamFairValue": 42.89,
    "grahamUpsidePct": -89.87,
    "grahamNumber": 322.74,
    "grahamQualifies": false,
    "bazinFairValue": 43.93,
    "bazinUpsidePct": -89.62
  }
]
```

***

### FAQ

**Where does the data come from?**
Consolidated public market data, refreshed on each query.

**Are the percentages already in percent?**
Yes - e.g. `roe: 36.21` means 36.21%.

**How is "fair value" computed?**
Classic Benjamin Graham and Décio Bazin formulas (see above). `grahamQualifies` is true when P/E × P/B < 22.5.

**Can I call it in real time?**
Yes. The Standby endpoint `POST /screen` responds synchronously.

***

#### 🔌 API integration

**Batch run:**

```bash
curl -X POST "https://api.apify.com/v2/acts/acme-ai~us-stocks-fundamental-analysis/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"tickers":["TSM","JPM"]}'
```

**Standby (`POST /screen`):**

```bash
curl -X POST "https://acme-ai--us-stocks-fundamental-analysis.apify.actor/screen" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  --compressed \
  -d '{"tickers":["TSM","JPM"]}'
```

The token goes in the `Authorization: Bearer` header, never in the URL.

***

### Notes

Fundamental data is provided for informational purposes only and is not investment advice. Always verify figures before making decisions.

# Actor input Schema

## `tickers` (type: `array`):

Optional ticker filter (e.g. AAPL, MSFT), applied within the top 300 of each exchange. Empty = all 300.

## Actor input object example

```json
{
  "tickers": [
    "TSM",
    "JPM"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Stocks with fundamentals (one record per stock).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [
        "TSM",
        "JPM"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("acmegen.ai/us-stocks-fundamental-analysis").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tickers": [
        "TSM",
        "JPM",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("acmegen.ai/us-stocks-fundamental-analysis").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [
    "TSM",
    "JPM"
  ]
}' |
apify call acmegen.ai/us-stocks-fundamental-analysis --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,acmegen.ai/us-stocks-fundamental-analysis"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/y6DPdKrgYs96mwSaN/builds/XxqyBe1CgP97C6Q8E/openapi.json
