README.md
BI</>≡
Published
1# PostAPI
2 
3> Write a link, send a POST
4 
5The README, as rendered by the editor it was written in.
6 
7## Usage
8 
9`Free, no account, no key.`
10 
11Sends `POST` and other methods,
12takes custom headers, and returns

PostAPI

Write a link, send a POST

The README, as rendered by the editor it was written in.

Free to use, no account and no key. It sends POST and other methods, takes custom headers, reaches public http and https addresses and returns the other side's answer.

Usage

PostAPI: Write a link, send a POST

Put the address and the body in a link and fetch it. This POSTs
{"hello":"from-a-link"} to https://httpbin.org/anything, which answers
with a description of the request it got, and gives you that answer,
status code and headers included:

    https://www.postapi.io/api/send?url=https://httpbin.org/anything&body=%7B%22hello%22%3A%22from-a-link%22%7D

With curl, which does the encoding for you:

    curl -G https://www.postapi.io/api/send --data-urlencode 'url=https://httpbin.org/anything' --data-urlencode 'body={"hello":"from-a-link"}'

Something other than a POST, or with headers of your own:

    https://www.postapi.io/api/send?url=https://httpbin.org/anything/7&method=DELETE
    https://www.postapi.io/api/send?url=https://httpbin.org/anything/7&method=PUT&body=name%3Dnew&headers=%7B%22Authorization%22%3A%22Bearer%20abc%22%7D

headers is a JSON object, here {"Authorization":"Bearer abc"}. A body
that is JSON goes out as application/json, a=1&b=2 as a form, anything
else as text; content_type=... says otherwise. Add response=json to
get the answer wrapped in an object with "status", "headers" and
"body". http and https only. Redirects are followed. No key, no
account.

Try it





Published from the editor at postapi.io · Docs

MarkdownUTF-80 wordsLn 1, Col 1