Skip to main content

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):

  1. --key sapi_xxx flag
  2. SEMANTICAPI_KEY environment variable
  3. ~/.semanticapi/config.json (saved via config 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

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.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

semanticapi_cli-0.1.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file semanticapi_cli-0.1.1.tar.gz.

File metadata

  • Download URL: semanticapi_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for semanticapi_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1a8bb675ea71c9fc78231b24b1f78220431d2bbd2269ce5b15395a71dfa12c5c
MD5 1ea73db6136e41d3cc2ca705ca6a6aed
BLAKE2b-256 8bce62d13a6f4111a0776ad5f8c9fb2d2008cb3a02d90c347c007dbbe5819351

See more details on using hashes here.

File details

Details for the file semanticapi_cli-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for semanticapi_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f37c792a35e45908d451435b379ea554508cbc14ec867507df32af8e326533c
MD5 9447166e2e91a81549abb9b843df9536
BLAKE2b-256 da8a659c2be9c725be55afc4919d3568c0a622ffc1d9b6e8a537cbb1d8a0e8d1

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