API Testing
Testing an application at the service or endpoint layer by sending requests and validating responses, independent of any user interface.
What is API Testing?
What is API Testing?
API testing exercises the backend directly—sending HTTP requests and asserting on status codes, response bodies, headers, and timing—without going through the UI. Because it skips the browser, it is fast, stable, and ideal for validating business logic, authentication, and data contracts. Teams often pair API tests with end-to-end UI tests: APIs to set up state or verify data quickly, and UI flows to confirm the experience users actually see. Playwright's request context makes it straightforward to mix API calls into browser tests for reliable setup and teardown.