# Get Latest Listings — CoinMarketCap

> Returns a paginated list of all active cryptocurrencies with latest market data. See the documentation

- Key: `coinmarketcap-latest-listings`
- Type: Action (Read-only)
- Version: 0.1.3
- App: CoinMarketCap (`coinmarketcap`) — https://pipedream.com/apps/coinmarketcap.md
- This page (HTML): https://pipedream.com/apps/coinmarketcap/actions/latest-listings
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/coinmarketcap/actions/latest-listings/latest-listings.mjs

## Description

Returns a paginated list of all active cryptocurrencies with latest market data. [See the documentation](https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyListingsLatest)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `start` | `integer` | No | Optionally offset the start (1-based index) of the paginated list of items to return. |
| `limit` | `integer` | No | Optionally specify the number of results to return. Use this parameter and the "start" parameter to determine your own pagination size. |
| `volume24hMin` | `integer` | No | Optionally specify a threshold of minimum 24 hour USD volume to filter results by. |
| `convert` | `string` | No | Optionally calculate market quotes in up to 120 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found at https://coinmarketcap.com/api/documentation/v1/#section/Standards-and-Conventions. Each conversion is returned in its own "quote" object. |
| `convertId` | `string` | No | Optionally calculate market quotes by CoinMarketCap ID instead of symbol. This option is identical to convert outside of ID format. Ex: Convert ID = 1,2781 would replace Convert = BTC,USD in your query. This parameter cannot be used when Convert is used. |
| `sort` | `string` | No | What field to sort the list of cryptocurrencies by. |
| `sortDir` | `string` | No | The direction in which to order cryptocurrencies against the specified sort. |
| `cryptocurrencyType` | `string` | No | The type of cryptocurrency to include. |
| `aux` | `string[]` | No | Optionally specify supplemental data fields to return. |

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

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: "coinmarketcap-latest-listings",
  arguments: {
    start: 10,
    limit: 10,
  },
})
```

**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: "coinmarketcap-latest-listings",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    coinmarketcap: { authProvisionId: "apn_xxxxxxx" },
    start: 10,
    limit: 10,
  },
})

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": "coinmarketcap-latest-listings",
    "configured_props": {
      "coinmarketcap": { "authProvisionId": "apn_xxxxxxx" },
      "start": 10,
      "limit": 10
    }
  }'
```

---

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