# searchCoin

**Identifier:** `coingecko_searchCoin`

**Provider:** [CoinGecko](https://kirha.com/providers/coingecko.md)

Search for coins listed on CoinGecko by name or symbol.

## Run it with the CLI

```bash
kirha tools run coingecko_searchCoin \
  --input '{
    "query": "<query>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "coingecko_searchCoin",
  "input": {
    "query": "<query>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "limit": {
      "default": 1,
      "maximum": 10,
      "minimum": 1,
      "type": "number"
    },
    "query": {
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "coins": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "imageUrl": {
            "type": "string"
          },
          "marketCapRank": {
            "type": [
              "number",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "thumbnailUrl": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "symbol",
          "marketCapRank",
          "thumbnailUrl",
          "imageUrl"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "coins"
  ],
  "type": "object"
}
```

## Related tools

Other CoinGecko tools that this tool refers to, or that refer to it.

- [`getCoinInfoForPlatform`](https://kirha.com/providers/coingecko/getCoinInfoForPlatform.md)
- [`getCoinHistoricalMarketData`](https://kirha.com/providers/coingecko/getCoinHistoricalMarketData.md)
- [`getCoinInfo`](https://kirha.com/providers/coingecko/getCoinInfo.md)
- [`getCoinMarketData`](https://kirha.com/providers/coingecko/getCoinMarketData.md)
- [`getCoinOhlc`](https://kirha.com/providers/coingecko/getCoinOhlc.md)

-----

[All CoinGecko tools](https://kirha.com/providers/coingecko.md) · [< Back to tools list](https://kirha.com/tools.md)