Skip to main content
Extract webpage text contents
curl --request POST \
  --url http://api.serping.io/extract \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>"
}
'
{
  "url": "<string>",
  "text": "<string>",
  "creditConsumed": 5
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Payload for extraction containing the URL of the webpage.

url
string<uri>
required

The URL of the webpage to extract text from.

Response

Successful extraction response

url
string<uri>
required

The URL of the extracted webpage.

text
string
required

The extracted text content from the webpage.

creditConsumed
integer
required

Number of credits consumed for this request (5 credits).

Example:

5