Skip to main content

swarms-datacircle

Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.

Our website: https://datacircle.dev

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

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 or plan name, on all APIs or on one API. You can sort them 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

pip install swarms swarms-datacircle

The tools work with swarms 8.0 or later and Python 3.10 or later.

Give the tools to an agent

Each tool is a plain Python function with type hints and a docstring, the way swarms takes tools. Pass the list TOOLS to an agent:

from swarms import Agent
from swarms_datacircle import TOOLS

agent = Agent(
    agent_name="api-picker",
    model_name="gpt-4o-mini",
    tools=TOOLS,
    max_loops=2,
)

print(agent.run("Which email finder API is best for under $5 per 1,000?"))

The model picks a tool. The agent runs the tool and gives the model the result. Give the agent 2 loops or more, or max_loops="auto", so the model can answer after the tool call.

To add the Datacircle tools to your own tools, list them together: tools=[my_tool, *TOOLS].

To give an agent only a few Datacircle tools, import only those:

from swarms import Agent
from swarms_datacircle import datacircle_best_plans, datacircle_search_plans

agent = Agent(model_name="gpt-4o-mini", tools=[datacircle_best_plans, datacircle_search_plans], max_loops=2)

The tools also work with agent.arun(), with streaming_on=True and with dynamic_tools=True.

Call a tool yourself

Each tool returns JSON text:

import json
from swarms_datacircle import datacircle_best_plans

result = json.loads(datacircle_best_plans("email-finder", limit=3))
print(result["plans"][0])

Tool output for the model

Each result is our API's answer as JSON. Each plan comes with a rank, provider, plan, score, price per 1,000 (perThousand, in dollars) and a page on datacircle.dev. That page lists every field.

You can give a provider's name in place of a slug. The tool turns Bright Data into bright-data.

For an unknown slug, the model gets {"error": ...} with a list of every valid slug. The model can then pick a valid slug and call the tool again. The tool checks each value from the model before the API call. For a number out of range, the tool makes no API call. The model gets {"error": ...} instead. A tool never raises, so a bad call never stops the agent.

Network

Each tool call makes one HTTPS GET request to https://api.datacircle.dev/v1 and no other network calls. The request holds only the tool's input. The API takes up to 60 calls a minute from one IP address. If the API says to wait, the tool waits up to a minute. The tool waits at most once per call. All plans are in one file at https://datacircle.dev/datacircle.json.

MIT license.

Metadata

Release files for swarms-datacircle 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarms-datacircle 0.1.0
File Size Uploaded Provenance Actions
swarms_datacircle-0.1.0.tar.gz 11.5 kB Without provenance Details for swarms_datacircle-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swarms-datacircle 0.1.0
File Interpreter ABI Platform Actions
swarms_datacircle-0.1.0-py3-none-any.whl Python 3 none any Details for swarms_datacircle-0.1.0-py3-none-any.whl

Total release size: 20.3 kB

Release files / swarms_datacircle-0.1.0.tar.gz

Download URL swarms_datacircle-0.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16d518a7d2c8487b00c7f94be60ab4c8d0376ad16b2b00d0d324bb3af129075d
BLAKE2b-256 checksum
How to use checksums
12e6648635a6e12cd7ce07ac8ba72840c95d267d375d734f59ad465d9dbf9b1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / swarms_datacircle-0.1.0-py3-none-any.whl

Download URL swarms_datacircle-0.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61cdadc05d56b1aeb326dadd2c3c2d15a3fbd99d75964d3d180001ae8f61abec
BLAKE2b-256 checksum
How to use checksums
81bfb50663305eef93ddb0c98e9a7599d49d6099a178f65d1928351ccd227a60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for swarms-datacircle 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page