← Catalog

@datacircle/pi

Pi package on Datacircle's open API: find the best GTM APIs. List every API and see which provider ranks first on each one. Search every provider's pricing plans. See where a provider ranks. No API key needed.

Extension

Install

Install with PiG

pig install npm:@datacircle/pi

Install with Pi

pi install npm:@datacircle/pi
Review before installing

Packages 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.

https://datacircle.dev

This package gives Pi four tools that call Datacircle's public API, https://api.datacircle.dev/v1. You need no key and no account.

ToolWhat the tool givesCall
datacircle_list_apisEvery GTM API on Datacircle, with the API's slug, number of plans, number of providers and best planGET /apis
datacircle_best_plansOne API's plans, sorted by score out of 100, best first. Each plan comes with a rank and a price per 1,000 callsGET /apis/{slug}/best
datacircle_search_plansPlans that match a provider name or plan name. Search all APIs or one API. Sort the plans by score, provider or priceGET /plans
datacircle_providerThe APIs a provider sells, and the provider's rank on each APIGET /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.

MIT license.