Datpaq CLI

Datpaq APIs, ready for your terminal.

The official command-line interface for Datpaq APIs. Discover endpoints, run requests, generate snippets, and wire Datpaq into scripts, CI, and agents from your terminal.

Browser SSO, CI tokens, generated samples, and MCP tools included.

Datpaq CLI splash screen showing the DATPAQ banner and command list
88 endpoints
13 active APIs
4 sample languages
agent-friendly JSON
MCP included

Quickstart

Four commands from install to integration.

The first-run path is intentionally boring: install, authenticate, browse what is available, then generate a snippet for the endpoint you need.

bash
go install github.com/datpaq/cli/cmd/datpaq@latest
datpaq auth login
datpaq api
datpaq sample ip-geolocation get --lang py
Install
go install github.com/datpaq/cli/cmd/datpaq@latest
Authenticate
datpaq auth login
Verify
datpaq doctor

The workflow

Discover. Call. Integrate.

Datpaq CLI keeps the full API loop in one terminal flow, from finding an endpoint to shipping copy-pasteable integration code.

01

Discover

Run datpaq api to browse active interfaces and endpoint descriptions pulled from the API surface.

02

Call

Execute Datpaq endpoints directly with consistent flags, JSON output, batch inputs, and request controls.

03

Integrate

Generate curl, JavaScript, Python, or Go snippets with datpaq sample and drop them into your app.

How agents reach datpaq

Cited and called

The CLI is one way to reach Datpaq — answer engines do it too. They cite the content they crawl and invoke the API directly. The same answer can do both at once.

User question "best mock data API?" AI engine AI Mode / ChatGPT Perplexity / Claude query fan-out PATH 1 - CITE Crawl + index datpaq API landing pages, FAQ, docs, structured data PATH 2 - INVOKE Call datpaq API / MCP OpenAPI, MCP tools, live JSON response Generated interface answer + comparison card + live widget answer rendered to the user, often with no click to any site
Illustrative. The cyan path is citation; the pink path is invocation. datpaq is one of the few sources that can sit on both at once.

Feature parity

Built like a modern developer CLI

The CLI covers the expectations developers bring from tools like GitHub CLI, Stripe CLI, Wrangler, Railway, Netlify, and Twilio.

Browser SSO

Sign in with datpaq auth login and let the CLI handle the localhost callback and credential storage.

API discovery

List active APIs, inspect methods, and find the right command without leaving your terminal.

Copy-paste samples

Emit ready-to-run snippets with DATPAQ_API_KEY placeholders for safe sharing and faster handoff.

Batch-ready endpoints

Pass comma-separated inputs to batch-capable APIs with JSON output for validation, enrichment, and data workflows.

Agent mode

Append --agent for JSON, compact output, non-interactive defaults, stable prompts, and no color.

Bundled MCP server

Datpaq commands are mirrored as MCP tools for Claude Desktop and other MCP-capable clients.

Profiles and config

Save reusable command values, override config paths, and use DATPAQ_API_KEY for CI or scripts.

Doctor checks

Run datpaq doctor to verify auth, connectivity, and local setup before debugging an integration.

Real commands

Useful on day one

Datpaq CLI is generated from the API surface and rounded out with hand-authored workflows for auth, samples, profiles, diagnostics, search, sync, and agent output.

Aircraft lookup
bash
datpaq aircraft lookup-by-tail --tail N12345 --json
Email validation batch
bash
datpaq email-validation email-validate-batch --emails a@example.com,b@example.com --json | jq '.[] | select(.deliverable == false)'
Image resize
bash
datpaq image-processing image-resize --image-url https://example.com/photo.jpg --width 800 > photo-800.jpg
Agent or CI output
bash
datpaq dns --domain example.com --agent | jq '.records'

Install now

Install from source with Go today. Homebrew support is planned and should stay labeled as coming soon until the tap is published.

bash
go install github.com/datpaq/cli/cmd/datpaq@latest

# Coming soon
brew install datpaq/tap/datpaq

Auth for humans, CI, and SSH

Start with browser-based SSO, paste a dashboard key for headless sessions, or rely on an environment variable in CI and secret managers.

datpaq auth login
datpaq auth set-token YOUR_KEY
export DATPAQ_API_KEY=YOUR_KEY

Start from your terminal

Explore Datpaq APIs, generate snippets, and connect the same commands to scripts, CI jobs, and MCP-aware agents.