Skip to main content
GET
/
v1
/
scrapers
List all scrapers
curl --request GET \
  --url http://localhost:3000/v1/scrapers
import requests

url = "http://localhost:3000/v1/scrapers"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('http://localhost:3000/v1/scrapers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/scrapers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "http://localhost:3000/v1/scrapers"

req, _ := http.NewRequest("GET", url, nil)

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("http://localhost:3000/v1/scrapers")
.asString();
require 'uri'
require 'net/http'

url = URI("http://localhost:3000/v1/scrapers")

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

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "scrapers": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "retailer_code": "<string>",
      "scraper_type": "<string>",
      "is_enabled": true,
      "schedule_cron": "<string>",
      "schedule_description": "<string>",
      "location_ids": [
        "<string>"
      ],
      "max_workers": 123,
      "batch_size": 123,
      "rate_limit_delay": 123,
      "alert_on_failure": true,
      "alert_on_error_rate": true,
      "error_rate_threshold": 123,
      "created_at": "<string>",
      "updated_at": "<string>",
      "currentStatus": "<string>",
      "expectedProducts": 123,
      "retailer": null,
      "lastRun": null
    }
  ],
  "stats": {
    "totalProducts": 123,
    "recentUpdates": 123,
    "activeScrapers": 123,
    "failedRuns": 123
  }
}

Query Parameters

retailerCode
string
Maximum string length: 20

Response

200 - application/json

List of scrapers

scrapers
object[]
required
stats
object
required