CoinGecko — Coin Price by IDs, Symbols, or Names
Use the CoinGecko Coin Price API to look up cryptocurrency quotes by coin ID, name, or trading symbol. Choose a quote currency such as USD and optionally request market capitalization, 24-hour volume, or price change. Build crypto market dashboards, portfolio valuation tools, and price monitors. The GET request schema also lists vs_currencies, ids, names. Use the results for a crypto market dashboard, asset research, or comparison with a separate price feed.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
CoinGecko — Coin Price by IDs, Symbols, or Names
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
bitcoinobjectlast_updated_atintegerusdintegerusd_24h_changenumberusd_24h_volnumberusd_market_capnumber
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
bitcoin?: {
last_updated_at?: number;
usd?: number;
usd_24h_change?: number;
usd_24h_vol?: number;
usd_market_cap?: number;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
CoinGeckoCurrent CoinGecko — Coin Price by IDs, Symbols, or Names · GET · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price?ids=bitcoin&vs_currencies=usd' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
vs_currencies | URL query parametersquery | string | Yes | Target currency of coins, comma-separated if querying more than 1 currency. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). For the complete list of fiat currencies supported by this endpoint, see [Fiat Currencies Support List](/docs/fiat-currencies-support). |
ids | URL query parametersquery | string | No | Coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list) |
names | URL query parametersquery | string | No | Coins' names, comma-separated if querying more than 1 coin. |
symbols | URL query parametersquery | string | No | Coins' symbols, comma-separated if querying more than 1 coin. |
include_tokens | URL query parametersquery | string | No | For `symbols` lookups, specify `all` to include all matching tokens.
Default `top` returns top-ranked tokens by market cap or volume. enum: "top", "all" |
include_market_cap | URL query parametersquery | boolean | No | Include market capitalization. Default: false |
include_24hr_vol | URL query parametersquery | boolean | No | Include 24-hour trading volume. Default: false |
include_24hr_change | URL query parametersquery | boolean | No | Include 24-hour change percentage. Default: false |
include_last_updated_at | URL query parametersquery | boolean | No | Include last updated price time as a UNIX timestamp. Default: false |
precision | URL query parametersquery | string | No | Decimal places for currency price value enum: "full", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"bitcoin": {
"last_updated_at": 1779092258,
"usd": 76975,
"usd_24h_change": -1.4093297098441402,
"usd_24h_vol": 29096603418.89408,
"usd_market_cap": 1542226908349.8406
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# CoinGecko — Coin Price by IDs, Symbols, or Names
Use the CoinGecko Coin Price API to look up cryptocurrency quotes by coin ID, name, or trading symbol. Choose a quote currency such as USD and optionally request market capitalization, 24-hour volume, or price change. Build crypto market dashboards, portfolio valuation tools, and price monitors. The GET request schema also lists vs_currencies, ids, names. Use the results for a crypto market dashboard, asset research, or comparison with a separate price feed.
## Available implementations
CoinGecko · CoinGecko — Coin Price by IDs, Symbols, or Names: https://openany.si/markets/apis/capabilities/coingecko-coin-price-by-ids-symbols-or-names?offering=e74d98c1-5b36-42f5-b73f-be88db97da92 · $0 / call
## Selected API contract
Documentation: https://openany.si/apis/e74d98c1-5b36-42f5-b73f-be88db97da92
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price
Price: $0 / call
Provider: CoinGecko
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price?ids=bitcoin&vs_currencies=usd' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "CoinGecko — Coin Price by IDs, Symbols, or Names",
"endpoint": "https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Target currency of coins, comma-separated if querying more than 1 currency. \n*refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). \n\nFor the complete list of fiat currencies supported by this endpoint, see [Fiat Currencies Support List](/docs/fiat-currencies-support).",
"location": "query",
"name": "vs_currencies",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Coins' IDs, comma-separated if querying more than 1 coin. \n*refers to [`/coins/list`](/reference/coins-list)",
"location": "query",
"name": "ids",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Coins' names, comma-separated if querying more than 1 coin.",
"location": "query",
"name": "names",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Coins' symbols, comma-separated if querying more than 1 coin.",
"location": "query",
"name": "symbols",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "For `symbols` lookups, specify `all` to include all matching tokens. \nDefault `top` returns top-ranked tokens by market cap or volume.",
"enum_values": [
"top",
"all"
],
"location": "query",
"name": "include_tokens",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Include market capitalization. \nDefault: false",
"location": "query",
"name": "include_market_cap",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Include 24-hour trading volume. \nDefault: false",
"location": "query",
"name": "include_24hr_vol",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Include 24-hour change percentage. \nDefault: false",
"location": "query",
"name": "include_24hr_change",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Include last updated price time as a UNIX timestamp. \nDefault: false",
"location": "query",
"name": "include_last_updated_at",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Decimal places for currency price value",
"enum_values": [
"full",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18"
],
"location": "query",
"name": "precision",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example · Official response / contract request",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"ids": "bitcoin",
"vs_currencies": "usd"
}
},
"response_body": {
"bitcoin": {
"last_updated_at": 1779092258,
"usd": 76975,
"usd_24h_change": -1.4093297098441402,
"usd_24h_vol": 29096603418.89408,
"usd_market_cap": 1542226908349.8406
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Official response / contract request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 10
Review these request fields before running. Keep the published provider and request method unchanged.
vs_currencies- Target currency of coins, comma-separated if querying more than 1 currency. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). For the complete list of fiat currencies supported by this endpoint, see [Fiat Currencies Support List](/docs/fiat-currencies-support).
ids- Coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list)
names- Coins' names, comma-separated if querying more than 1 coin.
symbols- Coins' symbols, comma-separated if querying more than 1 coin.
include_tokens- For `symbols` lookups, specify `all` to include all matching tokens. Default `top` returns top-ranked tokens by market cap or volume.
include_market_cap- Include market capitalization. Default: false
include_24hr_vol- Include 24-hour trading volume. Default: false
include_24hr_change- Include 24-hour change percentage. Default: false
include_last_updated_at- Include last updated price time as a UNIX timestamp. Default: false
precision- Decimal places for currency price value
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price?ids=bitcoin&vs_currencies=usd' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "bitcoin": { "last_updated_at": 1779092258, "usd": 76975, "usd_24h_change": -1.4093297098441402, "usd_24h_vol": 29096603418.89408, "usd_market_cap": 1542226908349.8406 } }