A simple Vercel proxy that lets you send HTTP requests using only GET query parameters.
Use the deployed production URL:
curl "https://get2rest.vercel.app/api/proxy?url=https://jsonplaceholder.typicode.com/posts/1"curl "http://localhost:3000/api/proxy?url=https://jsonplaceholder.typicode.com/posts/1"Send a request to any URL and let the proxy forward it.
Query parameters:
url(required): target URLmethod(optional): HTTP method, one of GET, POST, PUT, DELETE, PATCH. Default is GET.data(optional): request body as a JSON stringheaders(optional): custom headers as a JSON stringparams(optional): query parameters as a JSON stringtimeout(optional): timeout in milliseconds, default is 30000
Response example:
{
"success": true,
"status": 200,
"data": { ... },
"timestamp": "2026-04-20T10:30:00.000Z"
}GET request:
curl "https://get2rest.vercel.app/api/proxy?url=https://api.github.com/users/octocat"POST request:
curl "https://get2rest.vercel.app/api/proxy?url=https://jsonplaceholder.typicode.com/posts&method=POST&data={\"title\":\"Hello\",\"userId\":1}"With query parameters:
curl "https://get2rest.vercel.app/api/proxy?url=https://jsonplaceholder.typicode.com/posts¶ms={\"_limit\":10}"With headers:
curl "https://get2rest.vercel.app/api/proxy?url=https://api.example.com&headers={\"Authorization\":\"Bearer token\"}"api/
proxy.ts
lib/
http-client.ts
types/
index.ts
API_DOCUMENTATION.md
README.md
- Node.js 17+
- npm
npm install
vercel devThe local development server should be available at http://localhost:3000.
Deployment is handled by your existing Vercel setup. There is no manual deploy command included here.
The proxy expects valid JSON strings for headers and data:
headers={"Accept":"application/json"}Make sure the url parameter starts with http:// or https://.
This endpoint only accepts GET requests.