openapi: 3.2.0 info: title: Marketstack API v2 Dividends API version: 2.0.0 description: 'The official Marketstack API documentation will help you learn how to query the Marketstack JSON API for real-time, intraday, and historical stock market data, along with more advanced EDGAR data endpoints. Also, define multiple stock symbols, retrieve extensive data about 2700+ Stock Exchanges Info, 30000+ Stock tickers from more than 50 countries, as well as 750 + Stock Market indexes, information about timezones, currencies, and more. Our API is built upon a RESTful and easy-to-understand request and response structure. API requests are always sent using a simple API request URL with a series of required and optional HTTPS GET parameters, and API responses are provided in lightweight JSON format. ' servers: - url: https://api.marketstack.com/v2 security: - ApiKeyQuery: [] tags: - name: Dividends paths: /dividends: get: tags: - Dividends summary: Dividends Data description: 'Using the Dividends Data endpoint, you will be able to look up information about the stock dividend for different symbols. **Note:** The **V2 Dividend Endpoint** provides dividend data for symbols listed on **NASDAQ, PINK, SHG, NYSE, NYSE ARCA, OTCQB,** and **BATS**, and dividend information for individual ticker symbols can also be retrieved using the **Tickers Endpoint**.' parameters: - $ref: '#/components/parameters/AccessKey' - $ref: '#/components/parameters/Symbols' - $ref: '#/components/parameters/DateFrom' - $ref: '#/components/parameters/DateTo' - $ref: '#/components/parameters/Sort' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Offset' responses: '200': description: Dividends data retrieved. content: application/json: schema: $ref: '#/components/schemas/DividendsResponse' components: schemas: DividendItem: type: object properties: symbol: type: string description: Ticker symbol the dividend applies to. date: type: string description: Ex-dividend date. dividend: type: number format: float description: Dividend amount per share. DividendsResponse: type: object properties: pagination: $ref: '#/components/schemas/Pagination' data: type: array items: $ref: '#/components/schemas/DividendItem' Pagination: type: object properties: limit: type: integer description: Returns your pagination limit value. offset: type: integer description: Returns your pagination offset value. count: type: integer description: Returns the results count on the current page. total: type: integer description: Returns the total count of results available. parameters: Symbols: name: symbols in: query description: One or more comma-separated ticker symbols (e.g., `AAPL,MSFT`). required: true schema: type: string AccessKey: name: access_key in: query description: Your Marketstack API access key. required: true schema: type: string Sort: name: sort in: query description: Sort order. Use `ASC` for oldest first or `DESC` for newest first. required: false schema: type: string enum: - ASC - DESC Offset: name: offset in: query description: Pagination offset (number of results to skip). Default 0. required: false schema: type: integer minimum: 0 Limit: name: limit in: query description: Pagination limit (results per page). Default 100, maximum 1000. required: false schema: type: integer minimum: 1 maximum: 1000 DateFrom: name: date_from in: query description: Filter results from this date (inclusive). Format `YYYY-MM-DD`. required: false schema: type: string format: date DateTo: name: date_to in: query description: Filter results up to this date (inclusive). Format `YYYY-MM-DD`. required: false schema: type: string format: date securitySchemes: ApiKeyQuery: type: apiKey in: query name: access_key description: Your Marketstack API access key.