# Get Table Data — Nasdaq Data Link (Time Series and Table data)

> Retrieves data from a specific Nasdaq Data Link table with automatic pagination. Supports filtering by columns and rows. See the documentation

- Key: `nasdaq_data_link_time_series_and_table_data_-get-table-data`
- Type: Action (Read-only)
- Version: 0.0.3
- App: Nasdaq Data Link (Time Series and Table data) (`nasdaq_data_link_time_series_and_table_data_`) — https://pipedream.com/apps/nasdaq-data-link-time-series-and-table-data-.md
- This page (HTML): https://pipedream.com/apps/nasdaq-data-link-time-series-and-table-data-/actions/get-table-data
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/nasdaq_data_link_time_series_and_table_data_/actions/get-table-data/get-table-data.mjs

## Description

Retrieves data from a specific Nasdaq Data Link table with automatic pagination. Supports filtering by columns and rows. [See the documentation](https://docs.data.nasdaq.com/docs/tables-1)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `publisher` | `string` | Yes | The publisher code (e.g., MER, ETFG, AR, NDAQ). This is the first part of the datatable code. If the code is MER/F1, then MER is the publisher code and F1 is the table code. |
| `table` | `string` | Yes | The table code (e.g., F1, FUND, MWCS, RTAT10). This is the second part of the datatable code. If the code is MER/F1, then F1 is the table code. |
| `columns` | `string[]` | No | Request data from specific columns. If you want to query for multiple columns, include the column names as array items Options are loaded from the connected account. |
| `filters` | `object` | No | Filter rows based on column values. Use column names as keys and values to filter by. For example: { "ticker": "SPY", "date": "2024-01-01" }. Only filterable columns can be used (check table metadata). |
| `filterOperators` | `object` | No | Apply operators to filters. Format: { "column.operator": "value" }. Available operators: .gt (greater than), .lt (less than), .gte (greater than or equal), .lte (less than or equal). Example: { "date.gte": "2024-01-01", "date.lte": "2024-12-31" } |

## 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": "nasdaq_data_link_time_series_and_table_data_",
      },
    },
  },
)

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: "nasdaq_data_link_time_series_and_table_data_-get-table-data",
  arguments: {
    publisher: "Publisher Code",
    table: "Table Code",
  },
})
```

**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: "nasdaq_data_link_time_series_and_table_data_-get-table-data",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    nasdaq_data_link_time_series_and_table_data_: { authProvisionId: "apn_xxxxxxx" },
    publisher: "Publisher Code",
    table: "Table Code",
  },
})

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": "nasdaq_data_link_time_series_and_table_data_-get-table-data",
    "configured_props": {
      "nasdaq_data_link_time_series_and_table_data_": { "authProvisionId": "apn_xxxxxxx" },
      "publisher": "Publisher Code",
      "table": "Table Code"
    }
  }'
```

---

- App: https://pipedream.com/apps/nasdaq-data-link-time-series-and-table-data-.md · All apps: https://pipedream.com/apps
