我正在尝试使用访问此 API axios,但收到状态错误:429 [请求过多]。我只发送一个请求,但仍然出现错误。
但是当我尝试使用邮递员访问此网址时,它正在工作。
axios
.post(
`https://www.expedia.com/Hotel-Search-Data?responsive=true&destination=New+York%2C+New+York&latLong=40.75668%2C-73.98647®ionId=178293&startDate=01%2F20%2F2019&endDate=01%2F21%2F2019&rooms=1&adults=2&timezoneOffset=19800000&langid=1033&hsrIdentifier=HSR&page=7`
)
.then(result => {
console.log(result.data);
})
.catch(err => {
console.log(err);
});
Run Code Online (Sandbox Code Playgroud)