How to Use Marketstack dividend history in Windsurf
Marketstack dividend history returns dividend amounts, ex-dividend dates, payment dates, record dates, declaration dates, and distribution frequency for a ticker. Use it to review distributions or build a payment timeline.
Prompts to try with Marketstack dividend history in Windsurf
Copy an example into Windsurf, or ask in your own words.
Use Marketstack dividend history for AAPL during 2024 and add a table to this project showing amounts, ex-dividend dates, and payment dates.
Use Marketstack dividend history for MSFT during 2025 and create a CSV in this project with declaration, record, ex-dividend, and payment dates.
Use Marketstack dividend history for KO during 2024 and compare its returned distribution amounts and payment dates with this project's dividend fixture.
Use Marketstack dividend history to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Marketstack dividend history and tell me what changed since last week.
How to set up Marketstack dividend history in Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Marketstack dividend history
One request; the result comes back by polling or a webhook.
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/dividends", "input": { "symbols": "<symbols>" } }'
Then paste one of the prompts above: Windsurf finds Marketstack dividend history on Spiral, shows the price and runs it.
Marketstack dividend history providers and prices
Spiral runs Marketstack dividend history through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Windsurf for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | DESC, ASC, desc, or 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. |
Every API field of Marketstack · Dividends is on its tool page: open its card above.
What can you do with Marketstack dividend history in Windsurf?
Build a corporate action table that shows Marketstack dividend milestones or split dates and factors. A coding agent can add those records to a project's accounting checks, chart annotations, or research views.
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.
Review dividend payment timing
Arrange returned dividend records by payment date and compare them with their declaration, record, and ex-dividend dates.
Compare dividend distributions over time
Group MSFT's returned dividend records by year and show the distribution amounts alongside their dates. Flag changes for further research.
More on Marketstack dividend history and Windsurf
Overview
Marketstack dividend history in other agents
Questions about Marketstack dividend history in Windsurf
Can Windsurf use Marketstack dividend history?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Marketstack dividend history like any built-in tool.
How much does Marketstack dividend history cost in Windsurf?
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 Windsurf plan is separate.
Do I need an Alexandria account to use Marketstack dividend history in Windsurf?
No. Spiral runs Marketstack dividend history on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Marketstack dividend history in Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while Marketstack dividend history runs?
Marketstack dividend history runs in the background. Windsurf 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.
Start using Marketstack dividend history in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


