Skip to main content
POST
/
v1
/
extract
Extract Data
curl --request POST \
  --url https://api.wetrocloud.com/v1/extract/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "link": "https://theweek.com/news/people/954994/billionaires-richest-person-in-the-world",
  "prompt": "Extract the names and networth of Billionares in the article",
  "json_schema": [
    {
      "name": "string"
    },
    {
      "networth": "number"
    }
  ],
  "delay": 2
}
'
{
  "response": [
    {
      "name": "Elon Musk",
      "networth": "$462 billion"
    },
    {
      "name": "Larry Ellison",
      "networth": "$340 billion"
    },
    {
      "name": "Mark Zuckerberg",
      "networth": "$258 billion"
    },
    {
      "name": "Jeff Bezos",
      "networth": "$244 billion"
    },
    {
      "name": "Larry Page",
      "networth": "$221 billion"
    },
    {
      "name": "Sergey Brin",
      "networth": "$207 billion"
    },
    {
      "name": "Bernard Arnault",
      "networth": "$197 billion"
    },
    {
      "name": "Steve Ballmer",
      "networth": "$179 billion"
    },
    {
      "name": "Jensen Huang",
      "networth": "$158 billion"
    },
    {
      "name": "Michael Dell",
      "networth": "$156 billion"
    }
  ],
  "success": true
}

Authorizations

Authorization
string
header
required

Body

application/json
Example:

"https://theweek.com/news/people/954994/billionaires-richest-person-in-the-world"

prompt
string
required
Example:

"Extract the names and networth of Billionares in the article"

json_schema
array
Example:
[
{ "name": "string" },
{ "networth": "number" }
]
delay
integer
Example:

2

Response

OK

The response is of type object.