# Get Data By EDINET Code — JP Funda

> Returns the most recent and annual securities report data for the past few years. See the documentation

- Key: `jp_funda-get-data-by-edinet-code`
- Type: Action (Read-only)
- Version: 0.0.2
- App: JP Funda (`jp_funda`) — https://pipedream.com/apps/jp-funda.md
- This page (HTML): https://pipedream.com/apps/jp-funda/actions/get-data-by-edinet-code
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/jp_funda/actions/get-data-by-edinet-code/get-data-by-edinet-code.mjs

## Description

Returns the most recent and annual securities report data for the past few years. [See the documentation](https://www.jp-funda.com/docs/#edinet%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A7%E3%83%87%E3%83%BC%E3%82%BF%E5%8F%96%E5%BE%97-edinet%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A7%E5%85%A8%E3%81%A6%E3%81%AE%E6%9C%89%E4%BE%A1%E8%A8%BC%E5%88%B8%E5%A0%B1%E5%91%8A%E6%9B%B8%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%8F%96%E5%BE%97-get)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `edinetCode` | `string` | Yes | Enter the EDINET code. |

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

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: "jp_funda-get-data-by-edinet-code",
  arguments: {
    edinetCode: "EDINET 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: "jp_funda-get-data-by-edinet-code",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    jp_funda: { authProvisionId: "apn_xxxxxxx" },
    edinetCode: "EDINET 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": "jp_funda-get-data-by-edinet-code",
    "configured_props": {
      "jp_funda": { "authProvisionId": "apn_xxxxxxx" },
      "edinetCode": "EDINET Code"
    }
  }'
```

---

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