Skip to main content

CLI tool for Google SERP (Search Engine Results) via AceDataCloud API

Project description

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"

# 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: qdr:h (hour), qdr:d (day), qdr:w (week), qdr:m (month)
-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

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

serp_cli-2026.4.5.3.tar.gz (12.7 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.4.5.3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for serp_cli-2026.4.5.3.tar.gz
Algorithm Hash digest
SHA256 24f45ff481b64ec9540abe34e57db95fa909a5b7b337b4b3776eaf5b68d0f618
MD5 9443a0063d36a7e7125305a4d8a3d2a1
BLAKE2b-256 ad71769de11f0309464ca1fbef6e1dd8c99d30f26e4afed89bd58db6c230cecc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for serp_cli-2026.4.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3a7d8d3cd56a662576f6335f683a841ea875bf300a88462083c86016df316867
MD5 f37ec74535b3c62683c9cf059091a556
BLAKE2b-256 c52a9ad208794351a39f27b5996ab4a92a911b36add44526b7fe28b96c0c9d71

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