HTTPie for Terminal

A simple yet powerful command-line client for the API era.

Open Source. Open minded.
HTTPie demo

Designed for APIs

We built HTTPIe from the ground up for painless debugging and interaction with APIs, HTTP servers, and web services.

  • Expressive and intuitive syntax
  • First-class JSON support
  • Colorized and formatted terminal output
  • Sensible defaults for the API era
  • Persistent sessions
  • Forms and file uploads
  • HTTPS, proxies, and authentication support
  • Support for arbitrary request data and headers
  • wget-like download mode
  • Extensions API for authentication, etc.
  • All that & more in two simple http + https commands


HTTPie CLI can be installed on any OS.

$<tool>install httpie

Getting started

HTTPie installs http and https:

Hello World:

$ https

Custom HTTP method, HTTP headers and JSON data:

$ http PUT X-API-Token:123 name=John

Submitting forms:

http -f POST hello=World

See the request that is being sent using one of the output options:

$ http -v

Build and print a request without sending it using offline mode:

$ http --offline hello=offline

Use Github API to post a comment on an issue with authentication:

$ http -a USERNAME POST body=HTTPie is awesome! :heart:

Upload a file using offline mode:

$ http < files/data.json

Download a file and save it via redirected output:

$ http > image.png

Download a file wget style:

$ http --download

Use named sessions to make certain aspects of the communication persistent between requests to the same host:

$ http --session=logged-in -a username:password API-Key:123
$ http --session=logged-in

Set a custom Host header to work around missing DNS records:

$ http localhost:8000

Loved by the community

Never thought file upload would be as simple as this, http POST :8080/events < events.json #httpie #awesommee
Not kidding, but I think I literally saved 10 hours this week using #HTTPie instead of #curl. If you are still on curl, you gotta learn how to use httpie. Its intutitive AF and so damn easy to use and extend #winning
blown away by httpie, great CLI for consuming/testing REST apis
I just discovered HTTPie for myself - why did I use curl instead of this all these years? :D
"apt install httpie" gives you a really fancy #cli tool to browse web #APIs. More details at #FOSS rulez!
I think I'm in love.. httpie @ - "http GET" in your console + pygments, etc!

Trusted by the best

Developers all around the world rely on HTTPie for API testing. Our users include the engineers behind some of the most important technology companies driving change today.

Open Source. Open hearted. Open minded.

Join the community

Join the occasional newsletter