Sandbox · Request Tester

One endpoint, two personalities

The endpoint at /api/echo accepts both GET and POST and returns different HTML for each. Use it to verify your scraper forwards bodies correctly through ScraperAPI's POST support.

Try it live

Open the endpoint in a new tab, or submit the form below (POST).

Open with GET

Full URL: /api/echo

Send it through ScraperAPI

Wrap the endpoint URL in a ScraperAPI request. GET stays GET; POST forwards the body.

curl "https://YOUR-SITE/api/echo?q=headphones"
curl -X POST "https://YOUR-SITE/api/echo" \
  -H "Content-Type: application/json" \
  -d '{"query":"headphones","page":1}'
import requests

# GET
r1 = requests.get("https://YOUR-SITE/api/echo", params={"q": "headphones"})
print(r1.status_code, r1.text[:200])

# POST
r2 = requests.post("https://YOUR-SITE/api/echo", json={"query": "headphones", "page": 1})
print(r2.status_code, r2.text[:200])
import axios from "axios";

const g = await axios.get("https://YOUR-SITE/api/echo", { params: { q: "headphones" } });
console.log(g.data);

const p = await axios.post("https://YOUR-SITE/api/echo", { query: "headphones", page: 1 });
console.log(p.data);