Set Up for CLI
Install the Monid CLI and start querying data from the command line.
1. Install the CLI
bash
curl -fsSL https://monid.ai/install.sh | bashVerify the installation:
bash
monid --version2. Get an API Key
Go to https://app.monid.ai to create an account if you don't have one. Then go to https://app.monid.ai/access/api-keys to create an API key.
Copy the key -- it is only shown once.
3. Add the Key to the CLI
bash
monid keys add --label main --key <your-api-key>The first key you add is automatically set as the active key.
4. Example Usage
bash
# Search for data endpoints
monid discover -q "twitter posts"
# Inspect an endpoint to see its input schema and pricing
monid inspect -p apify -e /apidojo/tweet-scraper
# Run the endpoint
monid run -p apify -e /apidojo/tweet-scraper \
-i '{"searchTerms":["AI"],"maxItems":10}'
# Get the results (use the run ID from the previous command)
monid runs get -r <run-id> -o tweets.jsonNext Steps
See the CLI Reference for the full command documentation.