> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /macrotrends/stocks/financials

> Get historical financial data for a stock ticker from Macrotrends

**Price:** 1 credit per 50 results

**⚠️ Common errors:** 412: Ticker symbol not found or no data available for the requested metric



## OpenAPI

````yaml /openapi/finance-markets.json post /api/macrotrends/stocks/financials
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/macrotrends/stocks/financials:
    post:
      tags:
        - /macrotrends
      summary: /macrotrends/stocks/financials
      description: >-
        Get historical financial data for a stock ticker from Macrotrends


        **Price:** 1 credit per 50 results


        **⚠️ Common errors:** 412: Ticker symbol not found or no data available
        for the requested metric
      operationId: __api_macrotrends_stocks_financials_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MacrotrendsStocksFinancialsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MacrotrendsFinancialBar'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MacrotrendsStocksFinancialsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        symbol:
          type: string
          minLength: 1
        metric:
          $ref: '#/components/schemas/MacrotrendsFundamental'
        freq:
          type: string
          enum:
            - quarterly
            - annual
          default: quarterly
        count:
          type: integer
          minimum: 1
      type: object
      required:
        - symbol
        - metric
        - count
    MacrotrendsFinancialBar:
      properties:
        '@type':
          type: string
          default: MacrotrendsFinancialBar
        date:
          type: string
        stock_price:
          anyOf:
            - type: number
            - type: 'null'
        value:
          anyOf:
            - type: number
            - type: 'null'
        yoy_change:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - date
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    MacrotrendsFundamental:
      type: string
      enum:
        - revenue
        - gross-profit
        - ebitda
        - net-income
        - eps-earnings-per-share-diluted
        - shares-outstanding
        - research-development-expenses
        - selling-general-administrative-expenses
        - cost-goods-sold
        - total-assets
        - total-liabilities
        - total-stockholders-equity
        - cash-on-hand
        - long-term-debt
        - book-value-per-share
        - free-cash-flow
        - pe-ratio
        - price-book
        - market-cap
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````