[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Marketstack stock split history](https://spiral.ai/integrations/n8n/marketstack-stock-split-history)

# How to Use Marketstack stock split history in n8n

Marketstack stock split history returns split dates, ratios, and numeric split factors for a ticker. Use it to reconcile share counts or investigate a price discontinuity around a split.

|  |  |
| --- | --- |
| Model | Marketstack stock split history |
| Available through | Alexandria |
| Category | Finance |
| Price | Up to $0.034918 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Marketstack stock split history in n8n

- Every Monday, use Marketstack stock split history for NVDA over the past year and report any newly returned dates, ratios, or factors.
- Every Friday, use Marketstack stock split history for TSLA over the past five years and flag changes to previously returned events.
- Every Monday at 9am: use Marketstack stock split history to look this up and give me the result as a table.
- Pull the latest numbers from Marketstack stock split history and tell me what changed since last week.
- Check Marketstack stock split history and summarize what you find in three bullet points.

## How to set up Marketstack stock split history in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Marketstack stock split history in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Marketstack stock split history, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Marketstack stock split history**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "marketstack/corporate-actions/splits",
    "input": {
      "symbols": "<symbols>"
    }
  }'
```

Then paste one of the prompts above: n8n finds Marketstack stock split history on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Marketstack stock split history tools and prices

- [Marketstack · Stock splits](https://spiral.ai/tools/alexandria/marketstack/corporate-actions/splits) (Alexandria): Up to $0.034918 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort | DESC, ASC, desc, asc | — | Order by date. DESC, newest first, is the default. |
| limit | 1 to 100 | — | Rows per page, from 1 to 100. Default 100. The request costs the same whatever the row count. |
| offset | 0 to 1000000 | — | Rows to skip for the next page. Default 0. |
| date_to |  | — | Latest date, YYYY-MM-DD. |
| date_from |  | — | Earliest date, YYYY-MM-DD. |

## What can you do with Marketstack stock split history in n8n?

Keep a watchlist's corporate action history current through scheduled comparisons. An always-on agent can report newly returned Marketstack dividend records or split events and identify changes to previously seen values.

### Build a corporate action timeline

Combine Marketstack dividend history and Marketstack stock split history into a dated timeline for AAPL. Keep dividend milestones and split events labeled separately.

### Audit historical adjustments

Compare returned dividend events and split factors with the adjustment records in an existing market dataset. Produce a list of dates and values that need investigation.

### Test portfolio accounting

Use returned dividend distributions and split events as dated examples for testing cash entries and share-count changes in portfolio software.

### Prepare a company research brief

Summarize a public company's returned distributions and split events over a defined period. Include the dividend amounts and split ratios behind the summary.

### Reconcile share-count changes

Apply returned split ratios to a hypothetical starting share count. Compare the resulting sequence with an existing share ledger.

### Annotate historical charts

Add split dates and ratios to an existing stock chart so readers can investigate price changes around those events.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Marketstack stock split history in other agents

- [Amp](https://spiral.ai/integrations/amp/marketstack-stock-split-history)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/marketstack-stock-split-history)
- [Claude](https://spiral.ai/integrations/claude-desktop/marketstack-stock-split-history)
- [Claude Code](https://spiral.ai/integrations/claude-code/marketstack-stock-split-history)
- [Cline](https://spiral.ai/integrations/cline/marketstack-stock-split-history)
- [Codex](https://spiral.ai/integrations/codex/marketstack-stock-split-history)
- [Cursor](https://spiral.ai/integrations/cursor/marketstack-stock-split-history)
- [Devin](https://spiral.ai/integrations/devin/marketstack-stock-split-history)
- [dots](https://spiral.ai/integrations/dots/marketstack-stock-split-history)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/marketstack-stock-split-history)
- [Gemini](https://spiral.ai/integrations/gemini/marketstack-stock-split-history)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/marketstack-stock-split-history)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/marketstack-stock-split-history)
- [goose](https://spiral.ai/integrations/goose/marketstack-stock-split-history)
- [Grok](https://spiral.ai/integrations/grok/marketstack-stock-split-history)
- [Grok Build](https://spiral.ai/integrations/grok-build/marketstack-stock-split-history)
- [Hermes](https://spiral.ai/integrations/hermes/marketstack-stock-split-history)
- [Instinct](https://spiral.ai/integrations/instinct/marketstack-stock-split-history)
- [Manus](https://spiral.ai/integrations/manus/marketstack-stock-split-history)
- [Muse](https://spiral.ai/integrations/muse/marketstack-stock-split-history)
- [Muse Code](https://spiral.ai/integrations/muse-code/marketstack-stock-split-history)
- [Notion](https://spiral.ai/integrations/notion/marketstack-stock-split-history)
- [OpenClaw](https://spiral.ai/integrations/openclaw/marketstack-stock-split-history)
- [opencode](https://spiral.ai/integrations/opencode/marketstack-stock-split-history)
- [Perplexity](https://spiral.ai/integrations/perplexity/marketstack-stock-split-history)
- [Raycast](https://spiral.ai/integrations/raycast/marketstack-stock-split-history)
- [VS Code](https://spiral.ai/integrations/vscode/marketstack-stock-split-history)
- [Windsurf](https://spiral.ai/integrations/windsurf/marketstack-stock-split-history)
- [Zapier](https://spiral.ai/integrations/zapier/marketstack-stock-split-history)

## More n8n guides

- [Marketstack stock exchange directory](https://spiral.ai/integrations/n8n/marketstack-stock-exchange-directory)
- [Marketstack ticker search](https://spiral.ai/integrations/n8n/marketstack-ticker-search)
- [Marketstack dividend history](https://spiral.ai/integrations/n8n/marketstack-dividend-history)
- [NFA BASIC CFTC reparations cases](https://spiral.ai/integrations/n8n/nfa-basic-cftc-reparations-cases)
- [Marketstack daily stock prices](https://spiral.ai/integrations/n8n/marketstack-daily-stock-prices)
- [NFA BASIC FCM financial reports](https://spiral.ai/integrations/n8n/nfa-basic-fcm-financial-reports)

## Questions about Marketstack stock split history in n8n

**Can n8n use Marketstack stock split history?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Marketstack stock split history like any built-in tool.

**How much does Marketstack stock split history cost in n8n?**

Up to $0.034918 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use Marketstack stock split history in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Marketstack stock split history on its own Alexandria account.

**How long does it take to set up Marketstack stock split history in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Marketstack stock split history runs?**

Marketstack stock split history runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Which markets does Marketstack explicitly cover for corporate actions?**

The corporate action documentation lists NASDAQ, NYSE, NYSE ARCA, PINK, SHG, OTCQB, and BATS for dividend and split data. That list defines the documented coverage boundary for these records.

**Where does Marketstack obtain its US market data?**

Marketstack names Tiingo, Inc., based in New York City, as its licensed source for stock market data from United States exchanges.

**Does one response contain a stock's entire corporate action history?**

Marketstack returns paginated results and distinguishes the current page's count from the total available. Retrieve the remaining pages before describing a dividend or split history as complete.

**Does Marketstack stream corporate action updates?**

Marketstack says it offers no WebSocket or streaming APIs. Its data is retrieved through requests rather than a continuous event stream.

**Does Marketstack guarantee that its records are accurate and always available?**

APILayer's published SaaS agreement expressly disclaims responsibility for licensed data's availability, content, and accuracy. It does not provide an unconditional accuracy guarantee for dividend or split records.

