Test any HTTP endpoint under load

HTTP Load Testing

Standalone k6 scripts let you choose HTTP methods, headers and request bodies. Use an approved target and interpret measurements against its expected response behavior.
Standalone k6 example
Adapt this script and run it with k6 against an approved target. loadtest.dev accepts declarative GET/HEAD plans; it does not execute these scripts.
All HTTP methods: GET, POST, PUT, DELETE, PATCH
Custom headers, cookies, and authentication
JSON, form-data, and binary payloads
Response validation with checks
Configurable think time between requests
Live per-second charts for every run
http-test.js
import http from 'k6/http';
import { check, sleep } from 'k6';

export const options = { vus: 50, duration: '3m' };

const BASE_URL = 'https://api.example.com';

export default function () {
  // GET request
  const list = http.get(`${BASE_URL}/items`);
  check(list, { 'list ok': (r) => r.status === 200 });

  // POST request with JSON body
  const created = http.post(`${BASE_URL}/items`, 
    JSON.stringify({ name: 'Test Item' }),
    { headers: { 'Content-Type': 'application/json' } }
  );
  check(created, { 'created': (r) => r.status === 201 });
  
  sleep(1);
}

Frequently asked questions

Related guides

API Load Testing
Learn how to test HTTP APIs with standalone k6 scripts, measure latency and failed requests, and choose rates suited to your approved target.
REST API Benchmarking
Compare REST API endpoint latency with standalone k6 Trend metrics and per-endpoint thresholds, using the same traffic and data between test runs.
GraphQL Load Testing
Adapt a standalone k6 script for GraphQL queries and mutations, validate response errors, and compare operation latency on your approved endpoint.

Use an HTTP plan with loadtest.dev

For estate apps, declare GET/HEAD requests to a verified hostname and submit a plan through the authenticated API.
loadtest.dev โ€” Part of the Narduk Enterprises network