{
  "openapi": "3.0.1",
  "info": {
    "title": "YieldTerminal Earnings Results",
    "description": "Quarterly revenue, net income and diluted EPS read from each company's own results filing, with the SEC filing link on every figure, plus history as first reported. Free: bring your own YieldTerminal key.",
    "version": "0.0",
    "x-build-id": "LDqvtdUaajoI9bnDQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yieldterminalpro~yieldterminal-earnings-results/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yieldterminalpro-yieldterminal-earnings-results",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/yieldterminalpro~yieldterminal-earnings-results/runs": {
      "post": {
        "operationId": "runs-sync-yieldterminalpro-yieldterminal-earnings-results",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/yieldterminalpro~yieldterminal-earnings-results/run-sync": {
      "post": {
        "operationId": "run-sync-yieldterminalpro-yieldterminal-earnings-results",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "endpoint"
        ],
        "properties": {
          "endpoint": {
            "title": "Data set",
            "enum": [
              "company",
              "results",
              "outlook",
              "capex",
              "scorecard",
              "levels",
              "13f",
              "capital",
              "risk",
              "events",
              "updates",
              "archive",
              "sample-company",
              "sample-results",
              "sample-outlook",
              "status"
            ],
            "type": "string",
            "description": "Which YieldTerminal Pro data set to fetch. The three samples and the status check need no key.",
            "default": "sample-company"
          },
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "Ticker symbols such as AAPL or BRK.B. Company, 13F, levels, outlook and capex make one API call per ticker. Capital, risk and events send up to 25 tickers in one call. For the company sample, only the first ticker is used and it must be NVDA, WMT, TJX, HD or TGT.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{1,5}([.-][A-Za-z]{1,2})?$"
            }
          },
          "date": {
            "title": "Filing day",
            "type": "string",
            "description": "Results, outlook, levels or events: the filing (or board) day. Leave empty for the latest day."
          },
          "dateFrom": {
            "title": "From (events only)",
            "type": "string",
            "description": "Events: first filing day of a range, with To. At most 23 business days."
          },
          "dateTo": {
            "title": "To (events only)",
            "type": "string",
            "description": "Events: last filing day of a range, with From."
          },
          "item": {
            "title": "8-K item (events only)",
            "enum": [
              "5.02",
              "2.03",
              "2.04"
            ],
            "type": "string",
            "description": "Only this Form 8-K item. Leave empty for all three."
          },
          "season": {
            "title": "Scorecard season",
            "pattern": "^\\d{4}-(spring|summer|fall|winter)$",
            "type": "string",
            "description": "Scorecard: a season such as 2026-fall. Leave empty for the latest season."
          },
          "since": {
            "title": "Since",
            "type": "string",
            "description": "Updates: an ISO UTC time such as 2026-11-20T00:00:00Z (required for updates). Capital and risk: a day (YYYY-MM-DD) to list companies with a newer filing."
          },
          "maxPages": {
            "title": "Max pages (updates, archive, since)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Stop after this many paged calls. Each call is one call against the daily limit; archive returns up to 1,000 results per call.",
            "default": 5
          },
          "flatten": {
            "title": "One row per result",
            "type": "boolean",
            "description": "Push each result, outlook row, history quarter or event as its own dataset item. Turn off to push each API response whole.",
            "default": true
          },
          "apiKey": {
            "title": "Your YieldTerminal Pro API key",
            "type": "string",
            "description": "Optional. ytp_ followed by 48 hex characters. Get a free key (100 calls a day, personal non-commercial use) at https://yieldterminalpro.com/developers. Stored encrypted and sent only in the x-api-key header."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}