ReqCoder

Headers

No headers. Add one below.

Body

Response

Send a request to see the response here.

Generated Code

async function sendRequest() {
  try {
    const response = await fetch("https://jsonplaceholder.typicode.com/posts/1", {
  method: "GET"
    });
    const data = await response.json();
    console.log(data);
  } catch (error) {
    console.error("Request failed:", error);
  }
}

sendRequest();