RU

Тема

Цвет акцента

Тема и цвет сохранятся на satelit.md и в приложении.

Панель Выбрать тариф

Судебные заседания

Courts and their seats

GET/v1/courts/courts

Every court of Moldova (district courts, courts of appeal, the Supreme Court of Justice) and its seats, with slugs for the other court routes and whether the crawl has read it. Costs 1 credit.

Кредиты
1
С ключом

Параметры

Без параметров.

Возможные ошибки

Попробовать

curl "https://api.satelit.md/v1/courts/courts" \
  -H "Authorization: Bearer $SATELIT_KEY"
const res = await fetch("https://api.satelit.md/v1/courts/courts", {
  headers: { Authorization: `Bearer ${process.env.SATELIT_KEY}` },
});
const { data, meta } = await res.json();
console.log(data, meta.credits);
import json, os, urllib.request

req = urllib.request.Request(
    "https://api.satelit.md/v1/courts/courts",
    headers={"Authorization": f"Bearer {os.environ['SATELIT_KEY']}"},
)
with urllib.request.urlopen(req) as res:
    body = json.load(res)
print(body["data"], body["meta"]["credits"])
<?php
$ch = curl_init("https://api.satelit.md/v1/courts/courts");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("SATELIT_KEY")],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($body["data"]);

A day's hearings

GET/v1/courts/hearings

The hearings of one day, of one court or seat or of every court, by id: `after` the last answer's `next` for the next rows. Each with its case. Costs 2 credits per 50 rows.

Кредиты
2 за блок строк: 50
С ключом

Параметры

  • courtstringнеобязательный

    A court or seat: its slug from `/courts/courts`, or its name in any language.

  • datestringнеобязательныйпо умолчанию today

    День, YYYY-MM-DD.

  • kindstring: civil, penal, contrav, admin, otherнеобязательный

    Only this category.

  • afterintegerнеобязательныйпо умолчанию 0

    Откуда продолжить: последний полученный meta.next.

  • perintegerнеобязательныйпо умолчанию 50

    Строк на страницу, не более 20.

Возможные ошибки

Попробовать

curl "https://api.satelit.md/v1/courts/hearings" \
  -H "Authorization: Bearer $SATELIT_KEY"
const res = await fetch("https://api.satelit.md/v1/courts/hearings", {
  headers: { Authorization: `Bearer ${process.env.SATELIT_KEY}` },
});
const { data, meta } = await res.json();
console.log(data, meta.credits);
import json, os, urllib.request

req = urllib.request.Request(
    "https://api.satelit.md/v1/courts/hearings",
    headers={"Authorization": f"Bearer {os.environ['SATELIT_KEY']}"},
)
with urllib.request.urlopen(req) as res:
    body = json.load(res)
print(body["data"], body["meta"]["credits"])
<?php
$ch = curl_init("https://api.satelit.md/v1/courts/hearings");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("SATELIT_KEY")],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($body["data"]);

One case

GET/v1/courts/case

A case by its number or PIGD: its hearings in order with the result, the judge and the room, its decisions with the court's own PDF link (never stored here), and the same dispute in the other instances. Costs 1 credit.

Кредиты
1
С ключом

Параметры

  • numberstringобязательный

    The case number, its PIGD or its page link on satelit.md.

  • courtstringнеобязательный

    A court or seat: its slug from `/courts/courts`, or its name in any language.

Возможные ошибки

Попробовать

curl "https://api.satelit.md/v1/courts/case" \
  -H "Authorization: Bearer $SATELIT_KEY"
const res = await fetch("https://api.satelit.md/v1/courts/case", {
  headers: { Authorization: `Bearer ${process.env.SATELIT_KEY}` },
});
const { data, meta } = await res.json();
console.log(data, meta.credits);
import json, os, urllib.request

req = urllib.request.Request(
    "https://api.satelit.md/v1/courts/case",
    headers={"Authorization": f"Bearer {os.environ['SATELIT_KEY']}"},
)
with urllib.request.urlopen(req) as res:
    body = json.load(res)
print(body["data"], body["meta"]["credits"])
<?php
$ch = curl_init("https://api.satelit.md/v1/courts/case");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("SATELIT_KEY")],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($body["data"]);

One judge's load

GET/v1/courts/judges/{slug}

A judge's year (hearings by category, postponement rate, median days to a decision, rank among the busiest), today, the next working day, this week, the next 14 days, and the agenda of a day. Costs 1 credit.

Кредиты
1
С ключом

Параметры

  • slugstringобязательный

    Название рецепта из адреса.

Возможные ошибки

Попробовать

curl "https://api.satelit.md/v1/courts/judges/{slug}" \
  -H "Authorization: Bearer $SATELIT_KEY"
const res = await fetch("https://api.satelit.md/v1/courts/judges/{slug}", {
  headers: { Authorization: `Bearer ${process.env.SATELIT_KEY}` },
});
const { data, meta } = await res.json();
console.log(data, meta.credits);
import json, os, urllib.request

req = urllib.request.Request(
    "https://api.satelit.md/v1/courts/judges/{slug}",
    headers={"Authorization": f"Bearer {os.environ['SATELIT_KEY']}"},
)
with urllib.request.urlopen(req) as res:
    body = json.load(res)
print(body["data"], body["meta"]["credits"])
<?php
$ch = curl_init("https://api.satelit.md/v1/courts/judges/{slug}");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("SATELIT_KEY")],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($body["data"]);

Court figures

GET/v1/courts/stats

What happens in the courts now (today, this week, this month by court and seat), what is rising, the busiest judges and the categories they hear, postponements and how long a case takes. Read from tables the crawl keeps as it reads: an answer takes milliseconds. Every view says its period and the coverage of the crawl. Costs 2 credits.

Кредиты
2
С ключом

Параметры

  • viewstring: now, trends, judges, durationsнеобязательныйпо умолчанию now

    now, trends, judges or durations.

  • courtstringнеобязательный

    A court or seat: its slug from `/courts/courts`, or its name in any language.

  • kindstring: civil, penal, contrav, admin, otherнеобязательный

    Only this category.

  • periodstring: today, tomorrow, week, month, 30d, yearнеобязательныйпо умолчанию month

    judges: today, tomorrow, week, month, 30d (the last 30 days) or year (the last 365 days).

  • daysintegerнеобязательныйпо умолчанию 28

    Сколько дней назад. Обрезается по лимиту плана.

  • limitintegerнеобязательныйпо умолчанию 10

    Строк в ответе, не больше 200.

Возможные ошибки

Попробовать

curl "https://api.satelit.md/v1/courts/stats" \
  -H "Authorization: Bearer $SATELIT_KEY"
const res = await fetch("https://api.satelit.md/v1/courts/stats", {
  headers: { Authorization: `Bearer ${process.env.SATELIT_KEY}` },
});
const { data, meta } = await res.json();
console.log(data, meta.credits);
import json, os, urllib.request

req = urllib.request.Request(
    "https://api.satelit.md/v1/courts/stats",
    headers={"Authorization": f"Bearer {os.environ['SATELIT_KEY']}"},
)
with urllib.request.urlopen(req) as res:
    body = json.load(res)
print(body["data"], body["meta"]["credits"])
<?php
$ch = curl_init("https://api.satelit.md/v1/courts/stats");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("SATELIT_KEY")],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($body["data"]);