This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!
Stripe API Log Error Rate Badge
Developer Tools · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryDeveloper Tools
PlatformAll
Pricing
Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.
Download for
iOS
App Store
Download for
Android
Google Play
Download for
Windows
.exe installer
Download for
macOS
.dmg universal
Download for
Linux
.AppImage
Try BotSurf in your browser — no install
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This userscript adds a real-time API error rate monitor to your Stripe dashboard. It reads API request log entries from the page, extracts request status and response status codes, calculates the error rate percentage over visible requests, and displays a color-coded badge showing your current API health. The badge uses a four-tier performance indicator: green for excellent (10%). A detailed breakdown shows total requests, success count, error count, and success/error percentages. The status code distribution displays the most common response codes and their frequencies. A one-click "Logs" button opens the API logs page for deeper investigation. This is invaluable for developers, engineers, and system administrators who need to monitor API health, quickly identify integration issues, and maintain service reliability for Stripe-powered applications.
WHERE IT RUNS
The script runs on all Stripe web application pages at *.stripe.com/*, with automatic detection of API logs pages (paths containing /logs or /api-logs). It works across all Stripe interfaces by using multiple selector strategies to find log entries, status codes, and request methods. The script detects dynamic content loading and re-renders the badge when the log list updates. It runs across the entire Stripe domain, ensuring coverage whether you're viewing the API logs page, the dashboard, or a specific log filter view.
HOW TO USE
Install the script via the BotGentz extension and navigate to your Stripe API logs page. The error rate badge will appear in the header automatically, showing your current error rate percentage and a performance label. The detailed breakdown shows total requests, successes, errors, and percentages. The status code distribution lists the most common response codes with their counts. Click the "Logs" button to open the API logs page for deeper investigation. Use the panel controls to customize your experience: toggle the error rate badge on or off, show or hide the detailed breakdown, enable or disable the status code distribution, or adjust the error rate thresholds for each performance level (Excellent, Good, Warning, Critical). The "Refresh" button manually rescans the page for updated log data, and the "Reset" button restores the default threshold values.
THE MECHANISM - LOG PARSING, ERROR RATE CALCULATION, AND STATUS CODE ANALYSIS
This script identifies API logs by scanning the DOM for known Stripe log elements. It uses a cascading selector strategy that looks for log entries (.log-entry, .api-log-item, .request-row, .log-row), then extracts status codes from status elements or by scanning text for 3-digit status patterns. Request status is determined by status code: 2xx codes are successes, 4xx and 5xx codes are errors. When status codes are not available, the script infers status from text content (looking for "success" or "error" keywords) or class names. The error rate is calculated as (errors / total requests) × 100. Status codes are aggregated by frequency, and the top 5 most common codes are displayed in the distribution. The performance indicator uses user-configurable thresholds to determine the color and label. The badge is built as a DOM element with inline styles and inserted into the dashboard header. The "Logs" button attempts to locate the API logs link using selectors or navigates to the standard logs path.
THE PANEL
The control panel appears as a floating, draggable element that you can position anywhere on the Stripe page. Drag by the header to reposition it, and the position is saved per site using GM_setValue so it stays where you left it across sessions. Release the panel near any edge and it snaps into place, keeping your workspace organized. Click the panel header to collapse it into a small bubble showing only the chart emoji (📊), minimizing distraction while keeping controls accessible. Drag from the bubble to restore the full panel. The panel automatically resizes to fit its content and includes all setting toggles, threshold controls, action buttons, and a performance legend. Press the Escape key to quickly collapse the panel to its minimized state. The panel remains visible across page navigation within Stripe, with the error rate badge updating automatically as you move between views.
PLEASE NOTE
This script requires the free BotGentz extension to function. It is designed for Stripe users who need to monitor API error rates and maintain service reliability. The script reads only visible log data from the DOM—it does not access Stripe's API, your account credentials, or any sensitive information. All settings (badge visibility, breakdown toggle, status codes toggle, threshold values, and panel position) are stored locally using GM_setValue and never leave your browser. The script does not modify your Stripe data—it only reads and visualizes visible log information. The error rate is calculated based on logs currently visible on the page; if the log list is filtered or paginated, the calculation may not represent your full API error rate. If Stripe updates its website structure, the script may need to be updated to match new selectors. The "Logs" button attempts to find the API logs link; if the link location changes, you may need to navigate manually.
Similar Apps
Hardhat Console
Interactive Hardhat console with JSON-RPC execution, contract debugging, and chunked log scanning for local development.
Multisig Threshold Adjuster
Update the required confirmation threshold for your multisig wallet with preview and validation.
Page Load Speed Display
Track page load performance with DOM ready, load time, DNS, TCP, request, response, and resource metrics in a floating overlay.
Heading Structure Outliner
Extract and display all page headings in a hierarchical outline with counts, level analysis, and click-to-highlight navigation.
Calldata Size Optimization Analyzer
Analyze calldata size and gas costs to identify optimization opportunities for reducing transaction costs in smart contracts.
Vitally Web Customer Risk Badge
Shows Vitally customer risk scores, drivers, and alerts—flag high-risk accounts with color-coded warnings.