Skip to content
Back to skills

1sh1ro Coingecko Api

ASecurity

Call the CoinGecko API to fetch crypto prices, market data, coin metadata, or charts; use when a task requires querying CoinGecko endpoints, building a quick data pull, or automating CoinGecko API requests (free or Pro).

  • 78 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 24, 2026
blockchainpythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 24, 2026

npx -y skills add jiayaoqijia/cryptoskill --skill 1sh1ro-coingecko-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1sh1ro Coingecko Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1sh1ro Coingecko Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiayaoqijia-1sh1ro-coingecko-api/badge)](https://www.skillsdirectory.com/skills/jiayaoqijia-1sh1ro-coingecko-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: coingecko-api
description: "Call the CoinGecko API to fetch crypto prices, market data, coin metadata, or charts; use when a task requires querying CoinGecko endpoints, building a quick data pull, or automating CoinGecko API requests (free or Pro)."
---

# CoinGecko API

## Overview

Use this skill to call CoinGecko API endpoints reliably and repeatedly. It provides a small, standard-library script for GET requests, plus lightweight notes on common endpoints and auth.

## Quick Start

Run the bundled script with a relative endpoint path:

```bash
python3 scripts/coingecko_get.py simple/price --param ids=bitcoin --param vs_currencies=usd
```

Use a full URL if you already have one:

```bash
python3 scripts/coingecko_get.py "https://api.coingecko.com/api/v3/coins/bitcoin"
```

## Common Tasks

Get a spot price:

```bash
python3 scripts/coingecko_get.py simple/price \
  --param ids=bitcoin,ethereum \
  --param vs_currencies=usd
```

List all coins:

```bash
python3 scripts/coingecko_get.py coins/list
```

Get coin detail:

```bash
python3 scripts/coingecko_get.py coins/bitcoin
```

Get a market chart:

```bash
python3 scripts/coingecko_get.py coins/bitcoin/market_chart \
  --param vs_currency=usd \
  --param days=30
```

## Auth And Base URL

If your plan requires an API key, pass it explicitly or set env vars:

- `COINGECKO_API_KEY` for the value
- `COINGECKO_API_KEY_HEADER` for the header name

Override the base URL as needed:

- Flag: `--base-url https://...`
- Env: `COINGECKO_BASE_URL`

Example:

```bash
COINGECKO_BASE_URL="https://api.coingecko.com/api/v3" \
COINGECKO_API_KEY="..." \
COINGECKO_API_KEY_HEADER="x-cg-pro-api-key" \
python3 scripts/coingecko_get.py coins/bitcoin
```

## Output And Files

- `--pretty` pretty-prints JSON
- `--raw` bypasses JSON parsing
- `--out path.json` writes to a file

Example:

```bash
python3 scripts/coingecko_get.py coins/markets \
  --param vs_currency=usd \
  --param per_page=5 \
  --pretty \
  --out /tmp/markets.json
```

## Reliability Tips

- Use `--retries` and `--backoff` for 429/5xx responses.
- Increase `--timeout` for large responses.
- Cache results if you poll frequently.

## References

Read `references/coingecko_api.md` for base URL and endpoint patterns. Always verify in official CoinGecko docs if an endpoint or header fails.

Files in this skill

  • LICENSE1 KB
  • SKILL.md2.4 KB
  • SOURCE.md346 B
  • TRUST.auto.yaml2 KB
  • references/coingecko_api.md1.1 KB
  • scripts/coingecko_get.py4.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…