Skip to content

Can I Use Postman Online

API Testing Blog

Can I Use Postman Online? A Comprehensive Guide

Postman, the industry standard for API testing, offers both an online and desktop application. This article will guide you through the capabilities of Postman’s online version, providing practical examples and step-by-step instructions.

Postman Online: Your Universal API Testing Companion

For occasional API testing or streamlined collaboration, Postman’s online platform is an excellent choice. Here’s why:

  • Browser-based Convenience: Access Postman from any device with internet connectivity, making it ideal for quick checks and remote collaboration.
  • Cloud-Based Workspace: Keep your API requests, tests, and collections synchronized across devices and easily share them with colleagues.
  • Free Tier Access: Enjoy core Postman features, including basic request building, testing, and documentation, at no cost.

Getting Started with Postman Online

Here’s how to get started with Postman online:

  1. Visit Postman’s Website: Go to https://www.postman.com/ and click “Sign Up” to create your free account.

  2. Start a New Request: Once you’re logged in, click on “New” and select “Request” to open a new request window.

  3. Fill in the Details:

    • Method: Select the HTTP method (GET, POST, PUT, DELETE, etc.).
    • URL: Enter the API endpoint you wish to test.
    • Headers: Add any necessary headers for authentication or content type.
    • Body: Populate the request body based on the API’s requirements (JSON, XML, form data, etc.).
  4. Send the Request: Click the “Send” button to execute your API request.

Practical Example: Testing a Weather API

Let’s illustrate API testing with Postman online using a weather API.

  1. API Endpoint: https://api.openweathermap.org/data/2.5/weather?q=London,uk&appid=YOUR_API_KEY

  2. Request Setup:

    • Method: GET
    • URL: https://api.openweathermap.org/data/2.5/weather?q=London,uk&appid=YOUR_API_KEY (Replace YOUR_API_KEY with your actual API key from https://openweathermap.org/api)
    • Headers: (None needed for this example)
    • Body: (Empty)
  3. Sending the Request: Click “Send” to retrieve the weather data for London.

  4. Response: View the response in Postman’s response window. You can switch between a formatted JSON view, raw view, and others for easier analysis.

Beyond Basic Requests: Building Collections and Tests

Organizing Your Workspace:

  • Collections: Group related API requests into collections for better organization and efficient workflow.
  • Environments: Store variables like API keys, base URLs, and other configuration settings in environments for easy switching between different API environments.

Writing Tests:

  • Assertions: Verify the API response by adding assertions to your request. These check conditions like response code, content type, and specific data values.

Example (Weather API): Let’s add a test to ensure the weather response contains the city name “London.”

  1. Add a Test: In the “Tests” tab within the request window, add the following code:

    pm.test("City Name is London", function () {
    pm.expect(pm.response.json().name).to.equal("London");
    });
  2. Run the Test: Send the request again. The “Tests” tab will now show the result of the assertion, ensuring the response contains the expected city name.

Postman Online: Collaboration and Beyond

Collaboration:

  • Sharing: Share collections with colleagues for review, testing, or joint API development.
  • Workspaces: Create shared workspaces to manage team projects and collaborate on API documentation.

Exploring Advanced Features:

While Postman Online provides essential functionality for API testing, the desktop version offers more advanced features like:

  • Mock Servers: Create mock APIs for development and testing without relying on actual back-end services.
  • Automated Testing: Run tests at scheduled intervals or integrate with CI/CD pipelines for continuous integration.
  • API Documentation: Generate comprehensive documentation from your API requests and collections.

Keep in mind that Postman’s desktop version might be a better choice for advanced scenarios involving complex testing, automation, and extensive collaboration.

Conclusion: Choosing the Right Tool

Whether you opt for Postman online or the desktop version depends on your testing needs and preferences. For quick checks, browser-based access, and basic collaboration, Postman online is a valuable tool. However, for advanced testing, automation, and extensive team collaboration, the desktop version offers a richer set of capabilities. Ultimately, the key is to select the option that best suits your workflow and project requirements.

API Testing Blog