{"repo":"tom-draper/api-analytics","free":true,"listed":false,"github":"https://github.com/tom-draper/api-analytics","clone":"git clone https://github.com/tom-draper/api-analytics.git","description":"Effortless monitoring and analytics for API frameworks.","language":"Go","stars":655,"topics":["analytics","api","api-analytics","api-monitoring","dashboard","fastapi","flask","server-analytics","server-monitoring","gin"],"license":"MIT","category":"analytics","readme_excerpt":"API Analytics An effortless API analytics solution, complete with a dashboard. Currently compatible with: - Python: FastAPI , Flask , Django and Tornado - JavaScript: Express , NestJS , Hono , Fastify , Koa and Elysia - Go: Gin , Echo , Fiber and Chi - Rust: Actix , Axum and Rocket - Ruby: Rails and Sinatra - PHP: Laravel and Native PHP - C#: ASP.NET Core Getting Started 1. Generate an API key Head to apianalytics.dev/sign-up to generate your unique API key with a single click. This key is used to monitor your specific API and should be stored privately. It will be required when accessing your API Analytics dashboard and logged data. 2. Add middleware to your API Add the lightweight middleware to your API. Since most data processing is handled by the API Analytics server, it has minimal impact on your API's performance. FastAPI Flask Django Assign your API key to ANALYTICS API KEY in settings.py and add the Analytics middleware to the top of your middleware stack. Express Hono Gin Fiber Actix Axum Rails Add the analytics middleware to your rails application in config/application.rb . Sinatra Laravel Add your API key to .env : Register the middleware in app/Http/Kernel.php : ASP.NET Core Other Frameworks - Python : Tornado - JavaScript : Fastify, Koa, Elysia, Bun, NestJS, Oak, H3 - Go : Echo, Chi - Rust : Rocket - PHP : PHP 3. View your analytics Your API will now log and store incoming request data on all routes. Logged data can be viewed using two methods: 1. Through visuali","default_branch":null,"files":null,"tree":[],"storefront":"/r/tom-draper","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tom-draper/api-analytics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}