omp packages

@datacircle/pi0.1.0

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.

datacircle Published 13 days ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

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.

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

MIT license.