Access Stripe directly with a Stripe secret or restricted API key for broad read-only platform queries, especially Connect accounts, application fees, balances, charges, customers, invoices, subscriptions, payouts, transfers, and balance transactions. Use when users want direct Stripe platform analytics or connected-account reporting without an intermediary gateway.
使用本地存储的 Stripe API 密钥直接访问 Stripe API。
本工作区使用的本地密钥路径:
text
Authorization: Bearer $STRIPEAPIKEY
Shell 配置示例:
bash
export STRIPEAPIKEY=$(cat /home/clawd/.config/stripe/api_key)
text
https://api.stripe.com/v1/
bash
curl -sS https://api.stripe.com/v1/account \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)
bash
curl -sS https://api.stripe.com/v1/accounts?limit=10 \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)
bash
curl -sS https://api.stripe.com/v1/balance \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)
使用分页直到 has_more 为 false。
bash
python3 - <
from pathlib import Path
key = Path(/home/clawd/.config/stripe/apikey).readtext().strip()
count = 0
starting_after = None
while True:
params = {limit: 100}
if starting_after:
params[startingafter] = startingafter
req = urllib.request.Request(https://api.stripe.com/v1/accounts? + urllib.parse.urlencode(params))
req.add_header(Authorization, fBearer {key})
with urllib.request.urlopen(req, timeout=60) as r:
data = json.load(r)
items = data.get(data, [])
count += len(items)
if not data.get(has_more) or not items:
print(count)
break
starting_after = items[-1][id]
PY
bash
curl -sS https://api.stripe.com/v1/application_fees?limit=10 \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)
bash
curl -sS https://api.stripe.com/v1/payouts?limit=10 \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)
bash
curl -sS https://api.stripe.com/v1/charges?limit=10 \
-H Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 stripe-full-read-access-1775974756 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 stripe-full-read-access-1775974756 技能
skillhub install stripe-full-read-access-1775974756
文件大小: 2.13 KB | 发布时间: 2026-4-13 12:11