YouTube Videos
curl --request POST \
--url https://socialquery.dev/v1/youtube/videos \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"ids": [
"<string>"
]
}
'import requests
url = "https://socialquery.dev/v1/youtube/videos"
payload = { "ids": ["<string>"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>']})
};
fetch('https://socialquery.dev/v1/youtube/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"data": {}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}YouTube
YouTube Videos
Youtube videos. Availability depends on the configured provider route.
POST
/
youtube
/
videos
YouTube Videos
curl --request POST \
--url https://socialquery.dev/v1/youtube/videos \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"ids": [
"<string>"
]
}
'import requests
url = "https://socialquery.dev/v1/youtube/videos"
payload = { "ids": ["<string>"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>']})
};
fetch('https://socialquery.dev/v1/youtube/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"data": {}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}{
"success": false,
"platform": "<string>",
"endpoint": "<string>",
"credits_used": 1,
"credits_remaining": 123,
"request_id": "<string>",
"cached": true,
"error": {
"code": "<string>",
"type": "<string>",
"message": "<string>",
"status": 123,
"doc_url": "<string>"
}
}Beta catalog endpoint. Provider activation and live verification are in progress. An unavailable operation returns HTTP 503 and uses no credits.
Authorizations
Query Parameters
Response
Successful response. data is specific to this operation.
Required range:
x >= 0Operation-specific data. Fields depend on the endpoint and upstream response; unavailable metrics may be null.
⌘I