# Yahoo Finance Market Time Scraper (`parseforge/yahoo-finance-market-time-scraper`) Actor

Retrieve current market open and close times from Yahoo Finance's verified API. Get market ID, name, status, open and close timestamps, timezone details, and more. Ideal for tracking trading sessions or building market-aware dashboards.

- **URL**: https://apify.com/parseforge/yahoo-finance-market-time-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Other, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.25 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### Yahoo Finance Market Time Scraper

**Scrape Yahoo Finance market time data for any exchange, including premarket and after hours sessions.** Get market open and close times, current status, and timezone details in one flat row. No login or API key. Export to CSV, JSON, Excel, or XML.

Yahoo Finance's official API requires registration and rate limits. This scraper reads the public market time endpoint directly, returning opening and closing times, session status, and timezone information for global exchanges. It is ideal for traders and analysts who need reliable market schedule data without the overhead.

| Who uses it | What they scrape Yahoo Finance for |
|---|---|
| Day traders | Monitor premarket and after hours session times to plan entries and exits. |
| Financial analysts | Track market open and close times across global exchanges for research reports. |
| Algorithmic trading developers | Feed market schedule data into trading bots to avoid trading during closed sessions. |
| Market researchers | Analyze trading hour patterns and timezone differences for market studies. |

### What it does

This Actor collects Yahoo Finance market time data for all exchanges and returns each market as a flat row with open and close times, status, and timezone details.

- 🌍 **Global coverage:** returns market times for all exchanges available on Yahoo Finance, including US, Europe, and Asia.
- ⏰ **Session details:** open and close times for regular, premarket, and after hours sessions where applicable.
- 🕒 **Timezone info:** each market includes timezone short name, text, GMT offset, and DST flag.
- 📊 **Flat output:** every market is a single row, ready for CSV, JSON, Excel, or XML export.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Yahoo Finance data

**📈 Pre-market and after-hours monitoring.**

A day trader runs the scraper daily to check premarket open times for US exchanges and adjust their trading schedule accordingly.

**🌐 Global trading hours research.**

A financial analyst scrapes market times for exchanges in Asia, Europe, and the Americas to compile a report on overlapping trading sessions.

**🤖 Trading bot scheduling.**

An algorithmic developer uses the scraper to feed market open and close times into their bot, ensuring trades only execute during active sessions.

**📊 Timezone analysis.**

A market researcher extracts timezone offsets and DST flags for all markets to study how daylight saving changes affect trading activity.

### Why choose this scraper

| | What you get |
|---|---|
| **No API key** | Access Yahoo Finance market time data without registration or authentication. |
| **Structured data** | Get open, close, status, and timezone in a clean, flat format. |
| **Global markets** | Coverage includes major exchanges worldwide, not US markets. |
| **Easy export** | Download results as CSV, JSON, Excel, or XML for further analysis. |

### How it compares

This actor focuses specifically on market time data, while the competitor offers broader stock information.

| Feature | ParseForge | Yahoo Finance - Full stock info, news, cheapest, real-time |
|---|---|---|
| Market open and close times | Yes | Not listed |
| Premarket and after hours times | Yes | Not listed |
| Timezone details | Yes | Not listed |
| No API key required | Yes | Not listed |
| Flat row output | Yes | Not listed |

### What a Yahoo Finance record looks like

Every record returns as one flat JSON row. Here is a real one from a run:

```json
{
 "id": "us",
 "name": "U.S. markets",
 "status": "closed",
 "yfitMarketId": "us_market",
 "close": "2026-09-28T20:00:00Z",
 "message": "U.S. markets closed",
 "open": "2026-09-28T13:30:00Z",
 "yfitMarketStatus": "YFT_MARKET_CLOSED",
 "time": "2026-09-29T03:32:13Z",
 "timezoneDst": "true",
 "timezoneGmtoffset": "-14400",
 "timezoneShort": "EDT",
 "timezoneText": "America/New_York",
 "scrapedAt": "2026-09-29T03:32:14.005Z"
}
```

Every value above comes from a real run. A field a record does not have comes back as `null`.

### Configure the run

Set maxItems to limit the number of markets returned. The scraper fetches all available market times from Yahoo Finance and returns them in a fixed schema. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "maxItems": 10
}
```

A larger pull:

```json
{
 "maxItems": 200
}
```

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Set your inputs and any filters, then click **Start**.
3. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Yahoo Finance through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that maxItems is set to at least 1. If the issue persists, the Yahoo Finance endpoint may be temporarily unavailable. Try running the scraper again later.

**The data seems outdated.**

The scraper fetches live data on each run. If you are using a scheduled run, ensure it is set to run at the desired frequency. You can also manually trigger a run to get the latest data.

**I need data for a specific exchange, but I get all markets.**

Currently, the scraper returns all markets. You can filter the results after export using tools like Excel or Python. We may add market filtering in a future version.

**The run fails with an error.**

Check your Apify account limits and ensure you have enough credits. If the error persists, contact support with the run ID for assistance.

### FAQ

| Question | Answer |
|---|---|
| What data does this scraper return? | It returns market time data from Yahoo Finance, including market ID, name, status, open and close times, and timezone details for each exchange. |
| Do I need an API key or login? | No, the scraper accesses the public Yahoo Finance market time endpoint without authentication. |
| Can I filter by specific markets? | The current version returns all available markets. You can set maxItems to limit the number of results, but there is no filter by market name or region. |
| How often is the data updated? | The scraper fetches live data from Yahoo Finance on each run, so the market times reflect the current schedule. |
| What formats can I export the data to? | You can export the results as CSV, JSON, Excel, or XML using Apify's built-in export options. |
| Is this scraper legal? | The scraper only accesses publicly available data from Yahoo Finance. You should review Yahoo's terms of service and comply with any applicable laws. |
| Can I run this scraper on a schedule? | Yes, you can set up a scheduled run in Apify to scrape market times at regular intervals, such as daily before market open. |
| What is the maximum number of items I can scrape? | Free users are limited to 10 items. Paid users can set maxItems up to 1,000,000, but the actual number of markets returned is typically much smaller. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Yahoo Inc. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `maxItems` (type: `integer`):

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000

## Actor input object example

```json
{
  "maxItems": 10
}
```

# Actor output Schema

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

Complete dataset of all scraped records.

# 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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/yahoo-finance-market-time-scraper").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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("parseforge/yahoo-finance-market-time-scraper").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 '{
  "maxItems": 10
}' |
apify call parseforge/yahoo-finance-market-time-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/yahoo-finance-market-time-scraper"
        }
    }
}
```

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/cPSMMT9Lwc6p2dFe7/builds/3QVHgA59igwQ8OIOS/openapi.json
