DEV Community

Alex Spinov
Alex Spinov

Posted on

Hoppscotch Has a Free API That Most Developers Dont Know About

Hoppscotch is an open-source API development platform — like Postman but faster, lighter, and completely free.

CLI (hopp-cli)

npm install -g @hoppscotch/cli

# Run collection
hopp test my-collection.json

# Run with environment
hopp test my-collection.json --env production.json

# Generate report
hopp test my-collection.json --reporter json --output results.json
Enter fullscreen mode Exit fullscreen mode

Collection Format

{
  "v": 2,
  "name": "My API Tests",
  "requests": [
    {
      "v": "3",
      "name": "Get Users",
      "method": "GET",
      "endpoint": "<<baseUrl>>/api/users",
      "headers": [{ "key": "Authorization", "value": "Bearer <<token>>" }],
      "testScript": "pw.expect(pw.response.status).toBe(200); pw.expect(pw.response.body.length).toBeGreaterThan(0);"
    },
    {
      "v": "3",
      "name": "Create User",
      "method": "POST",
      "endpoint": "<<baseUrl>>/api/users",
      "body": { "contentType": "application/json", "body": "{\"name\": \"John\", \"email\": \"john@example.com\"}" }
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Key Features

  • Open-source Postman alternative
  • REST, GraphQL, WebSocket, SSE, MQTT
  • Team collaboration
  • CLI for CI/CD testing
  • Self-hostable
  • Keyboard-first UX

Need to scrape or monitor web data at scale? Check out my web scraping actors on Apify or email spinov001@gmail.com for custom solutions.

Top comments (0)