datacircle / filament
Find the best GTM APIs. A Filament plugin for Laravel admin panels: a dashboard widget and pages that show each API's best plans and search every plan, from Datacircle's public API. You need no API key.
Requires
- php: ^8.2
- datacircle/laravel: ^0.1
- filament/filament: ^4.0|^5.0
Requires (Dev)
- orchestra/testbench: ^9.0|^10.0|^11.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-livewire: ^3.0|^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.
This Filament plugin shows Datacircle's rankings of GTM APIs in your Laravel admin panel. It adds a dashboard widget with one API's best plans, a page of every API, and a page that searches every plan. The data comes from Datacircle's public API, https://api.datacircle.dev/v1. You need no key and no account.
| What you see | Call |
|---|---|
| Dashboard widget: one API's best plans by score, with each plan's rank, score out of 100 and price per 1,000 | GET /apis/{slug}/best |
| GTM APIs page: every API with its slug, number of plans, number of providers and best plan. Search by name or slug | GET /apis |
| Best plans button on each API: the API's 10 best plans | GET /apis/{slug}/best |
| GTM API plans page: search plans by provider or plan name. Filter by API. Order by score, price per 1,000 or provider | GET /plans |
| Provider ranks button on each plan: the provider's rank and best plan on each API it sells | GET /providers/{slug} |
Install
composer require datacircle/filament
The plugin needs PHP 8.2 or later and Filament 4 or 5, on Laravel 11.28 or later, 12 or 13.
Add the plugin to your panel provider:
use Datacircle\Filament\DatacirclePlugin; public function panel(Panel $panel): Panel { return $panel // ... ->plugin(DatacirclePlugin::make()); }
The panel now has the widget on its dashboard and the GTM APIs and GTM API plans pages in its navigation.
Options
DatacirclePlugin::make() ->bestFor('phone-finder', limit: 10) // the widget's API and number of plans: email-finder and 5 by default ->navigationGroup('Data') ->navigationSort(5) ->cacheFor(600) // seconds an answer is kept: 3600 by default, 0 for none ->pages(false) // no pages ->dashboardWidget(false); // no widget
Each API's slug is under its name on the GTM APIs page: email-finder, phone-finder, company-enrichment.
To rank more APIs, add the widget again with its own API, on a panel or on any page that shows widgets:
use Datacircle\Filament\Widgets\BestPlans; ->widgets([ BestPlans::make(['api' => 'company-enrichment', 'limit' => 3]), BestPlans::make(['api' => 'email-verification']), ])
How it calls the API
- The plugin calls the API through datacircle/laravel, on Laravel's HTTP client. It asks for gzip: some answers pass 10 MB unpacked. That package also gives you a
Datacirclefacade and four artisan commands. - Each answer is kept in your app's default cache store for an hour. The plugin keeps only the keys it shows of each plan. A plan has about 90 keys: read them with the facade, or at https://datacircle.dev/fields.
- The API takes 60 calls a minute from one address. After a 429, the client waits once for the time the API gives.
- Set
DATACIRCLE_BASE_URLandDATACIRCLE_TIMEOUTin.envto change where the client calls and how long a call may take. - When the API refuses a call or does not answer, the table says so in the API's own words. A wrong slug in
bestFor()showsno API has the slug ....
Every plan links to its page on https://datacircle.dev. The pages and the widget credit Datacircle with a link, as the data's license, CC BY 4.0, asks.
Test
composer test # with a stand-in API DATACIRCLE_LIVE=1 vendor/bin/pest # against the live API
License
MIT. The data is Datacircle's, under CC BY 4.0: https://datacircle.dev/terms

