Сегменти пропуску (Intro/Outro/Recap)
curl --request GET \
--url https://films.aartzz.pp.ua/api/segmentsimport requests
url = "https://films.aartzz.pp.ua/api/segments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://films.aartzz.pp.ua/api/segments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://films.aartzz.pp.ua/api/segments",
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 := "https://films.aartzz.pp.ua/api/segments"
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("https://films.aartzz.pp.ua/api/segments")
.asString();require 'uri'
require 'net/http'
url = URI("https://films.aartzz.pp.ua/api/segments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"segments": [
{
"type": "intro",
"start": 90.5,
"end": 175.2,
"label": "Заставка",
"source": "theintrodb"
}
]
}Каталог і метадані
Сегменти пропуску
Отримує часові мітки заставок та титрів для автоматичного або ручного пропуску з баз AniSkip та TheIntroDB.
GET
/
api
/
segments
Сегменти пропуску (Intro/Outro/Recap)
curl --request GET \
--url https://films.aartzz.pp.ua/api/segmentsimport requests
url = "https://films.aartzz.pp.ua/api/segments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://films.aartzz.pp.ua/api/segments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://films.aartzz.pp.ua/api/segments",
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 := "https://films.aartzz.pp.ua/api/segments"
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("https://films.aartzz.pp.ua/api/segments")
.asString();require 'uri'
require 'net/http'
url = URI("https://films.aartzz.pp.ua/api/segments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"segments": [
{
"type": "intro",
"start": 90.5,
"end": 175.2,
"label": "Заставка",
"source": "theintrodb"
}
]
}Параметри запиту
TMDB ID або IMDB ID
Приклад:
"284445"
IMDB ID (tt...)
Приклад:
"tt1234567"
movie або tv
Доступні опції:
movie, tv Номер сезону
Приклад:
1
Номер серії
Приклад:
1
Тривалість відео в мілісекундах для точної синхронізації
Приклад:
1420000
Відповідь
200 - application/json
Список знайдених сегментів
Show child attributes
Show child attributes