Skip to main content

GroundAPI CLI — Real-time Data API for AI Agents

Project description

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 次免费调用。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

groundapi_cli-3.0.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

groundapi_cli-3.0.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file groundapi_cli-3.0.0.tar.gz.

File metadata

  • Download URL: groundapi_cli-3.0.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for groundapi_cli-3.0.0.tar.gz
Algorithm Hash digest
SHA256 ee7ac73f65f8366efb33ea229d9805408d2affe5d9669ffde97090cbe951f597
MD5 f9f85ff01e6287350f10e7bdd8f8fc46
BLAKE2b-256 b314dcdcb82ab35d7a663d2d740c9f2535bd8dbd5711c7d22461c1158583409a

See more details on using hashes here.

File details

Details for the file groundapi_cli-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: groundapi_cli-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for groundapi_cli-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e153e30ea2e4ccec911e4f9db7bf9c237da3f919f59c2953c37448c811bd918a
MD5 7375aec9cec933c613df9731552ff14d
BLAKE2b-256 709a586e67fd3c10220a580f1228cabd1ad01c4de5aa32c627f711518f6d231c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page