SEO extraction

FREEMIUM
By Charles Anssens | Updated 22 days ago | Tools
Popularity

9.3 / 10

Latency

2,049ms

Service Level

99%

Health Check

N/A

Back to All Discussions

Always getting 400 error: Bad Request

Hi there,
can you help me understand why Iโ€™m always getting 400 error when Iโ€™m trying to use your API?

Rapid account: Igorbrandprotectionai Gpxb Df MQJ 5 L
igorbrandprotectionai-GpxbDfMQJ5L Commented 2 years ago

@Canssens, thank you for your reply.

Unfortunately, Iโ€™m still facing same issue:
AirTable Scripting App
AirTable Scripting App JS

Rapid account: Canssens
Canssens Commented 2 years ago

Another point, maybe you should update your first post because it shows your api key.

Rapid account: Canssens
Canssens Commented 2 years ago

Hello Igor,

I think you have to adapt the way that you send the post data (we use form data).
This is an example, you may adapt it to support async and headersโ€ฆ :

var formdata = new FormData();
formdata.append("url", "https://www.google.com");

var requestOptions = {
  method: 'POST',
  body: formdata,
  redirect: 'follow'
};

fetch("https://....", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
	```

Join in the discussion - add comment below:

Login / Signup to post new comments