Understanding Web API Protocols
Web API monitoring is the continuous testing of web-based API endpoints to verify availability, performance, and functional correctness across different protocols. Unlike internal API monitoring that focuses on microservices within a private network, web API monitoring validates externally accessible APIs over HTTP/HTTPS, including REST, SOAP, GraphQL, gRPC, WebSockets, and Webhooks.
Web APIs use different protocols depending on integration requirements. REST dominates with over 70% of public APIs using stateless HTTP operations and JSON payloads. SOAP persists in enterprise environments requiring WS-Security and formal contracts, particularly in financial services and healthcare. GraphQL adoption grew 38% year-over-year as of 2024, enabling flexible queries for modern frontends. gRPC optimizes microservice communication with HTTP/2 and Protobuf, reducing latency by up to 7x compared to REST. WebSockets support real-time bidirectional streams for live data feeds. Webhooks deliver event-driven notifications, with platforms like Stripe processing over 1 billion webhook deliveries monthly.
Each protocol requires different monitoring approaches. REST monitors validate JSONPath assertions on JSON responses. SOAP monitors parse WSDL definitions and validate XML with XPath. GraphQL monitors handle nested queries and field-level errors. gRPC monitors decode Protobuf messages. WebSocket monitors track connection persistence and message delivery. Webhook monitors verify delivery attempts and retry logic. Dotcom-Monitor’s API monitoring platform supports all six protocols with protocol-specific assertions, authentication methods, and global location testing.
Uptime
Percentage of successful API responses over time, tracked per endpoint and globally
Latency
Total response time from DNS lookup through SSL handshake to last byte received
Throughput
Request rate capacity before degradation, measured in requests per second
Error Rate
Percentage of successful API responses over time, tracked per endpoint and globally
Example Multi-Step Flow
POST /api/auth/login
Authenticate and extract JWT token from response
GET /api/cart?userId=123
Retrieve cart contents, validate JSONPath $.items.length > 0
POST /api/checkout
Process payment, assert $.status == "success" and response time < 2000ms