Get Results
curl --request GET \
--url https://api.lobstr.io/v1/results \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/results"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/results', 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://api.lobstr.io/v1/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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://api.lobstr.io/v1/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/results")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"video_id": "<string>",
"url": "<string>",
"title": "<string>",
"description": "<string>",
"keywords": "<any>",
"duration_seconds": 123,
"view_count": {},
"like_count": {},
"comment_count_text": "<string>",
"published_at": {},
"published_time_text": "<string>",
"category": "<string>",
"is_unlisted": true,
"is_family_safe": true,
"is_live_content": true,
"thumbnail_url": "<string>",
"channel_id": "<string>",
"channel_name": "<string>",
"channel_url": "<string>",
"channel_handle": "<string>",
"channel_avatar_url": "<string>",
"channel_subscriber_count_text": "<string>",
"requested_language": "<string>",
"language": "<string>",
"language_name": "<string>",
"is_auto_generated": true,
"segments": "<any>",
"full_text": "<string>",
"word_count": 123,
"tracks": "<any>",
"tracks_count": 123,
"available_languages": "<any>",
"status": "<string>",
"transcript_found": true
}YouTube Transcript Scraper
Get Results
Retrieve scraped data from YouTube Transcript Scraper
GET
/
v1
/
results
Get Results
curl --request GET \
--url https://api.lobstr.io/v1/results \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/results"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/results', 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://api.lobstr.io/v1/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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://api.lobstr.io/v1/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/results")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"video_id": "<string>",
"url": "<string>",
"title": "<string>",
"description": "<string>",
"keywords": "<any>",
"duration_seconds": 123,
"view_count": {},
"like_count": {},
"comment_count_text": "<string>",
"published_at": {},
"published_time_text": "<string>",
"category": "<string>",
"is_unlisted": true,
"is_family_safe": true,
"is_live_content": true,
"thumbnail_url": "<string>",
"channel_id": "<string>",
"channel_name": "<string>",
"channel_url": "<string>",
"channel_handle": "<string>",
"channel_avatar_url": "<string>",
"channel_subscriber_count_text": "<string>",
"requested_language": "<string>",
"language": "<string>",
"language_name": "<string>",
"is_auto_generated": true,
"segments": "<any>",
"full_text": "<string>",
"word_count": 123,
"tracks": "<any>",
"tracks_count": 123,
"available_languages": "<any>",
"status": "<string>",
"transcript_found": true
}Retrieve scraped data from your YouTube Transcript Scraper runs.
Headers
string
required
Your API authentication token. Value:
Token YOUR_API_KEYQuery Parameters
string
required
Hash of the squid to get results from
integer
Page number (default: 1)
Result Fields
string
YouTube video identifier. Example:
dQw4w9WgXcQstring
Canonical URL of the video. Example:
https://www.youtube.com/watch?v=dQw4w9WgXcQstring
Video title. Example:
Rick Astley - Never Gonna Give You Uptext
Full video description.
json
Keywords (tags) set by the creator.
integer
Video length in seconds. Example:
212bigint
View count at collection time. Example:
1400000000bigint
Like count (null when likes are hidden). Example:
15000000string
Approximate comment count as displayed by YouTube. Example:
2.1Mdatetime
Publish date and time (UTC). Example:
2009-10-25T06:57:33Zstring
Relative publish time as displayed by YouTube. Example:
16 years agostring
YouTube category. Example:
Musicboolean
Whether the video is unlisted.
boolean
Whether YouTube flags the video as family safe.
boolean
Whether the video is or was a live broadcast.
string
Highest resolution thumbnail URL.
string
YouTube channel identifier. Example:
UCuAXFkgsw1L7xaCfnd5JJOwstring
Channel name. Example:
Rick Astleystring
Channel URL. Example:
https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOwstring
Channel handle. Example:
@RickAstleyYTstring
Channel avatar image URL.
string
Subscriber count as displayed by YouTube. Example:
3.8M subscribersstring
Language setting used for this row. Example:
enstring
Language code of the primary transcript. Example:
enstring
Display name of the primary transcript track. Example:
Englishboolean
Whether the primary transcript is auto-generated.
json
Primary transcript as timestamped segments (start, duration, text).
text
Primary transcript as plain text. Example:
We're no strangers to love...integer
Number of words in full_text. Example:
312json
Every downloaded caption track.
integer
Number of downloaded tracks. Example:
3json
Every caption track the video offers.
string
‘ok’ when at least one track was downloaded, ‘no_captions’ when none available. Example:
okboolean
Whether a transcript was downloaded.
Response
200
{"total_results": 1, "data": [{"video_id": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "title": "Rick Astley - Never Gonna Give You Up", "language": "en", "full_text": "We're no strangers to love...", "word_count": 312, "tracks_count": 3, "status": "ok"}]}