CLI for Semantic API — discover and query 700+ APIs with natural language
Project description
Semantic API CLI
Query 700+ APIs with natural language from your terminal. Zero dependencies.
pip install semanticapi-cli
Quick Start
# Save your API key
semanticapi config set-key sapi_your_key
# Query any API
semanticapi query "send an SMS via Twilio"
# 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 |
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 |
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
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
semanticapi_cli-0.1.2.tar.gz
(12.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semanticapi_cli-0.1.2.tar.gz.
File metadata
- Download URL: semanticapi_cli-0.1.2.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bae88b4ffe9ea9b9718740ea6bd13fb53826708289cc38ac444591a1c35ebb9e
|
|
| MD5 |
307e6a96f01aa7eeca11539efb0e6324
|
|
| BLAKE2b-256 |
023d0bcb7fb67f9fb65cad8f9ea498cdd30045f93e58eca1b13b0fa5d91abf36
|
File details
Details for the file semanticapi_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: semanticapi_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
738388f959d5abbcb3a2585360b21d80c3e77284a2c273d2cecbc1c2b0371859
|
|
| MD5 |
1aaaf4dfa9585ebddf51861ed8a75746
|
|
| BLAKE2b-256 |
4c3e9bdeb99e0159f03b80246c10154a37273e2427dddb4f6b9c85666c7ab7bc
|