From 5eaf03f66592582d808f7800623a326350291269 Mon Sep 17 00:00:00 2001 From: Mateusz <169154504+donbagger@users.noreply.github.com> Date: Thu, 16 Jul 2026 13:02:19 +0200 Subject: [PATCH] docs(usecase): replace dead api.coincap.io example with a working one api.coincap.io no longer resolves, so the Bitcoin price example in the usecase docs silently fails. Swapped it for the keyless CoinPaprika ticker endpoint and updated the JSONPath and sample output to match the real response. Same fix applied to the en, es and zh pages. --- docs/docs/en/usecase/index.md | 6 +++--- docs/docs/es/usecase/index.md | 6 +++--- docs/docs/zh/usecase/index.md | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/docs/en/usecase/index.md b/docs/docs/en/usecase/index.md index 20a50b7..8db5a4a 100644 --- a/docs/docs/en/usecase/index.md +++ b/docs/docs/en/usecase/index.md @@ -32,12 +32,12 @@ Rendered output will look like this: ~~~makdown ```req -url: https://api.coincap.io/v2/rates/bitcoin -show: $.data.rateUsd +url: https://api.coinpaprika.com/v1/tickers/btc-bitcoin +show: $.quotes.USD.price ``` ~~~ -> 64992.8972508856324769 +> 64149.230100840585 ## Get the weather diff --git a/docs/docs/es/usecase/index.md b/docs/docs/es/usecase/index.md index 9d0a435..9aac2da 100644 --- a/docs/docs/es/usecase/index.md +++ b/docs/docs/es/usecase/index.md @@ -32,12 +32,12 @@ La salida renderizada se verá así: ~~~makdown ```req -url: https://api.coincap.io/v2/rates/bitcoin -show: $.data.rateUsd +url: https://api.coinpaprika.com/v1/tickers/btc-bitcoin +show: $.quotes.USD.price ``` ~~~ -> 64992.8972508856324769 +> 64149.230100840585 ## Obtener el clima diff --git a/docs/docs/zh/usecase/index.md b/docs/docs/zh/usecase/index.md index f027b5d..54f904b 100644 --- a/docs/docs/zh/usecase/index.md +++ b/docs/docs/zh/usecase/index.md @@ -32,12 +32,12 @@ ID 是 `$=dv.el("span", JSON.parse(localStorage.getItem("req-test")).id, { cls: ~~~makdown ```req -url: https://api.coincap.io/v2/rates/bitcoin -show: $.data.rateUsd +url: https://api.coinpaprika.com/v1/tickers/btc-bitcoin +show: $.quotes.USD.price ``` ~~~ -> 64992.8972508856324769 +> 64149.230100840585 ## 获取天气信息