Datacircle agent for Huginn
Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website: https://datacircle.dev
This gem adds the Datacircle Agent to Huginn. The agent emits the best plans of an API, like an email finder or a SERP API, as Huginn events. It reads Datacircle's open API, with no key and no account.
Use the agent to
- Get the best email finder plans each morning, and an email when the first one changes.
- Find every plan of one provider, or the cheapest plans of an API.
- Follow one provider's rank on each API it sells.
Its calls
Set call to one of these. Each one is a call of the API, at https://api.datacircle.dev/v1:
call |
API call | Events |
|---|---|---|
best_plans |
GET /apis/{slug}/best |
the plans of one API (api), best first |
search_plans |
GET /plans |
plans by API, provider or plan name (api, query), sorted by score, provider or price
|
list_apis |
GET /apis |
every API on Datacircle, with the API's slug and best plan |
provider |
GET /providers/{slug} |
one provider's rank on each API (provider) |
limit is how many plans best_plans and search_plans emit, 1 to 50. Each plan has a rank, a score out of 100, a price per 1,000 and a link to the plan's page on datacircle.dev. That page lists every field.
Each option takes Liquid. So a Datacircle Agent can read the event of another agent: "api": "{{ slug }}" reads the best plans of each API a list_apis agent emits.
The spec: https://api.datacircle.dev/v1/openapi.json. At most 60 calls a minute from one address. The agent waits and calls again when the API asks it to.
Install
Add the gem to ADDITIONAL_GEMS in Huginn's .env:
ADDITIONAL_GEMS=huginn_datacircle_agent
With Huginn's docker image, pass it as a variable:
docker run -it -p 3000:3000 -e ADDITIONAL_GEMS=huginn_datacircle_agent ghcr.io/huginn/huginnThen run bundle and restart Huginn. The Datacircle Agent is in the agent types of "New Agent".
Options
{
"call": "best_plans",
"api": "email-finder",
"query": "",
"sort": "score",
"provider": "",
"limit": "10",
"offset": "0",
"expected_update_period_in_days": "2"
}-
api: the API's slug, the words of its sheet's address on datacircle.dev, likeemail-finderfor https://datacircle.dev/email-finder-api-pricing.search_plansalso takes the API's name. -
query: words that must all appear in the provider's or plan's name. -
provider: the provider's slug, its name in lowercase with hyphens, likebright-data. -
offset: how many planssearch_plansskips first.
An event
A plan of best_plans, shortened. Each plan has 83 fields:
{
"rank": 1,
"provider": "GetProspect",
"plan": "Growth 50k",
"api": "Employee email",
"score": 79.7,
"perThousand": 7.98,
"pay": 399,
"currency": "USD",
"billing": "monthly",
"page": "https://datacircle.dev/find-email-apis/getprospect/free-post-v2-email-find"
}Links
- Datacircle: https://datacircle.dev
- What each field means: https://datacircle.dev/fields
- The API's spec: https://api.datacircle.dev/v1/openapi.json
License
MIT