HTTP リクエストビルダー

フォームから HTTP リクエストを組み立てて curl / fetch / Python (requests) のコードを生成します。Postman のような UI でリクエストを設計、 コピーして実行可能な形式で出力。

curl

curl -X GET \
  'https://api.example.com/users' \
  -H 'Accept: application/json'

JavaScript (fetch)

const res = await fetch("https://api.example.com/users", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await res.json();
console.log(data);

Python (requests)

import requests

headers = {
    "Accept": "application/json",
}
r = requests.request("GET", "https://api.example.com/users", headers=headers)
print(r.status_code, r.text)