Overview
The agntdata CLI (agnt_) provides quick access to social media data from your terminal. Useful for testing, scripting, and quick lookups without writing code.
The CLI package is currently in development and may not yet be published to npm.
Installation
Install the CLI globally via npm:Authentication
Interactive Login
The easiest way to authenticate:~/.agntdata/config.json.
Check Authentication
Verify your authentication status:Logout
Clear your saved credentials:Commands
List Available APIs
Make API Calls
Use thecall command to make API requests:
| Option | Description |
|---|---|
-q, --query <params> | Query parameters (e.g., username=microsoft) |
-d, --data <json> | JSON body for POST requests |
-m, --method <method> | HTTP method (GET, POST, etc.) |
--raw | Output raw response without formatting |
Examples
Available Platforms
| Platform | Slug |
|---|---|
linkedin | |
| YouTube | youtube |
| TikTok | tiktok |
| X (Twitter) | x |
instagram | |
reddit | |
facebook |
Configuration
Credentials are stored in~/.agntdata/config.json after running agnt_ login.
Next Steps
Quickstart
Learn the basics of agntdata.
API Reference
Browse all available endpoints.