Skip to main content

CLI for the Vancam camera spatial search API

Project description

Vancam CLI

Real-world observation for AI agents.

Command-line client for the Vancam camera spatial search API (api.vancam.ai), giving developers and AI agents instant access to 1M+ live public cameras across 100+ countries — the same backend used by the MCP server and the vancam.ai web app.

Instead of relying on outdated web pages or user reports, Vancam provides fresh visual evidence from the physical world, letting AI systems answer location-based questions with confidence.

vancam REST API
   ├── vancam-mcp     (MCP server)
   ├── vancam-cli     (this project)
   ├── SDKs           (future)
   └── vancam.ai      (web app)

Install

pip install vancam

Setup

No setup required to try it — defaults to a shared, public key if VANCAM_API_KEY isn't set. That's one key used by every anonymous caller, so its 1 req/s / 500 requests/month limit is a collective pool shared across all of them, not 500 each. For a limit that's yours alone (5 req/s, 500 requests/month, not shared), get a free personal key from your account dashboard at vancam.ai/account:

cp .env.example .env
# edit .env, or export VANCAM_API_KEY directly

Usage

# N nearest cameras to a point
vancam nearest --lat 49.2827 --lon -123.1207 --limit 5

# Cameras within a radius (km)
vancam radius --lat 49.2827 --lon -123.1207 --radius 1

# Cameras along a route
vancam route --origin-lat 49.2827 --origin-lon -123.1207 \
             --dest-lat 49.2965 --dest-lon -123.0884 --buffer 100

# Cameras in a bounding box
vancam bounds --min-lat 49.2 --min-lon -123.2 --max-lat 49.3 --max-lon -123.0

# Single camera by ID
vancam get 30145

# Live image
vancam image 30145                    # prints the image URL
vancam image 30145 -o camera.jpg      # downloads it

All commands print JSON to stdout (--compact for single-line output), so this composes with jq:

vancam nearest --lat 49.2827 --lon -123.1207 --limit 1 | jq '.cameras[0].image_url'

Options

  • --api-key — override VANCAM_API_KEY
  • --compact — compact JSON instead of pretty-printed

Use Cases

  • Verify road and traffic conditions
  • Monitor infrastructure and public spaces
  • Check border crossings and transportation hubs
  • Build AI agents with real-world awareness
  • Power MCP servers, automation, and LLM applications

Learn More

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

vancam-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

vancam-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file vancam-0.1.0.tar.gz.

File metadata

  • Download URL: vancam-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for vancam-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eab65aa43b4044b6083d3d6e57d1d889b6dc37a14ad78fd44fb290eca4ed163e
MD5 39da5f30486711a062829d58d85d24fc
BLAKE2b-256 bf74733d90f6a63da44989945d19fec828662710af52d245948dc51a6a6848e0

See more details on using hashes here.

File details

Details for the file vancam-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vancam-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for vancam-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f18f8157e54add5d2eef584b0517023d43ea9649a34ceeaa3073df9f8c5921
MD5 f80b1ea75f3990560be7bb9155db1d57
BLAKE2b-256 1c0262579d6f30e52a14a4c6702ccfabc8306f39985bc72f119eb677afd61e48

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