Metadata-Version: 2.5
Name: agno-datacircle
Version: 0.1.0
Summary: Agno tools for the Datacircle API: find the best GTM APIs
Project-URL: Homepage, https://datacircle.dev
Project-URL: Documentation, https://api.datacircle.dev/v1/openapi.json
Project-URL: Repository, https://github.com/waynehamadi/agno-datacircle
License-Expression: MIT
License-File: LICENSE
Keywords: agno,agno-tools,api,api-pricing,b2b-data,datacircle,gtm,toolkit
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Requires-Dist: agno<4.0.0,>=2.0.0
Requires-Dist: httpx>=0.24
Description-Content-Type: text/markdown

# agno-datacircle

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 Agno four tools on Datacircle's open API, https://api.datacircle.dev/v1. You need no key and no account.

```bash
pip install agno-datacircle
```

| Tool | What it gives | Call |
| --- | --- | --- |
| `datacircle_list_apis` | Every GTM API on Datacircle, with its slug, number of plans and providers, and its best plan | `GET /apis` |
| `datacircle_best_plans` | One API's plans, best first by score out of 100, each with its rank and price per 1,000 calls | `GET /apis/{slug}/best` |
| `datacircle_search_plans` | Plans by provider or plan name, on every API or one, sorted by score, provider or price | `GET /plans` |
| `datacircle_provider` | The APIs a provider sells and its rank on each | `GET /providers/{slug}` |

## Use

```python
from agno.agent import Agent
from agno.models.ollama import Ollama
from agno_datacircle import DatacircleTools

agent = Agent(model=Ollama(id="gpt-oss:20b"), tools=[DatacircleTools()])
agent.print_response("Which email finder API is best for under $5 per 1,000?")
```

Any Agno model that calls tools works. A tool can also be called on its own:

```python
DatacircleTools().datacircle_best_plans(slug="email-finder", limit=3)
```

`DatacircleTools(enable_provider=False)` leaves a tool out, and Agno's `include_tools` and `exclude_tools` work too.

Each tool gives JSON. An unknown slug or a value out of range comes back as `{"error": ...}` with the API's words (an unknown API's answer lists every slug).

## Network

Each call makes one HTTPS GET to https://api.datacircle.dev/v1 with the tool's arguments and nothing else. The API takes up to 60 calls a minute from one address; the tools wait once, a minute at most, when it asks them to. Every plan is also one file at https://datacircle.dev/datacircle.json.

## Links

- Datacircle: https://datacircle.dev
- The API: https://datacircle.dev/api
- Its spec: https://api.datacircle.dev/v1/openapi.json
- What each key means: https://datacircle.dev/fields

MIT license.
