Skip to content
登录 注册

POST 请求

通过将请求体 POST 到 Web Scraping API,并将 api_keyurl 作为查询参数,把 POST 请求转发到目标 URL。适用于表单提交和 JSON API 端点。

POST https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<TARGET_URL>
ParameterTypeRequiredDescription
api_keystringyes您的 Web Scraping API 密钥
urlstringyes要 POST 到的目标 URL

请求体会原样转发到目标 URL。

Terminal window
curl -X POST "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https%3A%2F%2Fhttpbin.org%2Fpost" \
-H "Content-Type: application/json" \
--data '{"foo":"bar"}'
{
"args": {},
"data": "{\"foo\":\"bar\"}",
"headers": {
"Content-Type": "application/json",
"Host": "httpbin.org"
},
"json": { "foo": "bar" },
"origin": "185.162.168.36",
"url": "https://httpbin.org/post"
}