Skip to main content

SERP CLI

A command-line tool for Google Search (SERP) via the AceDataCloud platform.

Features

  • Web Search — Search Google and get structured results (organic, knowledge graph, answer box)
  • Image Search — Find images with serp images
  • News Search — Get news articles with time filtering
  • Video Search — Find video content from YouTube and more
  • Places Search — Find local businesses and places
  • Maps Search — Search Google Maps for locations
  • Rich Output — Beautiful terminal formatting with --json for scripting
  • Localization — Country and language support for localized results

Installation

pip install serp-cli

Quick Start

# Set your API token
export ACEDATACLOUD_API_TOKEN=your_token_here

# Web search
serp search "artificial intelligence"

# Image search
serp images "sunset photography"

# Image search with image-size filter
serp images "sunset photography" --image-size 12mp

# News with time filter
serp news "tech news" --time-range qdr:d

# Places search
serp places "coffee shops near Times Square" -c us

# Search with pagination
serp search "python tutorials" -n 20 -p 2

# Get JSON output
serp search "hello world" --json | jq '.organic[0].title'

Commands

Command Description
search Google web search (all types via -t)
images Google Image search
news Google News search
videos Google Video search
places Google Places search
maps Google Maps search
search-types List available search types
time-ranges List time range filters
config Show current configuration

Search Options

Option Description
-t, --type Search type: search, images, news, maps, places, videos
-c, --country Country code (e.g. us, cn, uk)
-l, --language Language code (e.g. en, zh-cn, fr)
--time-range Time filter: h, d, w, m, y (or qdr:h, qdr:d, qdr:w, qdr:m, qdr:y)
--image-size Image size filter: large, medium, icon, 2mp, 4mp, 6mp, 8mp, 10mp, 12mp, 15mp, 20mp, 40mp, 70mp
-n, --number Number of results per page (default: 10)
-p, --page Page number for pagination
--json Output raw JSON

Configuration

Environment Variable Description Default
ACEDATACLOUD_API_TOKEN API authentication token (required)
ACEDATACLOUD_API_BASE_URL API base URL https://api.acedata.cloud
SERP_REQUEST_TIMEOUT Request timeout in seconds 30

You can also use a .env file or pass --token directly.

Docker

docker compose run serp-cli search "hello world"

Development

# Install with dev dependencies
pip install -e ".[all]"

# Run tests
pytest

# Run linter
ruff check .
ruff format --check .

License

MIT License - see LICENSE for details.

Links

Download files

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

Source Distribution

serp_cli-2026.8.9.2.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

serp_cli-2026.8.9.2-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file serp_cli-2026.8.9.2.tar.gz.

File metadata

  • Download URL: serp_cli-2026.8.9.2.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for serp_cli-2026.8.9.2.tar.gz
Algorithm Hash digest
SHA256 5247d6dd83981be079efb5354040d5962e102cadf43289758924962166acfcaf
MD5 4076c9c6c2e913ade103e65e50b65ca1
BLAKE2b-256 7d4e9d05d7e7bb76686dd04f88f7fb0cde5ed82e5abf97b2384f7d1174608524

See more details on using hashes here.

File details

Details for the file serp_cli-2026.8.9.2-py3-none-any.whl.

File metadata

  • Download URL: serp_cli-2026.8.9.2-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for serp_cli-2026.8.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9549cf01955ea98bdfbc6408ed40b9d75c28062370fae3c13dab8949ace8e8a3
MD5 2f6abe2877578e3833b9d1f534a56680
BLAKE2b-256 e54814473d0d452b699657152b34e2e9a2d36882ac34cb594e3eda675f59fc08

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.8.9.2 This release

2 files

2026.8.9.1

2 files

2026.8.9.0

2 files

2026.6.19.0

2 files

2026.4.5.3

2 files

2026.4.5.2

2 files

2026.4.5.1

2 files

2026.4.5.0

2 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