Install
Install with PiG
pig install npm:@datacircle/piInstall with Pi
pi install npm:@datacircle/piPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./dist/index.js"
]
}README
Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.
Datacircle tools for Pi
Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.
This package gives Pi four tools that call Datacircle's public API, https://api.datacircle.dev/v1. You need no key and no account.
| Tool | What the tool gives | Call |
|---|---|---|
datacircle_list_apis | Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan | GET /apis |
datacircle_best_plans | One API's plans, sorted by score out of 100, best first. Each plan comes with a rank and a price per 1,000 calls | GET /apis/{slug}/best |
datacircle_search_plans | Plans that match a provider name or plan name. Search all APIs or one API. Sort the plans by score, provider or price | GET /plans |
datacircle_provider | The APIs a provider sells, and the provider's rank on each API | GET /providers/{slug} |
Install
pi install npm:@datacircle/pi
Pi installs the package from npm. You get the four tools in each new Pi session. Add -l to install the package for the current project only. To try the tools in one run without installing them, run pi -e npm:@datacircle/pi.
Ask Pi
pi -p "Which plan is best for the email-finder API on Datacircle?"
Codemode
Run pi --tools +codemode and your scripts can call the tools. Each tool call returns the result as an object:
const best = await tools.datacircle_best_plans({ slug: 'email-finder', limit: 3 });
return best.plans.map((plan) => `${plan.rank}. ${plan.provider}: ${plan.plan}`);
What the tools return
Each tool returns a JSON object. best_plans and search_plans return plans. Each plan has a rank, provider, plan name, score, price per 1,000 (perThousand, in dollars) and a page on datacircle.dev. The page on datacircle.dev lists every field. The tool returns {"error": "..."} as an error when you pass an unknown slug. The object holds the API's message. A script gets the same object. Have your script check error first. If the network fails, the tool fails and shows the network error's message.
Network
Each tool call makes one HTTPS GET request to https://api.datacircle.dev/v1 and nothing else. The request holds only the tool's own arguments: no key and nothing from your sessions or settings. The API takes up to 60 calls a minute from one IP address. The tool waits once, for a minute at most, when the API asks the tool to wait. The package stores nothing.
Links
- Datacircle: https://datacircle.dev
- The API: https://datacircle.dev/api
- The API's spec: https://api.datacircle.dev/v1/openapi.json
- What each key means: https://datacircle.dev/fields
MIT license.