POST Download web page content
{{baseUrl}}/fetch
BODY json

{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "output": "",
  "proxy": "",
  "type": "",
  "url": "",
  "waitDelay": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/fetch");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/fetch" {:content-type :json
                                                  :form-params {:actions [{}]
                                                                :ignoreHTTPStatusErrCodes false
                                                                :initialCookies [{:domain ""
                                                                                  :expirationDate ""
                                                                                  :hostOnly false
                                                                                  :httpOnly false
                                                                                  :id ""
                                                                                  :name ""
                                                                                  :path ""
                                                                                  :sameSite ""
                                                                                  :secure false
                                                                                  :session false
                                                                                  :storeID ""
                                                                                  :value ""}]
                                                                :output ""
                                                                :proxy ""
                                                                :type ""
                                                                :url ""
                                                                :waitDelay ""}})
require "http/client"

url = "{{baseUrl}}/fetch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/fetch"),
    Content = new StringContent("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/fetch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/fetch"

	payload := strings.NewReader("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/fetch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 440

{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "output": "",
  "proxy": "",
  "type": "",
  "url": "",
  "waitDelay": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/fetch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/fetch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/fetch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/fetch")
  .header("content-type", "application/json")
  .body("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  actions: [
    {}
  ],
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  output: '',
  proxy: '',
  type: '',
  url: '',
  waitDelay: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/fetch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/fetch',
  headers: {'content-type': 'application/json'},
  data: {
    actions: [{}],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    output: '',
    proxy: '',
    type: '',
    url: '',
    waitDelay: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/fetch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"actions":[{}],"ignoreHTTPStatusErrCodes":false,"initialCookies":[{"domain":"","expirationDate":"","hostOnly":false,"httpOnly":false,"id":"","name":"","path":"","sameSite":"","secure":false,"session":false,"storeID":"","value":""}],"output":"","proxy":"","type":"","url":"","waitDelay":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/fetch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "actions": [\n    {}\n  ],\n  "ignoreHTTPStatusErrCodes": false,\n  "initialCookies": [\n    {\n      "domain": "",\n      "expirationDate": "",\n      "hostOnly": false,\n      "httpOnly": false,\n      "id": "",\n      "name": "",\n      "path": "",\n      "sameSite": "",\n      "secure": false,\n      "session": false,\n      "storeID": "",\n      "value": ""\n    }\n  ],\n  "output": "",\n  "proxy": "",\n  "type": "",\n  "url": "",\n  "waitDelay": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/fetch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/fetch',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  actions: [{}],
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  output: '',
  proxy: '',
  type: '',
  url: '',
  waitDelay: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/fetch',
  headers: {'content-type': 'application/json'},
  body: {
    actions: [{}],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    output: '',
    proxy: '',
    type: '',
    url: '',
    waitDelay: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/fetch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  actions: [
    {}
  ],
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  output: '',
  proxy: '',
  type: '',
  url: '',
  waitDelay: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/fetch',
  headers: {'content-type': 'application/json'},
  data: {
    actions: [{}],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    output: '',
    proxy: '',
    type: '',
    url: '',
    waitDelay: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/fetch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"actions":[{}],"ignoreHTTPStatusErrCodes":false,"initialCookies":[{"domain":"","expirationDate":"","hostOnly":false,"httpOnly":false,"id":"","name":"","path":"","sameSite":"","secure":false,"session":false,"storeID":"","value":""}],"output":"","proxy":"","type":"","url":"","waitDelay":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"actions": @[ @{  } ],
                              @"ignoreHTTPStatusErrCodes": @NO,
                              @"initialCookies": @[ @{ @"domain": @"", @"expirationDate": @"", @"hostOnly": @NO, @"httpOnly": @NO, @"id": @"", @"name": @"", @"path": @"", @"sameSite": @"", @"secure": @NO, @"session": @NO, @"storeID": @"", @"value": @"" } ],
                              @"output": @"",
                              @"proxy": @"",
                              @"type": @"",
                              @"url": @"",
                              @"waitDelay": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/fetch"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/fetch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/fetch",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'actions' => [
        [
                
        ]
    ],
    'ignoreHTTPStatusErrCodes' => null,
    'initialCookies' => [
        [
                'domain' => '',
                'expirationDate' => '',
                'hostOnly' => null,
                'httpOnly' => null,
                'id' => '',
                'name' => '',
                'path' => '',
                'sameSite' => '',
                'secure' => null,
                'session' => null,
                'storeID' => '',
                'value' => ''
        ]
    ],
    'output' => '',
    'proxy' => '',
    'type' => '',
    'url' => '',
    'waitDelay' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/fetch', [
  'body' => '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "output": "",
  "proxy": "",
  "type": "",
  "url": "",
  "waitDelay": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/fetch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'actions' => [
    [
        
    ]
  ],
  'ignoreHTTPStatusErrCodes' => null,
  'initialCookies' => [
    [
        'domain' => '',
        'expirationDate' => '',
        'hostOnly' => null,
        'httpOnly' => null,
        'id' => '',
        'name' => '',
        'path' => '',
        'sameSite' => '',
        'secure' => null,
        'session' => null,
        'storeID' => '',
        'value' => ''
    ]
  ],
  'output' => '',
  'proxy' => '',
  'type' => '',
  'url' => '',
  'waitDelay' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'actions' => [
    [
        
    ]
  ],
  'ignoreHTTPStatusErrCodes' => null,
  'initialCookies' => [
    [
        'domain' => '',
        'expirationDate' => '',
        'hostOnly' => null,
        'httpOnly' => null,
        'id' => '',
        'name' => '',
        'path' => '',
        'sameSite' => '',
        'secure' => null,
        'session' => null,
        'storeID' => '',
        'value' => ''
    ]
  ],
  'output' => '',
  'proxy' => '',
  'type' => '',
  'url' => '',
  'waitDelay' => ''
]));
$request->setRequestUrl('{{baseUrl}}/fetch');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/fetch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "output": "",
  "proxy": "",
  "type": "",
  "url": "",
  "waitDelay": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/fetch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "output": "",
  "proxy": "",
  "type": "",
  "url": "",
  "waitDelay": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/fetch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/fetch"

payload = {
    "actions": [{}],
    "ignoreHTTPStatusErrCodes": False,
    "initialCookies": [
        {
            "domain": "",
            "expirationDate": "",
            "hostOnly": False,
            "httpOnly": False,
            "id": "",
            "name": "",
            "path": "",
            "sameSite": "",
            "secure": False,
            "session": False,
            "storeID": "",
            "value": ""
        }
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/fetch"

payload <- "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/fetch")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/fetch') do |req|
  req.body = "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"output\": \"\",\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/fetch";

    let payload = json!({
        "actions": (json!({})),
        "ignoreHTTPStatusErrCodes": false,
        "initialCookies": (
            json!({
                "domain": "",
                "expirationDate": "",
                "hostOnly": false,
                "httpOnly": false,
                "id": "",
                "name": "",
                "path": "",
                "sameSite": "",
                "secure": false,
                "session": false,
                "storeID": "",
                "value": ""
            })
        ),
        "output": "",
        "proxy": "",
        "type": "",
        "url": "",
        "waitDelay": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/fetch \
  --header 'content-type: application/json' \
  --data '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "output": "",
  "proxy": "",
  "type": "",
  "url": "",
  "waitDelay": ""
}'
echo '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "output": "",
  "proxy": "",
  "type": "",
  "url": "",
  "waitDelay": ""
}' |  \
  http POST {{baseUrl}}/fetch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "actions": [\n    {}\n  ],\n  "ignoreHTTPStatusErrCodes": false,\n  "initialCookies": [\n    {\n      "domain": "",\n      "expirationDate": "",\n      "hostOnly": false,\n      "httpOnly": false,\n      "id": "",\n      "name": "",\n      "path": "",\n      "sameSite": "",\n      "secure": false,\n      "session": false,\n      "storeID": "",\n      "value": ""\n    }\n  ],\n  "output": "",\n  "proxy": "",\n  "type": "",\n  "url": "",\n  "waitDelay": ""\n}' \
  --output-document \
  - {{baseUrl}}/fetch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "actions": [[]],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    [
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    ]
  ],
  "output": "",
  "proxy": "",
  "type": "",
  "url": "",
  "waitDelay": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/fetch")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
text/html; charset=utf-8
RESPONSE BODY html


    
    {
    "ip": "178.171.21.156",
    "city": "Singapore",
    "region": null,
    "region_code": null,
    "country": "SG",
    "country_code": "SG",
    "country_code_iso3": "SGP",
    "country_capital": "Singapore",
    "country_tld": ".sg",
    "country_name": "Singapore",
    "continent_code": "AS",
    "in_eu": false,
    "postal": "18",
    "latitude": 1.2929,
    "longitude": 103.8547,
    "timezone": "Asia/Singapore",
    "utc_offset": "+0800",
    "country_calling_code": "+65",
    "currency": "SGD",
    "currency_name": "Dollar",
    "languages": "cmn,en-SG,ms-SG,ta-SG,zh-SG",
    "country_area": 692.7,
    "country_population": 4701069.0,
    "asn": "AS9009",
    "org": "M247 Ltd"
}
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

https://dfk-storage-ny3.nyc3.digitaloceanspaces.com/5e5d2864ebb755000188c2c5/ipapi.co_2020-05-06_19%3A32.html?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=KMGZH6JMEM75FTB4EEVL%2F20200506%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20200506T193209Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=86675afdbabc18027cb1d78cb6faf35df2137940b6b8e9e526006bb66afbfae7
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid request URL
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No fields to scrape
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No API Key provided
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid API key
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Process fetch failed.
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Create single process failed
POST Extract structured data from web pages
{{baseUrl}}/parse
BODY json

{
  "commonParent": "",
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "paginator": {
    "nextPageSelector": "",
    "pageNum": 0
  },
  "path": false,
  "request": {
    "actions": [
      {}
    ],
    "ignoreHTTPStatusErrCodes": false,
    "initialCookies": [
      {
        "domain": "",
        "expirationDate": "",
        "hostOnly": false,
        "httpOnly": false,
        "id": "",
        "name": "",
        "path": "",
        "sameSite": "",
        "secure": false,
        "session": false,
        "storeID": "",
        "value": ""
      }
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/parse");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/parse" {:content-type :json
                                                  :form-params {:commonParent ""
                                                                :fields [{:attrs []
                                                                          :details ""
                                                                          :filters []
                                                                          :name ""
                                                                          :selector ""
                                                                          :type 0}]
                                                                :format ""
                                                                :name ""
                                                                :paginator {:nextPageSelector ""
                                                                            :pageNum 0}
                                                                :path false
                                                                :request {:actions [{}]
                                                                          :ignoreHTTPStatusErrCodes false
                                                                          :initialCookies [{:domain ""
                                                                                            :expirationDate ""
                                                                                            :hostOnly false
                                                                                            :httpOnly false
                                                                                            :id ""
                                                                                            :name ""
                                                                                            :path ""
                                                                                            :sameSite ""
                                                                                            :secure false
                                                                                            :session false
                                                                                            :storeID ""
                                                                                            :value ""}]
                                                                          :output ""
                                                                          :proxy ""
                                                                          :type ""
                                                                          :url ""
                                                                          :waitDelay ""}}})
require "http/client"

url = "{{baseUrl}}/parse"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/parse"),
    Content = new StringContent("{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/parse");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/parse"

	payload := strings.NewReader("{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/parse HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 793

{
  "commonParent": "",
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "paginator": {
    "nextPageSelector": "",
    "pageNum": 0
  },
  "path": false,
  "request": {
    "actions": [
      {}
    ],
    "ignoreHTTPStatusErrCodes": false,
    "initialCookies": [
      {
        "domain": "",
        "expirationDate": "",
        "hostOnly": false,
        "httpOnly": false,
        "id": "",
        "name": "",
        "path": "",
        "sameSite": "",
        "secure": false,
        "session": false,
        "storeID": "",
        "value": ""
      }
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/parse")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/parse"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/parse")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/parse")
  .header("content-type", "application/json")
  .body("{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  commonParent: '',
  fields: [
    {
      attrs: [],
      details: '',
      filters: [],
      name: '',
      selector: '',
      type: 0
    }
  ],
  format: '',
  name: '',
  paginator: {
    nextPageSelector: '',
    pageNum: 0
  },
  path: false,
  request: {
    actions: [
      {}
    ],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    output: '',
    proxy: '',
    type: '',
    url: '',
    waitDelay: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/parse');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/parse',
  headers: {'content-type': 'application/json'},
  data: {
    commonParent: '',
    fields: [{attrs: [], details: '', filters: [], name: '', selector: '', type: 0}],
    format: '',
    name: '',
    paginator: {nextPageSelector: '', pageNum: 0},
    path: false,
    request: {
      actions: [{}],
      ignoreHTTPStatusErrCodes: false,
      initialCookies: [
        {
          domain: '',
          expirationDate: '',
          hostOnly: false,
          httpOnly: false,
          id: '',
          name: '',
          path: '',
          sameSite: '',
          secure: false,
          session: false,
          storeID: '',
          value: ''
        }
      ],
      output: '',
      proxy: '',
      type: '',
      url: '',
      waitDelay: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/parse';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"commonParent":"","fields":[{"attrs":[],"details":"","filters":[],"name":"","selector":"","type":0}],"format":"","name":"","paginator":{"nextPageSelector":"","pageNum":0},"path":false,"request":{"actions":[{}],"ignoreHTTPStatusErrCodes":false,"initialCookies":[{"domain":"","expirationDate":"","hostOnly":false,"httpOnly":false,"id":"","name":"","path":"","sameSite":"","secure":false,"session":false,"storeID":"","value":""}],"output":"","proxy":"","type":"","url":"","waitDelay":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/parse',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "commonParent": "",\n  "fields": [\n    {\n      "attrs": [],\n      "details": "",\n      "filters": [],\n      "name": "",\n      "selector": "",\n      "type": 0\n    }\n  ],\n  "format": "",\n  "name": "",\n  "paginator": {\n    "nextPageSelector": "",\n    "pageNum": 0\n  },\n  "path": false,\n  "request": {\n    "actions": [\n      {}\n    ],\n    "ignoreHTTPStatusErrCodes": false,\n    "initialCookies": [\n      {\n        "domain": "",\n        "expirationDate": "",\n        "hostOnly": false,\n        "httpOnly": false,\n        "id": "",\n        "name": "",\n        "path": "",\n        "sameSite": "",\n        "secure": false,\n        "session": false,\n        "storeID": "",\n        "value": ""\n      }\n    ],\n    "output": "",\n    "proxy": "",\n    "type": "",\n    "url": "",\n    "waitDelay": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/parse")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/parse',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  commonParent: '',
  fields: [{attrs: [], details: '', filters: [], name: '', selector: '', type: 0}],
  format: '',
  name: '',
  paginator: {nextPageSelector: '', pageNum: 0},
  path: false,
  request: {
    actions: [{}],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    output: '',
    proxy: '',
    type: '',
    url: '',
    waitDelay: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/parse',
  headers: {'content-type': 'application/json'},
  body: {
    commonParent: '',
    fields: [{attrs: [], details: '', filters: [], name: '', selector: '', type: 0}],
    format: '',
    name: '',
    paginator: {nextPageSelector: '', pageNum: 0},
    path: false,
    request: {
      actions: [{}],
      ignoreHTTPStatusErrCodes: false,
      initialCookies: [
        {
          domain: '',
          expirationDate: '',
          hostOnly: false,
          httpOnly: false,
          id: '',
          name: '',
          path: '',
          sameSite: '',
          secure: false,
          session: false,
          storeID: '',
          value: ''
        }
      ],
      output: '',
      proxy: '',
      type: '',
      url: '',
      waitDelay: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/parse');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  commonParent: '',
  fields: [
    {
      attrs: [],
      details: '',
      filters: [],
      name: '',
      selector: '',
      type: 0
    }
  ],
  format: '',
  name: '',
  paginator: {
    nextPageSelector: '',
    pageNum: 0
  },
  path: false,
  request: {
    actions: [
      {}
    ],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    output: '',
    proxy: '',
    type: '',
    url: '',
    waitDelay: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/parse',
  headers: {'content-type': 'application/json'},
  data: {
    commonParent: '',
    fields: [{attrs: [], details: '', filters: [], name: '', selector: '', type: 0}],
    format: '',
    name: '',
    paginator: {nextPageSelector: '', pageNum: 0},
    path: false,
    request: {
      actions: [{}],
      ignoreHTTPStatusErrCodes: false,
      initialCookies: [
        {
          domain: '',
          expirationDate: '',
          hostOnly: false,
          httpOnly: false,
          id: '',
          name: '',
          path: '',
          sameSite: '',
          secure: false,
          session: false,
          storeID: '',
          value: ''
        }
      ],
      output: '',
      proxy: '',
      type: '',
      url: '',
      waitDelay: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/parse';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"commonParent":"","fields":[{"attrs":[],"details":"","filters":[],"name":"","selector":"","type":0}],"format":"","name":"","paginator":{"nextPageSelector":"","pageNum":0},"path":false,"request":{"actions":[{}],"ignoreHTTPStatusErrCodes":false,"initialCookies":[{"domain":"","expirationDate":"","hostOnly":false,"httpOnly":false,"id":"","name":"","path":"","sameSite":"","secure":false,"session":false,"storeID":"","value":""}],"output":"","proxy":"","type":"","url":"","waitDelay":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"commonParent": @"",
                              @"fields": @[ @{ @"attrs": @[  ], @"details": @"", @"filters": @[  ], @"name": @"", @"selector": @"", @"type": @0 } ],
                              @"format": @"",
                              @"name": @"",
                              @"paginator": @{ @"nextPageSelector": @"", @"pageNum": @0 },
                              @"path": @NO,
                              @"request": @{ @"actions": @[ @{  } ], @"ignoreHTTPStatusErrCodes": @NO, @"initialCookies": @[ @{ @"domain": @"", @"expirationDate": @"", @"hostOnly": @NO, @"httpOnly": @NO, @"id": @"", @"name": @"", @"path": @"", @"sameSite": @"", @"secure": @NO, @"session": @NO, @"storeID": @"", @"value": @"" } ], @"output": @"", @"proxy": @"", @"type": @"", @"url": @"", @"waitDelay": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/parse"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/parse" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/parse",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'commonParent' => '',
    'fields' => [
        [
                'attrs' => [
                                
                ],
                'details' => '',
                'filters' => [
                                
                ],
                'name' => '',
                'selector' => '',
                'type' => 0
        ]
    ],
    'format' => '',
    'name' => '',
    'paginator' => [
        'nextPageSelector' => '',
        'pageNum' => 0
    ],
    'path' => null,
    'request' => [
        'actions' => [
                [
                                
                ]
        ],
        'ignoreHTTPStatusErrCodes' => null,
        'initialCookies' => [
                [
                                'domain' => '',
                                'expirationDate' => '',
                                'hostOnly' => null,
                                'httpOnly' => null,
                                'id' => '',
                                'name' => '',
                                'path' => '',
                                'sameSite' => '',
                                'secure' => null,
                                'session' => null,
                                'storeID' => '',
                                'value' => ''
                ]
        ],
        'output' => '',
        'proxy' => '',
        'type' => '',
        'url' => '',
        'waitDelay' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/parse', [
  'body' => '{
  "commonParent": "",
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "paginator": {
    "nextPageSelector": "",
    "pageNum": 0
  },
  "path": false,
  "request": {
    "actions": [
      {}
    ],
    "ignoreHTTPStatusErrCodes": false,
    "initialCookies": [
      {
        "domain": "",
        "expirationDate": "",
        "hostOnly": false,
        "httpOnly": false,
        "id": "",
        "name": "",
        "path": "",
        "sameSite": "",
        "secure": false,
        "session": false,
        "storeID": "",
        "value": ""
      }
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/parse');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'commonParent' => '',
  'fields' => [
    [
        'attrs' => [
                
        ],
        'details' => '',
        'filters' => [
                
        ],
        'name' => '',
        'selector' => '',
        'type' => 0
    ]
  ],
  'format' => '',
  'name' => '',
  'paginator' => [
    'nextPageSelector' => '',
    'pageNum' => 0
  ],
  'path' => null,
  'request' => [
    'actions' => [
        [
                
        ]
    ],
    'ignoreHTTPStatusErrCodes' => null,
    'initialCookies' => [
        [
                'domain' => '',
                'expirationDate' => '',
                'hostOnly' => null,
                'httpOnly' => null,
                'id' => '',
                'name' => '',
                'path' => '',
                'sameSite' => '',
                'secure' => null,
                'session' => null,
                'storeID' => '',
                'value' => ''
        ]
    ],
    'output' => '',
    'proxy' => '',
    'type' => '',
    'url' => '',
    'waitDelay' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'commonParent' => '',
  'fields' => [
    [
        'attrs' => [
                
        ],
        'details' => '',
        'filters' => [
                
        ],
        'name' => '',
        'selector' => '',
        'type' => 0
    ]
  ],
  'format' => '',
  'name' => '',
  'paginator' => [
    'nextPageSelector' => '',
    'pageNum' => 0
  ],
  'path' => null,
  'request' => [
    'actions' => [
        [
                
        ]
    ],
    'ignoreHTTPStatusErrCodes' => null,
    'initialCookies' => [
        [
                'domain' => '',
                'expirationDate' => '',
                'hostOnly' => null,
                'httpOnly' => null,
                'id' => '',
                'name' => '',
                'path' => '',
                'sameSite' => '',
                'secure' => null,
                'session' => null,
                'storeID' => '',
                'value' => ''
        ]
    ],
    'output' => '',
    'proxy' => '',
    'type' => '',
    'url' => '',
    'waitDelay' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/parse');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/parse' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "commonParent": "",
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "paginator": {
    "nextPageSelector": "",
    "pageNum": 0
  },
  "path": false,
  "request": {
    "actions": [
      {}
    ],
    "ignoreHTTPStatusErrCodes": false,
    "initialCookies": [
      {
        "domain": "",
        "expirationDate": "",
        "hostOnly": false,
        "httpOnly": false,
        "id": "",
        "name": "",
        "path": "",
        "sameSite": "",
        "secure": false,
        "session": false,
        "storeID": "",
        "value": ""
      }
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/parse' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "commonParent": "",
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "paginator": {
    "nextPageSelector": "",
    "pageNum": 0
  },
  "path": false,
  "request": {
    "actions": [
      {}
    ],
    "ignoreHTTPStatusErrCodes": false,
    "initialCookies": [
      {
        "domain": "",
        "expirationDate": "",
        "hostOnly": false,
        "httpOnly": false,
        "id": "",
        "name": "",
        "path": "",
        "sameSite": "",
        "secure": false,
        "session": false,
        "storeID": "",
        "value": ""
      }
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/parse", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/parse"

payload = {
    "commonParent": "",
    "fields": [
        {
            "attrs": [],
            "details": "",
            "filters": [],
            "name": "",
            "selector": "",
            "type": 0
        }
    ],
    "format": "",
    "name": "",
    "paginator": {
        "nextPageSelector": "",
        "pageNum": 0
    },
    "path": False,
    "request": {
        "actions": [{}],
        "ignoreHTTPStatusErrCodes": False,
        "initialCookies": [
            {
                "domain": "",
                "expirationDate": "",
                "hostOnly": False,
                "httpOnly": False,
                "id": "",
                "name": "",
                "path": "",
                "sameSite": "",
                "secure": False,
                "session": False,
                "storeID": "",
                "value": ""
            }
        ],
        "output": "",
        "proxy": "",
        "type": "",
        "url": "",
        "waitDelay": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/parse"

payload <- "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/parse")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/parse') do |req|
  req.body = "{\n  \"commonParent\": \"\",\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"paginator\": {\n    \"nextPageSelector\": \"\",\n    \"pageNum\": 0\n  },\n  \"path\": false,\n  \"request\": {\n    \"actions\": [\n      {}\n    ],\n    \"ignoreHTTPStatusErrCodes\": false,\n    \"initialCookies\": [\n      {\n        \"domain\": \"\",\n        \"expirationDate\": \"\",\n        \"hostOnly\": false,\n        \"httpOnly\": false,\n        \"id\": \"\",\n        \"name\": \"\",\n        \"path\": \"\",\n        \"sameSite\": \"\",\n        \"secure\": false,\n        \"session\": false,\n        \"storeID\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"output\": \"\",\n    \"proxy\": \"\",\n    \"type\": \"\",\n    \"url\": \"\",\n    \"waitDelay\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/parse";

    let payload = json!({
        "commonParent": "",
        "fields": (
            json!({
                "attrs": (),
                "details": "",
                "filters": (),
                "name": "",
                "selector": "",
                "type": 0
            })
        ),
        "format": "",
        "name": "",
        "paginator": json!({
            "nextPageSelector": "",
            "pageNum": 0
        }),
        "path": false,
        "request": json!({
            "actions": (json!({})),
            "ignoreHTTPStatusErrCodes": false,
            "initialCookies": (
                json!({
                    "domain": "",
                    "expirationDate": "",
                    "hostOnly": false,
                    "httpOnly": false,
                    "id": "",
                    "name": "",
                    "path": "",
                    "sameSite": "",
                    "secure": false,
                    "session": false,
                    "storeID": "",
                    "value": ""
                })
            ),
            "output": "",
            "proxy": "",
            "type": "",
            "url": "",
            "waitDelay": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/parse \
  --header 'content-type: application/json' \
  --data '{
  "commonParent": "",
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "paginator": {
    "nextPageSelector": "",
    "pageNum": 0
  },
  "path": false,
  "request": {
    "actions": [
      {}
    ],
    "ignoreHTTPStatusErrCodes": false,
    "initialCookies": [
      {
        "domain": "",
        "expirationDate": "",
        "hostOnly": false,
        "httpOnly": false,
        "id": "",
        "name": "",
        "path": "",
        "sameSite": "",
        "secure": false,
        "session": false,
        "storeID": "",
        "value": ""
      }
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
  }
}'
echo '{
  "commonParent": "",
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "paginator": {
    "nextPageSelector": "",
    "pageNum": 0
  },
  "path": false,
  "request": {
    "actions": [
      {}
    ],
    "ignoreHTTPStatusErrCodes": false,
    "initialCookies": [
      {
        "domain": "",
        "expirationDate": "",
        "hostOnly": false,
        "httpOnly": false,
        "id": "",
        "name": "",
        "path": "",
        "sameSite": "",
        "secure": false,
        "session": false,
        "storeID": "",
        "value": ""
      }
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
  }
}' |  \
  http POST {{baseUrl}}/parse \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "commonParent": "",\n  "fields": [\n    {\n      "attrs": [],\n      "details": "",\n      "filters": [],\n      "name": "",\n      "selector": "",\n      "type": 0\n    }\n  ],\n  "format": "",\n  "name": "",\n  "paginator": {\n    "nextPageSelector": "",\n    "pageNum": 0\n  },\n  "path": false,\n  "request": {\n    "actions": [\n      {}\n    ],\n    "ignoreHTTPStatusErrCodes": false,\n    "initialCookies": [\n      {\n        "domain": "",\n        "expirationDate": "",\n        "hostOnly": false,\n        "httpOnly": false,\n        "id": "",\n        "name": "",\n        "path": "",\n        "sameSite": "",\n        "secure": false,\n        "session": false,\n        "storeID": "",\n        "value": ""\n      }\n    ],\n    "output": "",\n    "proxy": "",\n    "type": "",\n    "url": "",\n    "waitDelay": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/parse
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "commonParent": "",
  "fields": [
    [
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    ]
  ],
  "format": "",
  "name": "",
  "paginator": [
    "nextPageSelector": "",
    "pageNum": 0
  ],
  "path": false,
  "request": [
    "actions": [[]],
    "ignoreHTTPStatusErrCodes": false,
    "initialCookies": [
      [
        "domain": "",
        "expirationDate": "",
        "hostOnly": false,
        "httpOnly": false,
        "id": "",
        "name": "",
        "path": "",
        "sameSite": "",
        "secure": false,
        "session": false,
        "storeID": "",
        "value": ""
      ]
    ],
    "output": "",
    "proxy": "",
    "type": "",
    "url": "",
    "waitDelay": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/parse")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

[
  {
    "Name_href": "https://test.dataflowkit.com/persons/1",
    "Name_text": "Ethan Aguirre",
    "Number_text": "1",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-1.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/2",
    "Name_text": "Melodie Holder",
    "Number_text": "2",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-2.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/3",
    "Name_text": "Meghan Reyes",
    "Number_text": "3",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-3.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/4",
    "Name_text": "Lane Vinson",
    "Number_text": "4",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-4.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/5",
    "Name_text": "Philip Tillman",
    "Number_text": "5",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-5.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/6",
    "Name_text": "Theodore Mcclain",
    "Number_text": "6",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-6.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/7",
    "Name_text": "Neville Kane",
    "Number_text": "7",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-7.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/8",
    "Name_text": "Lila Vazquez",
    "Number_text": "8",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-8.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/9",
    "Name_text": "Ulysses Peters",
    "Number_text": "9",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-9.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/10",
    "Name_text": "Camden Young",
    "Number_text": "10",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-10.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/11",
    "Name_text": "Solomon Petty",
    "Number_text": "11",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-11.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/12",
    "Name_text": "Ahmed Robbins",
    "Number_text": "12",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-12.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/13",
    "Name_text": "William Olsen",
    "Number_text": "13",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-13.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/14",
    "Name_text": "Ahmed Vaughan",
    "Number_text": "14",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-14.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/15",
    "Name_text": "Howard Kemp",
    "Number_text": "15",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-15.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/16",
    "Name_text": "Channing Flores",
    "Number_text": "16",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-16.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/17",
    "Name_text": "Brandon Bauer",
    "Number_text": "17",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-17.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/18",
    "Name_text": "Colt Morrow",
    "Number_text": "18",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-18.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/19",
    "Name_text": "Kaye Garner",
    "Number_text": "19",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-19.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/20",
    "Name_text": "Clayton Justice",
    "Number_text": "20",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-20.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/21",
    "Name_text": "Hiroko Mills",
    "Number_text": "21",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-21.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/22",
    "Name_text": "Melvin Lloyd",
    "Number_text": "22",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-22.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/23",
    "Name_text": "Marshall Mayo",
    "Number_text": "23",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-23.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/24",
    "Name_text": "Rae Casey",
    "Number_text": "24",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-24.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/25",
    "Name_text": "Astra Snyder",
    "Number_text": "25",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-25.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/26",
    "Name_text": "Simon Mckinney",
    "Number_text": "26",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-26.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/27",
    "Name_text": "Graiden Riggs",
    "Number_text": "27",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-27.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/28",
    "Name_text": "Jaden Stewart",
    "Number_text": "28",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-28.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/29",
    "Name_text": "Christian Galloway",
    "Number_text": "29",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-29.svg"
  },
  {
    "Name_href": "https://test.dataflowkit.com/persons/30",
    "Name_text": "Signe Sykes",
    "Number_text": "30",
    "Picture_alt": "",
    "Picture_src": "https://test.dataflowkit.com/static/img/avataaars-30.svg"
  }
]
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid request URL
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No fields to scrape
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No API Key provided
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid API key
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Process fetch failed.
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Create single process failed
POST Collect search results from search engines
{{baseUrl}}/serp
BODY json

{
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "pageNum": 0,
  "proxy": "",
  "type": "",
  "url": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/serp");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/serp" {:content-type :json
                                                 :form-params {:fields [{:attrs []
                                                                         :details ""
                                                                         :filters []
                                                                         :name ""
                                                                         :selector ""
                                                                         :type 0}]
                                                               :format ""
                                                               :name ""
                                                               :pageNum 0
                                                               :proxy ""
                                                               :type ""
                                                               :url ""}})
require "http/client"

url = "{{baseUrl}}/serp"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/serp"),
    Content = new StringContent("{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/serp");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/serp"

	payload := strings.NewReader("{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/serp HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 238

{
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "pageNum": 0,
  "proxy": "",
  "type": "",
  "url": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/serp")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/serp"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/serp")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/serp")
  .header("content-type", "application/json")
  .body("{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  fields: [
    {
      attrs: [],
      details: '',
      filters: [],
      name: '',
      selector: '',
      type: 0
    }
  ],
  format: '',
  name: '',
  pageNum: 0,
  proxy: '',
  type: '',
  url: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/serp');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/serp',
  headers: {'content-type': 'application/json'},
  data: {
    fields: [{attrs: [], details: '', filters: [], name: '', selector: '', type: 0}],
    format: '',
    name: '',
    pageNum: 0,
    proxy: '',
    type: '',
    url: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/serp';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"fields":[{"attrs":[],"details":"","filters":[],"name":"","selector":"","type":0}],"format":"","name":"","pageNum":0,"proxy":"","type":"","url":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/serp',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "fields": [\n    {\n      "attrs": [],\n      "details": "",\n      "filters": [],\n      "name": "",\n      "selector": "",\n      "type": 0\n    }\n  ],\n  "format": "",\n  "name": "",\n  "pageNum": 0,\n  "proxy": "",\n  "type": "",\n  "url": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/serp")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/serp',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  fields: [{attrs: [], details: '', filters: [], name: '', selector: '', type: 0}],
  format: '',
  name: '',
  pageNum: 0,
  proxy: '',
  type: '',
  url: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/serp',
  headers: {'content-type': 'application/json'},
  body: {
    fields: [{attrs: [], details: '', filters: [], name: '', selector: '', type: 0}],
    format: '',
    name: '',
    pageNum: 0,
    proxy: '',
    type: '',
    url: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/serp');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  fields: [
    {
      attrs: [],
      details: '',
      filters: [],
      name: '',
      selector: '',
      type: 0
    }
  ],
  format: '',
  name: '',
  pageNum: 0,
  proxy: '',
  type: '',
  url: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/serp',
  headers: {'content-type': 'application/json'},
  data: {
    fields: [{attrs: [], details: '', filters: [], name: '', selector: '', type: 0}],
    format: '',
    name: '',
    pageNum: 0,
    proxy: '',
    type: '',
    url: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/serp';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"fields":[{"attrs":[],"details":"","filters":[],"name":"","selector":"","type":0}],"format":"","name":"","pageNum":0,"proxy":"","type":"","url":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"fields": @[ @{ @"attrs": @[  ], @"details": @"", @"filters": @[  ], @"name": @"", @"selector": @"", @"type": @0 } ],
                              @"format": @"",
                              @"name": @"",
                              @"pageNum": @0,
                              @"proxy": @"",
                              @"type": @"",
                              @"url": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/serp"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/serp" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/serp",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'fields' => [
        [
                'attrs' => [
                                
                ],
                'details' => '',
                'filters' => [
                                
                ],
                'name' => '',
                'selector' => '',
                'type' => 0
        ]
    ],
    'format' => '',
    'name' => '',
    'pageNum' => 0,
    'proxy' => '',
    'type' => '',
    'url' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/serp', [
  'body' => '{
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "pageNum": 0,
  "proxy": "",
  "type": "",
  "url": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/serp');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'fields' => [
    [
        'attrs' => [
                
        ],
        'details' => '',
        'filters' => [
                
        ],
        'name' => '',
        'selector' => '',
        'type' => 0
    ]
  ],
  'format' => '',
  'name' => '',
  'pageNum' => 0,
  'proxy' => '',
  'type' => '',
  'url' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'fields' => [
    [
        'attrs' => [
                
        ],
        'details' => '',
        'filters' => [
                
        ],
        'name' => '',
        'selector' => '',
        'type' => 0
    ]
  ],
  'format' => '',
  'name' => '',
  'pageNum' => 0,
  'proxy' => '',
  'type' => '',
  'url' => ''
]));
$request->setRequestUrl('{{baseUrl}}/serp');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/serp' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "pageNum": 0,
  "proxy": "",
  "type": "",
  "url": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/serp' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "pageNum": 0,
  "proxy": "",
  "type": "",
  "url": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/serp", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/serp"

payload = {
    "fields": [
        {
            "attrs": [],
            "details": "",
            "filters": [],
            "name": "",
            "selector": "",
            "type": 0
        }
    ],
    "format": "",
    "name": "",
    "pageNum": 0,
    "proxy": "",
    "type": "",
    "url": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/serp"

payload <- "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/serp")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/serp') do |req|
  req.body = "{\n  \"fields\": [\n    {\n      \"attrs\": [],\n      \"details\": \"\",\n      \"filters\": [],\n      \"name\": \"\",\n      \"selector\": \"\",\n      \"type\": 0\n    }\n  ],\n  \"format\": \"\",\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"proxy\": \"\",\n  \"type\": \"\",\n  \"url\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/serp";

    let payload = json!({
        "fields": (
            json!({
                "attrs": (),
                "details": "",
                "filters": (),
                "name": "",
                "selector": "",
                "type": 0
            })
        ),
        "format": "",
        "name": "",
        "pageNum": 0,
        "proxy": "",
        "type": "",
        "url": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/serp \
  --header 'content-type: application/json' \
  --data '{
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "pageNum": 0,
  "proxy": "",
  "type": "",
  "url": ""
}'
echo '{
  "fields": [
    {
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    }
  ],
  "format": "",
  "name": "",
  "pageNum": 0,
  "proxy": "",
  "type": "",
  "url": ""
}' |  \
  http POST {{baseUrl}}/serp \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "fields": [\n    {\n      "attrs": [],\n      "details": "",\n      "filters": [],\n      "name": "",\n      "selector": "",\n      "type": 0\n    }\n  ],\n  "format": "",\n  "name": "",\n  "pageNum": 0,\n  "proxy": "",\n  "type": "",\n  "url": ""\n}' \
  --output-document \
  - {{baseUrl}}/serp
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "fields": [
    [
      "attrs": [],
      "details": "",
      "filters": [],
      "name": "",
      "selector": "",
      "type": 0
    ]
  ],
  "format": "",
  "name": "",
  "pageNum": 0,
  "proxy": "",
  "type": "",
  "url": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/serp")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

[
  {
    "description_text": "Dataflow kit visits the web on your behalf, processes Javascript driven pages in the cloud, return rendered HTML, capture screenshot or save as PDF. Dataflow Kit services. Headless Chrome as a service. We automate dynamic web content download using the Headless Chrome browser. ...",
    "link_href": "https://dataflowkit.com/",
    "link_text": "Turn Websites into structured data /Dataflow kit"
  },
  {
    "description_text": "Dataflow kit (\"DFK\") is a Web Scraping framework for Gophers. It extracts data from web pages, following the specified CSS Selectors. You can use it in many ways for data mining, data processing or archiving.",
    "link_href": "https://github.com/slotix/dataflowkit",
    "link_text": "GitHub - slotix/dataflowkit: Extract structured data from ..."
  },
  {
    "description_text": "The Department of Health - Abu Dhabi (DoH - Abu Dhabi) leverages the DataFlow Group's specialized Primary Source Verification (PSV) solutions to screen the credentials of professionals working within Abu Dhabi's healthcare sector. As the regulative body of the healthcare sector in Abu Dhabi, DoH - Abu Dhabi ensures excellence for the ...",
    "link_href": "https://corp.dataflowgroup.com/verification-services/start-your-verification/healthcare/department-of-health-abu-dhabi/",
    "link_text": "Department of Health - Abu Dhabi - Dataflow Group"
  },
  {
    "description_text": "Dataflow Kit was added by slotix in Apr 2020 and the latest update was made in May 2020. The list of alternatives was updated Apr 2020. It's possible to update the information on Dataflow Kit or report it as discontinued, duplicated or spam.",
    "link_href": "https://alternativeto.net/software/dataflow-kit/",
    "link_text": "Dataflow Kit Alternatives and Similar Websites and Apps ..."
  },
  {
    "description_text": "Dataflow Kit Reloaded. We are so excited to introduce a new, completely re-implemented Dataflow Kit. In particular, we supplement our legacy custom web scraper with more focused and more understandable web services for our users.",
    "link_href": "https://blog.dataflowkit.com/",
    "link_text": "Dataflow Kit Blog"
  },
  {
    "description_text": "The Dubai Health Authority (DHA) leverages the DataFlow Group's specialized Primary Source Verification (PSV) solutions to screen the credentials of professionals working within Dubai's healthcare sector. The DHA is led by a mission to ensure access to health services, maintain and enhance the quality of these services, improve the health ...",
    "link_href": "https://corp.dataflowgroup.com/verification-services/start-your-verification/healthcare/dubai-health-authority/",
    "link_text": "Dubai Health Authority - Dataflow Group"
  },
  {
    "description_text": "Dataflow Kit Reloaded. We are so excited to introduce a new, completely re-implemented Dataflow Kit. In particular, we supplement our legacy custom web scraper with more focused and more understandable web services for our users.",
    "link_href": "https://blog.dataflowkit.com/reloaded/",
    "link_text": "Dataflow Kit Reloaded."
  },
  {
    "description_text": "The Dataflow Kit API allows embedding free COVID-19 live statistics web widget into sites. Methods provide data for the USA, Spain, or the World. Developers can access live statistics data through the DFK COVID-19 API for free. They can build widgets, mobile apps, or integrate them into other applications.",
    "link_href": "https://www.programmableweb.com/api/dataflow-kit-rest-api-v1",
    "link_text": "Dataflow Kit REST API v1 | ProgrammableWeb"
  },
  {
    "description_text": "Description. Dataflow kit is a Scraping framework for Gophers. DFK extracts structured data from web pages, following the specified extractors. It can be used in many ways for data mining, data processing or archiving.",
    "link_href": "https://go.libhunt.com/dataflowkit-alternatives",
    "link_text": "Dataflow kit Alternatives - Go Text Processing | LibHunt"
  },
  {
    "description_text": "Point, click and extract. Work on any interactive site Scrape a website behind a login form Extract data from multiple pages. Scrape infinite scrolled pages. Crawl details; Extract and follow lin",
    "link_href": "https://www.startupranking.com/dataflow-kit",
    "link_text": "Dataflow Kit - Fast extraction of structured data from ..."
  }
]
RESPONSE HEADERS

Content-Type
application/x-ndjson
RESPONSE BODY text

{"description_text":"We offer Dataflow kit Proxies service to get around content download restrictions from specific websites or send requests through proxies to obtain country-specific versions of target websites. Just specify the target country from 100+ supported global locations to send your web/ SERPs scraping API requests.","link_href":"https://dataflowkit.com/","link_text":"Turn Websites into structured data /Dataflow kit"}
{"description_text":"Dataflow kit. Dataflow kit (\"DFK\") is a Web Scraping framework for Gophers. It extracts data from web pages, following the specified CSS Selectors.","link_href":"https://github.com/slotix/dataflowkit","link_text":"GitHub - slotix/dataflowkit: Extract structured data from ..."}
{"description_text":"The Department of Health - Abu Dhabi (DoH - Abu Dhabi) leverages the DataFlow Group's specialized Primary Source Verification (PSV) solutions to screen the credentials of professionals working within Abu Dhabi's healthcare sector. As the regulative body of the healthcare sector in Abu Dhabi, DoH - Abu Dhabi ensures excellence for the ...","link_href":"https://corp.dataflowgroup.com/verification-services/start-your-verification/healthcare/department-of-health-abu-dhabi/","link_text":"Department of Health - Abu Dhabi - Dataflow Group"}
{"description_text":"Dataflow Kit Reloaded. We are so excited to introduce a new, completely re-implemented Dataflow Kit. In particular, we supplement our legacy custom web scraper with more focused and more understandable web services for our users.","link_href":"https://blog.dataflowkit.com/","link_text":"Dataflow Kit Blog"}
{"description_text":"Coronavirus Developer Resource Center. COVID-19 APIs, SDKs, coverage, open source code and other related dev resources »","link_href":"https://www.programmableweb.com/api/dataflow-kit-covid-19-tracking","link_text":"Dataflow Kit COVID-19 Tracking API | ProgrammableWeb"}
{"description_text":"Dataflow Kit Reloaded. We are so excited to introduce a new, completely re-implemented Dataflow Kit. In particular, we supplement our legacy custom web scraper with more focused and more understandable web services for our users.","link_href":"https://blog.dataflowkit.com/reloaded/","link_text":"Dataflow Kit Reloaded."}
{"description_text":"The Dubai Health Authority (DHA) leverages the DataFlow Group's specialized Primary Source Verification (PSV) solutions to screen the credentials of professionals working within Dubai's healthcare sector. The DHA is led by a mission to ensure access to health services, maintain and enhance the quality of these services, improve the health ...","link_href":"https://corp.dataflowgroup.com/verification-services/start-your-verification/healthcare/dubai-health-authority/","link_text":"Dubai Health Authority - Dataflow Group"}
{"description_text":"Dataflow Kit Extract information from web sites with a visual point-and-click toolkit. Turn websites into useful data. Automate data workflows on the web, process, and transform data at any scale.","link_href":"https://alternativeto.net/software/dataflow-kit/","link_text":"Dataflow Kit Alternatives and Similar Websites and Apps ..."}
{"description_text":"The Dataflow Kit API allows embedding free COVID-19 live statistics web widget into sites. Developers can access live statistics data through the DFK COVID-19 API for free. They can build widgets, mobile apps, or integrate them into other applications.","link_href":"https://www.programmableweb.com/api/dataflow-kit-0","link_text":"Dataflow Kit API | ProgrammableWeb"}
{"description_text":"Coronavirus info widgets. Embed free COVID-19 live statistics web widget into your site.","link_href":"https://covid-19.dataflowkit.com/","link_text":"COVID-19 Coronavirus live statistics"}
  
RESPONSE HEADERS

Content-Type
text/csv
RESPONSE BODY text

link_href,link_text,description_text
https://dataflowkit.com/,Turn Websites into structured data /Dataflow kit,"Dataflow kit visits the web on your behalf, processes Javascript driven pages in the cloud, return rendered HTML, capture screenshot or save as PDF. Dataflow Kit services. Headless Chrome as a service. We automate dynamic web content download using the Headless Chrome browser. ..."
https://github.com/slotix/dataflowkit,GitHub - slotix/dataflowkit: Extract structured data from ...,"Dataflow kit (""DFK"") is a Web Scraping framework for Gophers. It extracts data from web pages, following the specified CSS Selectors. You can use it in many ways for data mining, data processing or archiving."
https://corp.dataflowgroup.com/verification-services/start-your-verification/healthcare/department-of-health-abu-dhabi/,Department of Health - Abu Dhabi - Dataflow Group,"The Department of Health - Abu Dhabi (DoH - Abu Dhabi) leverages the DataFlow Group's specialized Primary Source Verification (PSV) solutions to screen the credentials of professionals working within Abu Dhabi's healthcare sector. As the regulative body of the healthcare sector in Abu Dhabi, DoH - Abu Dhabi ensures excellence for the ..."
https://blog.dataflowkit.com/,Dataflow Kit Blog,"Dataflow Kit Reloaded. We are so excited to introduce a new, completely re-implemented Dataflow Kit. In particular, we supplement our legacy custom web scraper with more focused and more understandable web services for our users."
https://www.programmableweb.com/api/dataflow-kit-covid-19-tracking,Dataflow Kit COVID-19 Tracking API | ProgrammableWeb,"Coronavirus Developer Resource Center. COVID-19 APIs, SDKs, coverage, open source code and other related dev resources »"
https://blog.dataflowkit.com/reloaded/,Dataflow Kit Reloaded.,"Dataflow Kit Reloaded. We are so excited to introduce a new, completely re-implemented Dataflow Kit. In particular, we supplement our legacy custom web scraper with more focused and more understandable web services for our users."
https://corp.dataflowgroup.com/verification-services/start-your-verification/healthcare/dubai-health-authority/,Dubai Health Authority - Dataflow Group,"The Dubai Health Authority (DHA) leverages the DataFlow Group's specialized Primary Source Verification (PSV) solutions to screen the credentials of professionals working within Dubai's healthcare sector. The DHA is led by a mission to ensure access to health services, maintain and enhance the quality of these services, improve the health ..."
https://alternativeto.net/software/dataflow-kit/,Dataflow Kit Alternatives and Similar Websites and Apps ...,"Popular Alternatives to Dataflow Kit for Web, Windows, Mac, Linux, Software as a Service (SaaS) and more. Explore 25 websites and apps like Dataflow Kit, all suggested and ranked by the AlternativeTo user community."
https://www.programmableweb.com/api/dataflow-kit-0,Dataflow Kit API | ProgrammableWeb,"The Dataflow Kit API allows embedding free COVID-19 live statistics web widget into sites. Developers can access live statistics data through the DFK COVID-19 API for free. They can build widgets, mobile apps, or integrate them into other applications."
https://covid-19.dataflowkit.com/,COVID-19 Coronavirus live statistics,Coronavirus info widgets. Embed free COVID-19 live statistics web widget into your site.
  
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid request URL
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No fields to scrape
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No API Key provided
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid API key
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Process fetch failed.
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Create single process failed
POST Save web page as PDF
{{baseUrl}}/convert/url/pdf
BODY json

{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "landscape": false,
  "marginBottom": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "output": "",
  "pageRanges": "",
  "paperSize": "",
  "printBackground": false,
  "printHeaderFooter": false,
  "proxy": "",
  "scale": "",
  "url": "",
  "waitDelay": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/convert/url/pdf");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/convert/url/pdf" {:content-type :json
                                                            :form-params {:actions [{}]
                                                                          :ignoreHTTPStatusErrCodes false
                                                                          :initialCookies [{:domain ""
                                                                                            :expirationDate ""
                                                                                            :hostOnly false
                                                                                            :httpOnly false
                                                                                            :id ""
                                                                                            :name ""
                                                                                            :path ""
                                                                                            :sameSite ""
                                                                                            :secure false
                                                                                            :session false
                                                                                            :storeID ""
                                                                                            :value ""}]
                                                                          :landscape false
                                                                          :marginBottom ""
                                                                          :marginLeft ""
                                                                          :marginRight ""
                                                                          :marginTop ""
                                                                          :output ""
                                                                          :pageRanges ""
                                                                          :paperSize ""
                                                                          :printBackground false
                                                                          :printHeaderFooter false
                                                                          :proxy ""
                                                                          :scale ""
                                                                          :url ""
                                                                          :waitDelay ""}})
require "http/client"

url = "{{baseUrl}}/convert/url/pdf"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/convert/url/pdf"),
    Content = new StringContent("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/convert/url/pdf");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/convert/url/pdf"

	payload := strings.NewReader("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/convert/url/pdf HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 642

{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "landscape": false,
  "marginBottom": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "output": "",
  "pageRanges": "",
  "paperSize": "",
  "printBackground": false,
  "printHeaderFooter": false,
  "proxy": "",
  "scale": "",
  "url": "",
  "waitDelay": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/convert/url/pdf")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/convert/url/pdf"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/convert/url/pdf")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/convert/url/pdf")
  .header("content-type", "application/json")
  .body("{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  actions: [
    {}
  ],
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  landscape: false,
  marginBottom: '',
  marginLeft: '',
  marginRight: '',
  marginTop: '',
  output: '',
  pageRanges: '',
  paperSize: '',
  printBackground: false,
  printHeaderFooter: false,
  proxy: '',
  scale: '',
  url: '',
  waitDelay: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/convert/url/pdf');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/convert/url/pdf',
  headers: {'content-type': 'application/json'},
  data: {
    actions: [{}],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    landscape: false,
    marginBottom: '',
    marginLeft: '',
    marginRight: '',
    marginTop: '',
    output: '',
    pageRanges: '',
    paperSize: '',
    printBackground: false,
    printHeaderFooter: false,
    proxy: '',
    scale: '',
    url: '',
    waitDelay: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/convert/url/pdf';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"actions":[{}],"ignoreHTTPStatusErrCodes":false,"initialCookies":[{"domain":"","expirationDate":"","hostOnly":false,"httpOnly":false,"id":"","name":"","path":"","sameSite":"","secure":false,"session":false,"storeID":"","value":""}],"landscape":false,"marginBottom":"","marginLeft":"","marginRight":"","marginTop":"","output":"","pageRanges":"","paperSize":"","printBackground":false,"printHeaderFooter":false,"proxy":"","scale":"","url":"","waitDelay":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/convert/url/pdf',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "actions": [\n    {}\n  ],\n  "ignoreHTTPStatusErrCodes": false,\n  "initialCookies": [\n    {\n      "domain": "",\n      "expirationDate": "",\n      "hostOnly": false,\n      "httpOnly": false,\n      "id": "",\n      "name": "",\n      "path": "",\n      "sameSite": "",\n      "secure": false,\n      "session": false,\n      "storeID": "",\n      "value": ""\n    }\n  ],\n  "landscape": false,\n  "marginBottom": "",\n  "marginLeft": "",\n  "marginRight": "",\n  "marginTop": "",\n  "output": "",\n  "pageRanges": "",\n  "paperSize": "",\n  "printBackground": false,\n  "printHeaderFooter": false,\n  "proxy": "",\n  "scale": "",\n  "url": "",\n  "waitDelay": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/convert/url/pdf")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/convert/url/pdf',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  actions: [{}],
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  landscape: false,
  marginBottom: '',
  marginLeft: '',
  marginRight: '',
  marginTop: '',
  output: '',
  pageRanges: '',
  paperSize: '',
  printBackground: false,
  printHeaderFooter: false,
  proxy: '',
  scale: '',
  url: '',
  waitDelay: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/convert/url/pdf',
  headers: {'content-type': 'application/json'},
  body: {
    actions: [{}],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    landscape: false,
    marginBottom: '',
    marginLeft: '',
    marginRight: '',
    marginTop: '',
    output: '',
    pageRanges: '',
    paperSize: '',
    printBackground: false,
    printHeaderFooter: false,
    proxy: '',
    scale: '',
    url: '',
    waitDelay: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/convert/url/pdf');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  actions: [
    {}
  ],
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  landscape: false,
  marginBottom: '',
  marginLeft: '',
  marginRight: '',
  marginTop: '',
  output: '',
  pageRanges: '',
  paperSize: '',
  printBackground: false,
  printHeaderFooter: false,
  proxy: '',
  scale: '',
  url: '',
  waitDelay: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/convert/url/pdf',
  headers: {'content-type': 'application/json'},
  data: {
    actions: [{}],
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    landscape: false,
    marginBottom: '',
    marginLeft: '',
    marginRight: '',
    marginTop: '',
    output: '',
    pageRanges: '',
    paperSize: '',
    printBackground: false,
    printHeaderFooter: false,
    proxy: '',
    scale: '',
    url: '',
    waitDelay: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/convert/url/pdf';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"actions":[{}],"ignoreHTTPStatusErrCodes":false,"initialCookies":[{"domain":"","expirationDate":"","hostOnly":false,"httpOnly":false,"id":"","name":"","path":"","sameSite":"","secure":false,"session":false,"storeID":"","value":""}],"landscape":false,"marginBottom":"","marginLeft":"","marginRight":"","marginTop":"","output":"","pageRanges":"","paperSize":"","printBackground":false,"printHeaderFooter":false,"proxy":"","scale":"","url":"","waitDelay":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"actions": @[ @{  } ],
                              @"ignoreHTTPStatusErrCodes": @NO,
                              @"initialCookies": @[ @{ @"domain": @"", @"expirationDate": @"", @"hostOnly": @NO, @"httpOnly": @NO, @"id": @"", @"name": @"", @"path": @"", @"sameSite": @"", @"secure": @NO, @"session": @NO, @"storeID": @"", @"value": @"" } ],
                              @"landscape": @NO,
                              @"marginBottom": @"",
                              @"marginLeft": @"",
                              @"marginRight": @"",
                              @"marginTop": @"",
                              @"output": @"",
                              @"pageRanges": @"",
                              @"paperSize": @"",
                              @"printBackground": @NO,
                              @"printHeaderFooter": @NO,
                              @"proxy": @"",
                              @"scale": @"",
                              @"url": @"",
                              @"waitDelay": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/convert/url/pdf"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/convert/url/pdf" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/convert/url/pdf",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'actions' => [
        [
                
        ]
    ],
    'ignoreHTTPStatusErrCodes' => null,
    'initialCookies' => [
        [
                'domain' => '',
                'expirationDate' => '',
                'hostOnly' => null,
                'httpOnly' => null,
                'id' => '',
                'name' => '',
                'path' => '',
                'sameSite' => '',
                'secure' => null,
                'session' => null,
                'storeID' => '',
                'value' => ''
        ]
    ],
    'landscape' => null,
    'marginBottom' => '',
    'marginLeft' => '',
    'marginRight' => '',
    'marginTop' => '',
    'output' => '',
    'pageRanges' => '',
    'paperSize' => '',
    'printBackground' => null,
    'printHeaderFooter' => null,
    'proxy' => '',
    'scale' => '',
    'url' => '',
    'waitDelay' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/convert/url/pdf', [
  'body' => '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "landscape": false,
  "marginBottom": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "output": "",
  "pageRanges": "",
  "paperSize": "",
  "printBackground": false,
  "printHeaderFooter": false,
  "proxy": "",
  "scale": "",
  "url": "",
  "waitDelay": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/convert/url/pdf');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'actions' => [
    [
        
    ]
  ],
  'ignoreHTTPStatusErrCodes' => null,
  'initialCookies' => [
    [
        'domain' => '',
        'expirationDate' => '',
        'hostOnly' => null,
        'httpOnly' => null,
        'id' => '',
        'name' => '',
        'path' => '',
        'sameSite' => '',
        'secure' => null,
        'session' => null,
        'storeID' => '',
        'value' => ''
    ]
  ],
  'landscape' => null,
  'marginBottom' => '',
  'marginLeft' => '',
  'marginRight' => '',
  'marginTop' => '',
  'output' => '',
  'pageRanges' => '',
  'paperSize' => '',
  'printBackground' => null,
  'printHeaderFooter' => null,
  'proxy' => '',
  'scale' => '',
  'url' => '',
  'waitDelay' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'actions' => [
    [
        
    ]
  ],
  'ignoreHTTPStatusErrCodes' => null,
  'initialCookies' => [
    [
        'domain' => '',
        'expirationDate' => '',
        'hostOnly' => null,
        'httpOnly' => null,
        'id' => '',
        'name' => '',
        'path' => '',
        'sameSite' => '',
        'secure' => null,
        'session' => null,
        'storeID' => '',
        'value' => ''
    ]
  ],
  'landscape' => null,
  'marginBottom' => '',
  'marginLeft' => '',
  'marginRight' => '',
  'marginTop' => '',
  'output' => '',
  'pageRanges' => '',
  'paperSize' => '',
  'printBackground' => null,
  'printHeaderFooter' => null,
  'proxy' => '',
  'scale' => '',
  'url' => '',
  'waitDelay' => ''
]));
$request->setRequestUrl('{{baseUrl}}/convert/url/pdf');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/convert/url/pdf' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "landscape": false,
  "marginBottom": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "output": "",
  "pageRanges": "",
  "paperSize": "",
  "printBackground": false,
  "printHeaderFooter": false,
  "proxy": "",
  "scale": "",
  "url": "",
  "waitDelay": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/convert/url/pdf' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "landscape": false,
  "marginBottom": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "output": "",
  "pageRanges": "",
  "paperSize": "",
  "printBackground": false,
  "printHeaderFooter": false,
  "proxy": "",
  "scale": "",
  "url": "",
  "waitDelay": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/convert/url/pdf", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/convert/url/pdf"

payload = {
    "actions": [{}],
    "ignoreHTTPStatusErrCodes": False,
    "initialCookies": [
        {
            "domain": "",
            "expirationDate": "",
            "hostOnly": False,
            "httpOnly": False,
            "id": "",
            "name": "",
            "path": "",
            "sameSite": "",
            "secure": False,
            "session": False,
            "storeID": "",
            "value": ""
        }
    ],
    "landscape": False,
    "marginBottom": "",
    "marginLeft": "",
    "marginRight": "",
    "marginTop": "",
    "output": "",
    "pageRanges": "",
    "paperSize": "",
    "printBackground": False,
    "printHeaderFooter": False,
    "proxy": "",
    "scale": "",
    "url": "",
    "waitDelay": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/convert/url/pdf"

payload <- "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/convert/url/pdf")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/convert/url/pdf') do |req|
  req.body = "{\n  \"actions\": [\n    {}\n  ],\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"landscape\": false,\n  \"marginBottom\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"output\": \"\",\n  \"pageRanges\": \"\",\n  \"paperSize\": \"\",\n  \"printBackground\": false,\n  \"printHeaderFooter\": false,\n  \"proxy\": \"\",\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/convert/url/pdf";

    let payload = json!({
        "actions": (json!({})),
        "ignoreHTTPStatusErrCodes": false,
        "initialCookies": (
            json!({
                "domain": "",
                "expirationDate": "",
                "hostOnly": false,
                "httpOnly": false,
                "id": "",
                "name": "",
                "path": "",
                "sameSite": "",
                "secure": false,
                "session": false,
                "storeID": "",
                "value": ""
            })
        ),
        "landscape": false,
        "marginBottom": "",
        "marginLeft": "",
        "marginRight": "",
        "marginTop": "",
        "output": "",
        "pageRanges": "",
        "paperSize": "",
        "printBackground": false,
        "printHeaderFooter": false,
        "proxy": "",
        "scale": "",
        "url": "",
        "waitDelay": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/convert/url/pdf \
  --header 'content-type: application/json' \
  --data '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "landscape": false,
  "marginBottom": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "output": "",
  "pageRanges": "",
  "paperSize": "",
  "printBackground": false,
  "printHeaderFooter": false,
  "proxy": "",
  "scale": "",
  "url": "",
  "waitDelay": ""
}'
echo '{
  "actions": [
    {}
  ],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "landscape": false,
  "marginBottom": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "output": "",
  "pageRanges": "",
  "paperSize": "",
  "printBackground": false,
  "printHeaderFooter": false,
  "proxy": "",
  "scale": "",
  "url": "",
  "waitDelay": ""
}' |  \
  http POST {{baseUrl}}/convert/url/pdf \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "actions": [\n    {}\n  ],\n  "ignoreHTTPStatusErrCodes": false,\n  "initialCookies": [\n    {\n      "domain": "",\n      "expirationDate": "",\n      "hostOnly": false,\n      "httpOnly": false,\n      "id": "",\n      "name": "",\n      "path": "",\n      "sameSite": "",\n      "secure": false,\n      "session": false,\n      "storeID": "",\n      "value": ""\n    }\n  ],\n  "landscape": false,\n  "marginBottom": "",\n  "marginLeft": "",\n  "marginRight": "",\n  "marginTop": "",\n  "output": "",\n  "pageRanges": "",\n  "paperSize": "",\n  "printBackground": false,\n  "printHeaderFooter": false,\n  "proxy": "",\n  "scale": "",\n  "url": "",\n  "waitDelay": ""\n}' \
  --output-document \
  - {{baseUrl}}/convert/url/pdf
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "actions": [[]],
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    [
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    ]
  ],
  "landscape": false,
  "marginBottom": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "output": "",
  "pageRanges": "",
  "paperSize": "",
  "printBackground": false,
  "printHeaderFooter": false,
  "proxy": "",
  "scale": "",
  "url": "",
  "waitDelay": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/convert/url/pdf")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

https://dfk-storage-ny3.nyc3.digitaloceanspaces.com/5e5d2864ebb755000188c2c5/url_pdf2020-05-06_20%3A00.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=KMGZH6JMEM75FTB4EEVL%2F20200506%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20200506T200046Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=737740ad471acf45120709a07de7440287e1daa17599a44b8668f6586030e6be
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid request URL
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No fields to scrape
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No API Key provided
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid API key
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Process fetch failed.
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Create single process failed
POST Capture web page Screenshots.
{{baseUrl}}/convert/url/screenshot
BODY json

{
  "actions": [
    {}
  ],
  "clipSelector": "",
  "format": "",
  "fullPage": false,
  "height": 0,
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "offsetx": 0,
  "offsety": 0,
  "output": "",
  "printBackground": false,
  "proxy": "",
  "quality": 0,
  "scale": "",
  "url": "",
  "waitDelay": "",
  "width": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/convert/url/screenshot");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/convert/url/screenshot" {:content-type :json
                                                                   :form-params {:actions [{}]
                                                                                 :clipSelector ""
                                                                                 :format ""
                                                                                 :fullPage false
                                                                                 :height 0
                                                                                 :ignoreHTTPStatusErrCodes false
                                                                                 :initialCookies [{:domain ""
                                                                                                   :expirationDate ""
                                                                                                   :hostOnly false
                                                                                                   :httpOnly false
                                                                                                   :id ""
                                                                                                   :name ""
                                                                                                   :path ""
                                                                                                   :sameSite ""
                                                                                                   :secure false
                                                                                                   :session false
                                                                                                   :storeID ""
                                                                                                   :value ""}]
                                                                                 :offsetx 0
                                                                                 :offsety 0
                                                                                 :output ""
                                                                                 :printBackground false
                                                                                 :proxy ""
                                                                                 :quality 0
                                                                                 :scale ""
                                                                                 :url ""
                                                                                 :waitDelay ""
                                                                                 :width 0}})
require "http/client"

url = "{{baseUrl}}/convert/url/screenshot"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/convert/url/screenshot"),
    Content = new StringContent("{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/convert/url/screenshot");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/convert/url/screenshot"

	payload := strings.NewReader("{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/convert/url/screenshot HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 605

{
  "actions": [
    {}
  ],
  "clipSelector": "",
  "format": "",
  "fullPage": false,
  "height": 0,
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "offsetx": 0,
  "offsety": 0,
  "output": "",
  "printBackground": false,
  "proxy": "",
  "quality": 0,
  "scale": "",
  "url": "",
  "waitDelay": "",
  "width": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/convert/url/screenshot")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/convert/url/screenshot"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/convert/url/screenshot")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/convert/url/screenshot")
  .header("content-type", "application/json")
  .body("{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}")
  .asString();
const data = JSON.stringify({
  actions: [
    {}
  ],
  clipSelector: '',
  format: '',
  fullPage: false,
  height: 0,
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  offsetx: 0,
  offsety: 0,
  output: '',
  printBackground: false,
  proxy: '',
  quality: 0,
  scale: '',
  url: '',
  waitDelay: '',
  width: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/convert/url/screenshot');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/convert/url/screenshot',
  headers: {'content-type': 'application/json'},
  data: {
    actions: [{}],
    clipSelector: '',
    format: '',
    fullPage: false,
    height: 0,
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    offsetx: 0,
    offsety: 0,
    output: '',
    printBackground: false,
    proxy: '',
    quality: 0,
    scale: '',
    url: '',
    waitDelay: '',
    width: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/convert/url/screenshot';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"actions":[{}],"clipSelector":"","format":"","fullPage":false,"height":0,"ignoreHTTPStatusErrCodes":false,"initialCookies":[{"domain":"","expirationDate":"","hostOnly":false,"httpOnly":false,"id":"","name":"","path":"","sameSite":"","secure":false,"session":false,"storeID":"","value":""}],"offsetx":0,"offsety":0,"output":"","printBackground":false,"proxy":"","quality":0,"scale":"","url":"","waitDelay":"","width":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/convert/url/screenshot',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "actions": [\n    {}\n  ],\n  "clipSelector": "",\n  "format": "",\n  "fullPage": false,\n  "height": 0,\n  "ignoreHTTPStatusErrCodes": false,\n  "initialCookies": [\n    {\n      "domain": "",\n      "expirationDate": "",\n      "hostOnly": false,\n      "httpOnly": false,\n      "id": "",\n      "name": "",\n      "path": "",\n      "sameSite": "",\n      "secure": false,\n      "session": false,\n      "storeID": "",\n      "value": ""\n    }\n  ],\n  "offsetx": 0,\n  "offsety": 0,\n  "output": "",\n  "printBackground": false,\n  "proxy": "",\n  "quality": 0,\n  "scale": "",\n  "url": "",\n  "waitDelay": "",\n  "width": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/convert/url/screenshot")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/convert/url/screenshot',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  actions: [{}],
  clipSelector: '',
  format: '',
  fullPage: false,
  height: 0,
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  offsetx: 0,
  offsety: 0,
  output: '',
  printBackground: false,
  proxy: '',
  quality: 0,
  scale: '',
  url: '',
  waitDelay: '',
  width: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/convert/url/screenshot',
  headers: {'content-type': 'application/json'},
  body: {
    actions: [{}],
    clipSelector: '',
    format: '',
    fullPage: false,
    height: 0,
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    offsetx: 0,
    offsety: 0,
    output: '',
    printBackground: false,
    proxy: '',
    quality: 0,
    scale: '',
    url: '',
    waitDelay: '',
    width: 0
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/convert/url/screenshot');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  actions: [
    {}
  ],
  clipSelector: '',
  format: '',
  fullPage: false,
  height: 0,
  ignoreHTTPStatusErrCodes: false,
  initialCookies: [
    {
      domain: '',
      expirationDate: '',
      hostOnly: false,
      httpOnly: false,
      id: '',
      name: '',
      path: '',
      sameSite: '',
      secure: false,
      session: false,
      storeID: '',
      value: ''
    }
  ],
  offsetx: 0,
  offsety: 0,
  output: '',
  printBackground: false,
  proxy: '',
  quality: 0,
  scale: '',
  url: '',
  waitDelay: '',
  width: 0
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/convert/url/screenshot',
  headers: {'content-type': 'application/json'},
  data: {
    actions: [{}],
    clipSelector: '',
    format: '',
    fullPage: false,
    height: 0,
    ignoreHTTPStatusErrCodes: false,
    initialCookies: [
      {
        domain: '',
        expirationDate: '',
        hostOnly: false,
        httpOnly: false,
        id: '',
        name: '',
        path: '',
        sameSite: '',
        secure: false,
        session: false,
        storeID: '',
        value: ''
      }
    ],
    offsetx: 0,
    offsety: 0,
    output: '',
    printBackground: false,
    proxy: '',
    quality: 0,
    scale: '',
    url: '',
    waitDelay: '',
    width: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/convert/url/screenshot';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"actions":[{}],"clipSelector":"","format":"","fullPage":false,"height":0,"ignoreHTTPStatusErrCodes":false,"initialCookies":[{"domain":"","expirationDate":"","hostOnly":false,"httpOnly":false,"id":"","name":"","path":"","sameSite":"","secure":false,"session":false,"storeID":"","value":""}],"offsetx":0,"offsety":0,"output":"","printBackground":false,"proxy":"","quality":0,"scale":"","url":"","waitDelay":"","width":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"actions": @[ @{  } ],
                              @"clipSelector": @"",
                              @"format": @"",
                              @"fullPage": @NO,
                              @"height": @0,
                              @"ignoreHTTPStatusErrCodes": @NO,
                              @"initialCookies": @[ @{ @"domain": @"", @"expirationDate": @"", @"hostOnly": @NO, @"httpOnly": @NO, @"id": @"", @"name": @"", @"path": @"", @"sameSite": @"", @"secure": @NO, @"session": @NO, @"storeID": @"", @"value": @"" } ],
                              @"offsetx": @0,
                              @"offsety": @0,
                              @"output": @"",
                              @"printBackground": @NO,
                              @"proxy": @"",
                              @"quality": @0,
                              @"scale": @"",
                              @"url": @"",
                              @"waitDelay": @"",
                              @"width": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/convert/url/screenshot"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/convert/url/screenshot" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/convert/url/screenshot",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'actions' => [
        [
                
        ]
    ],
    'clipSelector' => '',
    'format' => '',
    'fullPage' => null,
    'height' => 0,
    'ignoreHTTPStatusErrCodes' => null,
    'initialCookies' => [
        [
                'domain' => '',
                'expirationDate' => '',
                'hostOnly' => null,
                'httpOnly' => null,
                'id' => '',
                'name' => '',
                'path' => '',
                'sameSite' => '',
                'secure' => null,
                'session' => null,
                'storeID' => '',
                'value' => ''
        ]
    ],
    'offsetx' => 0,
    'offsety' => 0,
    'output' => '',
    'printBackground' => null,
    'proxy' => '',
    'quality' => 0,
    'scale' => '',
    'url' => '',
    'waitDelay' => '',
    'width' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/convert/url/screenshot', [
  'body' => '{
  "actions": [
    {}
  ],
  "clipSelector": "",
  "format": "",
  "fullPage": false,
  "height": 0,
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "offsetx": 0,
  "offsety": 0,
  "output": "",
  "printBackground": false,
  "proxy": "",
  "quality": 0,
  "scale": "",
  "url": "",
  "waitDelay": "",
  "width": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/convert/url/screenshot');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'actions' => [
    [
        
    ]
  ],
  'clipSelector' => '',
  'format' => '',
  'fullPage' => null,
  'height' => 0,
  'ignoreHTTPStatusErrCodes' => null,
  'initialCookies' => [
    [
        'domain' => '',
        'expirationDate' => '',
        'hostOnly' => null,
        'httpOnly' => null,
        'id' => '',
        'name' => '',
        'path' => '',
        'sameSite' => '',
        'secure' => null,
        'session' => null,
        'storeID' => '',
        'value' => ''
    ]
  ],
  'offsetx' => 0,
  'offsety' => 0,
  'output' => '',
  'printBackground' => null,
  'proxy' => '',
  'quality' => 0,
  'scale' => '',
  'url' => '',
  'waitDelay' => '',
  'width' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'actions' => [
    [
        
    ]
  ],
  'clipSelector' => '',
  'format' => '',
  'fullPage' => null,
  'height' => 0,
  'ignoreHTTPStatusErrCodes' => null,
  'initialCookies' => [
    [
        'domain' => '',
        'expirationDate' => '',
        'hostOnly' => null,
        'httpOnly' => null,
        'id' => '',
        'name' => '',
        'path' => '',
        'sameSite' => '',
        'secure' => null,
        'session' => null,
        'storeID' => '',
        'value' => ''
    ]
  ],
  'offsetx' => 0,
  'offsety' => 0,
  'output' => '',
  'printBackground' => null,
  'proxy' => '',
  'quality' => 0,
  'scale' => '',
  'url' => '',
  'waitDelay' => '',
  'width' => 0
]));
$request->setRequestUrl('{{baseUrl}}/convert/url/screenshot');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/convert/url/screenshot' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "actions": [
    {}
  ],
  "clipSelector": "",
  "format": "",
  "fullPage": false,
  "height": 0,
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "offsetx": 0,
  "offsety": 0,
  "output": "",
  "printBackground": false,
  "proxy": "",
  "quality": 0,
  "scale": "",
  "url": "",
  "waitDelay": "",
  "width": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/convert/url/screenshot' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "actions": [
    {}
  ],
  "clipSelector": "",
  "format": "",
  "fullPage": false,
  "height": 0,
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "offsetx": 0,
  "offsety": 0,
  "output": "",
  "printBackground": false,
  "proxy": "",
  "quality": 0,
  "scale": "",
  "url": "",
  "waitDelay": "",
  "width": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/convert/url/screenshot", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/convert/url/screenshot"

payload = {
    "actions": [{}],
    "clipSelector": "",
    "format": "",
    "fullPage": False,
    "height": 0,
    "ignoreHTTPStatusErrCodes": False,
    "initialCookies": [
        {
            "domain": "",
            "expirationDate": "",
            "hostOnly": False,
            "httpOnly": False,
            "id": "",
            "name": "",
            "path": "",
            "sameSite": "",
            "secure": False,
            "session": False,
            "storeID": "",
            "value": ""
        }
    ],
    "offsetx": 0,
    "offsety": 0,
    "output": "",
    "printBackground": False,
    "proxy": "",
    "quality": 0,
    "scale": "",
    "url": "",
    "waitDelay": "",
    "width": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/convert/url/screenshot"

payload <- "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/convert/url/screenshot")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/convert/url/screenshot') do |req|
  req.body = "{\n  \"actions\": [\n    {}\n  ],\n  \"clipSelector\": \"\",\n  \"format\": \"\",\n  \"fullPage\": false,\n  \"height\": 0,\n  \"ignoreHTTPStatusErrCodes\": false,\n  \"initialCookies\": [\n    {\n      \"domain\": \"\",\n      \"expirationDate\": \"\",\n      \"hostOnly\": false,\n      \"httpOnly\": false,\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"sameSite\": \"\",\n      \"secure\": false,\n      \"session\": false,\n      \"storeID\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"offsetx\": 0,\n  \"offsety\": 0,\n  \"output\": \"\",\n  \"printBackground\": false,\n  \"proxy\": \"\",\n  \"quality\": 0,\n  \"scale\": \"\",\n  \"url\": \"\",\n  \"waitDelay\": \"\",\n  \"width\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/convert/url/screenshot";

    let payload = json!({
        "actions": (json!({})),
        "clipSelector": "",
        "format": "",
        "fullPage": false,
        "height": 0,
        "ignoreHTTPStatusErrCodes": false,
        "initialCookies": (
            json!({
                "domain": "",
                "expirationDate": "",
                "hostOnly": false,
                "httpOnly": false,
                "id": "",
                "name": "",
                "path": "",
                "sameSite": "",
                "secure": false,
                "session": false,
                "storeID": "",
                "value": ""
            })
        ),
        "offsetx": 0,
        "offsety": 0,
        "output": "",
        "printBackground": false,
        "proxy": "",
        "quality": 0,
        "scale": "",
        "url": "",
        "waitDelay": "",
        "width": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/convert/url/screenshot \
  --header 'content-type: application/json' \
  --data '{
  "actions": [
    {}
  ],
  "clipSelector": "",
  "format": "",
  "fullPage": false,
  "height": 0,
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "offsetx": 0,
  "offsety": 0,
  "output": "",
  "printBackground": false,
  "proxy": "",
  "quality": 0,
  "scale": "",
  "url": "",
  "waitDelay": "",
  "width": 0
}'
echo '{
  "actions": [
    {}
  ],
  "clipSelector": "",
  "format": "",
  "fullPage": false,
  "height": 0,
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    {
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    }
  ],
  "offsetx": 0,
  "offsety": 0,
  "output": "",
  "printBackground": false,
  "proxy": "",
  "quality": 0,
  "scale": "",
  "url": "",
  "waitDelay": "",
  "width": 0
}' |  \
  http POST {{baseUrl}}/convert/url/screenshot \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "actions": [\n    {}\n  ],\n  "clipSelector": "",\n  "format": "",\n  "fullPage": false,\n  "height": 0,\n  "ignoreHTTPStatusErrCodes": false,\n  "initialCookies": [\n    {\n      "domain": "",\n      "expirationDate": "",\n      "hostOnly": false,\n      "httpOnly": false,\n      "id": "",\n      "name": "",\n      "path": "",\n      "sameSite": "",\n      "secure": false,\n      "session": false,\n      "storeID": "",\n      "value": ""\n    }\n  ],\n  "offsetx": 0,\n  "offsety": 0,\n  "output": "",\n  "printBackground": false,\n  "proxy": "",\n  "quality": 0,\n  "scale": "",\n  "url": "",\n  "waitDelay": "",\n  "width": 0\n}' \
  --output-document \
  - {{baseUrl}}/convert/url/screenshot
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "actions": [[]],
  "clipSelector": "",
  "format": "",
  "fullPage": false,
  "height": 0,
  "ignoreHTTPStatusErrCodes": false,
  "initialCookies": [
    [
      "domain": "",
      "expirationDate": "",
      "hostOnly": false,
      "httpOnly": false,
      "id": "",
      "name": "",
      "path": "",
      "sameSite": "",
      "secure": false,
      "session": false,
      "storeID": "",
      "value": ""
    ]
  ],
  "offsetx": 0,
  "offsety": 0,
  "output": "",
  "printBackground": false,
  "proxy": "",
  "quality": 0,
  "scale": "",
  "url": "",
  "waitDelay": "",
  "width": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/convert/url/screenshot")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

https://dfk-storage-ny3.nyc3.digitaloceanspaces.com/5e5d2864ebb755000188c2c5/url_screenshot2020-05-06_20%3A02.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=KMGZH6JMEM75FTB4EEVL%2F20200506%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20200506T200305Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=1c1c39fab3e9b0a8806fc4fd6690b335758d12a926a635c08c7301f87ff9279b
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid request URL
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No fields to scrape
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

No API Key provided
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Invalid API key
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Process fetch failed.
RESPONSE HEADERS

Content-Type
text/plain; charset=utf-8
RESPONSE BODY text

Create single process failed