Semantic API CLI
Query 700+ APIs with natural language from your terminal. Zero dependencies.
pip install semanticapi-cli
✨ Auto-Discover & Auto-Heal
Auto-Discover: Ask for any API — even ones not in the catalog. Semantic API automatically finds the docs, generates a provider config, and returns endpoint details. No manual setup.
semanticapi query "send a message with Discord"
# → Auto-discovers Discord API, returns endpoint + auth details
Auto-Heal: If an API's config goes stale (endpoints change, versions update), Semantic API detects the failure, re-discovers from current docs, and retries — all in a single request.
Quick Start
# Save your API key
semanticapi config set-key sapi_your_key
# Query any API
semanticapi query "send an SMS via Twilio"
# Search for capabilities
semanticapi search "weather forecast"
# Browse the catalog
semanticapi catalog list --search payments
semanticapi catalog stats
# Pre-check what you'll need (free, no LLM cost)
semanticapi preflight "send an email"
# Discover a provider
semanticapi discover stripe
# Batch queries
semanticapi batch "send email" "upload file" "translate text"
Commands
| Command | Description |
|---|---|
query |
Natural language API query (with auto-discover) |
search |
Search for API capabilities |
batch |
Multiple queries in one call |
preflight |
Pre-check (free, identifies needed auth) |
discover |
Look up a provider by name |
discover-url |
Discover provider from docs URL |
catalog list |
Browse the provider catalog |
catalog stats |
Show catalog statistics |
status |
Show config and API health |
config |
Manage API key and settings |
Authentication
API key priority (first found wins):
--key sapi_xxxflagSEMANTICAPI_KEYenvironment variable~/.semanticapi/config.json(saved viaconfig set-key)
Get your key at semanticapi.dev.
Output Modes
# Pretty-printed (default)
semanticapi query "get weather"
# Raw JSON (for piping)
semanticapi --raw query "get weather"
# Minimal output
semanticapi --quiet query "get weather"
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error |
| 2 | Auth required |
What You Get Back
Every query returns:
- Provider and endpoint details
- Code snippets (curl + Python) ready to copy-paste
- Auth requirements and setup instructions
- Alternative providers ranked by relevance
Related
- Semantic API — The API
- MCP Server — For Claude Desktop / ChatGPT
- Agent Skill — For autonomous agents
- Open Source Engine — AGPL-3.0
License
MIT
Metadata
Release files for semanticapi-cli 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| semanticapi_cli-0.1.4.tar.gz | 14.2 kB | Without provenance | Details for semanticapi_cli-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| semanticapi_cli-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for semanticapi_cli-0.1.4-py3-none-any.whl |
Total release size: 29.0 kB
Release files / semanticapi_cli-0.1.4.tar.gz
| Download URL | semanticapi_cli-0.1.4.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
494171c71505250fa6e0b9ebe16d2ad2aeca8cdfe0bcdb6455fe153a5c052185
|
|
BLAKE2b-256 checksum How to use checksums |
96b5e20da1dab8b472db0d3c2ebddb71300982a632140e26062eee103b8c097c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / semanticapi_cli-0.1.4-py3-none-any.whl
| Download URL | semanticapi_cli-0.1.4-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c951b3ebab5c844cc363554a4dd3a268ef470067220ee81807b644ad688d27f
|
|
BLAKE2b-256 checksum How to use checksums |
f0fb7c30cbda94903f90f8a32bfb22d78758d45802f73be6c5ea55311e1c0f85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for semanticapi-cli 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.