# Get Company Financials — Polygon

> Retrieves financial details for a specific company by stock ticker. See the documentation.

- Key: `polygon-get-company-financials`
- Type: Action (Read-only)
- Version: 0.0.2
- App: Polygon (`polygon`) — https://pipedream.com/apps/polygon.md
- This page (HTML): https://pipedream.com/apps/polygon/actions/get-company-financials
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/polygon/actions/get-company-financials/get-company-financials.mjs

## Description

Retrieves financial details for a specific company by stock ticker. [See the documentation](https://polygon.io/docs/stocks/get_vx_reference_financials).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `stockTicker` | `string` | Yes | Specify a case-sensitive ticker symbol. For example, AAPL represents Apple Inc. Options are loaded from the connected account. |
| `filingDate` | `string` | No | Query by the date when the filing with financials data was filed in YYYY-MM-DD format. |
| `periodOfReportDate` | `string` | No | The period of report for the filing with financials data in YYYY-MM-DD format. |
| `timeframe` | `string` | No | Query by timeframe. Annual financials originate from 10-K filings, and quarterly financials originate from 10-Q filings. Note: Most companies do not file quarterly reports for Q4 and instead include those financials in their annual report, so some companies my not return quarterly financials for Q4 |
| `order` | `string` | No | Order results based on the Sort field. |
| `limit` | `integer` | No | Limit the number of results returned. |
| `sort` | `string` | No | Sort field used for ordering |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "polygon",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "polygon-get-company-financials",
  arguments: {
    stockTicker: "Stock Ticker",
    filingDate: "Filing Date",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "polygon-get-company-financials",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    polygon: { authProvisionId: "apn_xxxxxxx" },
    stockTicker: "Stock Ticker",
    filingDate: "Filing Date",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "polygon-get-company-financials",
    "configured_props": {
      "polygon": { "authProvisionId": "apn_xxxxxxx" },
      "stockTicker": "Stock Ticker",
      "filingDate": "Filing Date"
    }
  }'
```

---

- App: https://pipedream.com/apps/polygon.md · All apps: https://pipedream.com/apps
