Get Started with the GroundAPI REST API in 5 Minutes

GroundAPI Team
GroundAPI Team ·

This tutorial will walk you through making your first GroundAPI call from scratch in just 5 minutes.

Step 1: Get Your API Key

  1. Visit groundapi.net and create an account
  2. Go to Dashboard → API Keys → Create New Key
  3. Save your sk_live_xxxxx key somewhere safe

Every new account gets 500 free calls per month — no credit card required.

Step 2: Make Your First Request

Use curl to query the real-time stock price of Moutai:

curl "https://api.groundapi.net/v1/finance/stock?symbol=600519" \
  -H "X-API-Key: sk_live_your_key"

Response:

{
  "success": true,
  "data": {
    "symbol": "600519",
    "name": "贵州茅台",
    "price": 1520.00,
    "change_pct": 1.25
  }
}

Step 3: Call with Python

import requests
 
API_KEY = "sk_live_your_key"
BASE_URL = "https://api.groundapi.net"
headers = {"X-API-Key": API_KEY}
 
# Query weather
resp = requests.get(f"{BASE_URL}/v1/life/weather",
                    params={"city": "Beijing"},
                    headers=headers)
print(resp.json())
 
# Track a package
resp = requests.get(f"{BASE_URL}/v1/life/logistics",
                    params={"number": "SF1234567890", "carrier": "sf"},
                    headers=headers)
print(resp.json())
 
# Web search
resp = requests.get(f"{BASE_URL}/v1/info/search",
                    params={"q": "latest AI Agent news", "count": 5},
                    headers=headers)
print(resp.json())

All Endpoints at a Glance

Finance

APIMethodPathKey Parameters
Stock DataGET/v1/finance/stocksymbol
Stock ScreeningGET/v1/finance/stock/screenindustry, pe_max, sort_by
Market OverviewGET/v1/finance/marketdate
Fund DataGET/v1/finance/fundcode, sort_by

Information

APIMethodPathKey Parameters
Web SearchGET/v1/info/searchq, engine, count, recency
Web ScrapingGET/v1/info/scrapeurl, format
Trending NewsGET/v1/info/newscategory, limit, page

Life Services

APIMethodPathKey Parameters
WeatherGET/v1/life/weathercity, forecast
Logistics TrackingGET/v1/life/logisticsnumber, carrier
IP GeolocationGET/v1/life/ipip

Error Handling

All endpoints return a unified format. When an error occurs:

{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "Invalid API Key"
  }
}

Common error codes: 401 (invalid key), 429 (rate limit exceeded), 502 (upstream data source error).

Next Steps

  • Read the full API Documentation to learn about all parameters and response fields
  • Try the MCP integration to let your AI assistant call APIs directly
  • Use the CLI tool pip install groundapi-cli for quick terminal queries

Questions? Email support@wisefuturus.com.

Get all of our updates directly to your inbox.