# HTTPie

> A tool you type in a terminal to call APIs. Its commands are short and its replies are neat.

**Field:** Software Development  
**Category:** APIs  
**Also known as:** HTTPie CLI, http command, HTTPie Desktop

## Think of it like

Think of it like a walkie-talkie for the web. You say a short line, and you get a neat reply.

## Definition

HTTPie is a command-line tool for sending HTTP requests, made to be easy to read. You type http, the method and the address. Fields like name=Emma become JSON on their own. The answer comes back in colour and nicely spaced. It does many of the same jobs as curl, with shorter commands.

## Example

Jack tests his new endpoint with one line: http POST to /orders with item=mug. He sees the JSON answer in colour.

## Example code

```console
$ http POST api.example.com/orders item=mug qty=2
HTTP/1.1 201 Created
Content-Type: application/json

{
    "id": 43,
    "item": "mug"
}
```

Two fields become a JSON body, and the reply comes back tidy.

## Why it matters

Quick checks of an API take seconds, without writing code.

## Common mistake

Expecting curl's flags to work. HTTPie has its own simpler way of writing requests.

## Three principles

- **Short commands.** http, method, address, fields.
- **JSON by default.** Fields become a JSON body.
- **Readable output.** Colour and spacing.

## Related terms

- [HTTP Client](https://learn.benibix.com/term/development/http-client)
- [curl](https://learn.benibix.com/term/development/curl)
- [Postman](https://learn.benibix.com/term/development/postman)
- [REST API](https://learn.benibix.com/term/development/rest-api)

![Three ways to send the same GET request to an API. In JavaScript code, Axios. In Python code, Requests. In a terminal, HTTPie with the command http. All three arrows point to one endpoint, which sends back JSON.](https://learn.benibix.com/diagrams/dev3-http-clients.svg)

---

Source: https://learn.benibix.com/term/development/httpie
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
