Skip to main content

GroundAPI CLI

专为 AI Agent 设计的实时数据命令行工具。一个 API Key,在终端查询 A 股行情、股票筛选、大盘数据、基金、天气、快递、搜索、网页抓取、新闻、IP 定位。

安装

pip install groundapi-cli

配置

groundapi config set-key sk_gapi_你的密钥

或使用环境变量:

export GROUNDAPI_API_KEY=sk_gapi_你的密钥

使用

金融

# A 股行情
groundapi stock --symbol 600519                          # 实时行情
groundapi stock --keyword 贵州茅台                        # 搜索股票
groundapi stock --symbol 600519 --date 2024-12-31        # 指定日期日K
groundapi stock --symbol 600519 --days 30                # 最近30天历史
groundapi stock --symbol 600519 --days 30 --include technicals  # 历史+技术指标

# 股票筛选与排行
groundapi screen                                         # 默认排行 (涨跌幅)
groundapi screen --industry 白酒 --pe-max 30             # 按行业+PE筛选
groundapi screen --sort-by total_market_cap --limit 10   # 市值前10

# 大盘总览
groundapi market                                         # 大盘+宏观
groundapi market --include sectors,valuation             # 附带板块+估值
groundapi market --sector 半导体 --type industry         # 板块详情

# 基金
groundapi fund                                           # 基金排行
groundapi fund --keyword 沪深300                          # 搜索基金
groundapi fund --code 110011                             # 基金详情

资讯

groundapi search "AI Agent"                              # 网络搜索
groundapi search "AI Agent" --count 20 --recency oneWeek # 限定时间范围
groundapi scrape https://example.com                     # 网页抓取
groundapi news                                           # 财经新闻
groundapi news --category tech --limit 10                # 科技新闻

生活

groundapi weather --city 北京                             # 实时天气
groundapi weather --city 北京 --forecast                  # 含7天预报
groundapi weather --location 39.9,116.4                  # 经纬度查询
groundapi logistics SF1234567890                         # 快递追踪
groundapi ip 8.8.8.8                                     # IP 定位

获取 API Key

前往 groundapi.net 注册,每月 500 次免费调用。

Metadata

Release files for groundapi-cli 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for groundapi-cli 3.3.0
File Size Uploaded
groundapi_cli-3.3.0.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for groundapi-cli 3.3.0
File Interpreter ABI Platform
groundapi_cli-3.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.0 kB

Release files / groundapi_cli-3.3.0.tar.gz

Download URL groundapi_cli-3.3.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e39c520b8c1d9025ab5637547d5335c291f4a18fb9d577ebd3a9c669de74de82
BLAKE2b-256 checksum
How to use checksums
8275f9a6816067138b79d132b0c4d3ceaa1dbb0935edde31b4ad9c40ae74a320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.

Transparency log

Release files / groundapi_cli-3.3.0-py3-none-any.whl

Download URL groundapi_cli-3.3.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00ddc8caf00b9d6ae086c5436cda69125f82987f6723a433056c2b2097b98dfe
BLAKE2b-256 checksum
How to use checksums
c522916c71f4d53d960825645744ad6be653cc3adcb12ae26536a642fb3c9d66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.3.0 This release

2 release files

3.2.0

2 release files

3.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page