Skip to main content
POST
/
wistia
/
video
cURL
curl --request POST \
  --url https://py-api.hobbo.ai/wistia/video \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "is_text_formatted": true
}
'
import requests

url = "https://py-api.hobbo.ai/wistia/video"

payload = {
"query": "<string>",
"is_text_formatted": True
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', is_text_formatted: true})
};

fetch('https://py-api.hobbo.ai/wistia/video', 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://py-api.hobbo.ai/wistia/video",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'is_text_formatted' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

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

curl_close($curl);

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

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

func main() {

url := "https://py-api.hobbo.ai/wistia/video"

payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"is_text_formatted\": true\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://py-api.hobbo.ai/wistia/video")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"is_text_formatted\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://py-api.hobbo.ai/wistia/video")

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

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"is_text_formatted\": true\n}"

response = http.request(request)
puts response.read_body
{
  "all_reviews": [
    {
      "query": "<string>",
      "branding": {},
      "media_date": "<string>",
      "media_duration": 123,
      "enable_customer_logo": true,
      "media_id": "<string>",
      "media_type": "<string>",
      "media_name": "<string>",
      "media_stats": {
        "load_count": 123,
        "play_count": 123,
        "unique_load_count": 123,
        "unique_play_count": 123,
        "average_engagement": 123
      },
      "media_data": [
        {
          "bitrate": 123,
          "created_at": 123,
          "details": {},
          "display_name": "<string>",
          "height": 123,
          "is_enhanced": true,
          "metadata": {
            "av_stream_metadata": "<string>"
          },
          "progress": 123,
          "public": true,
          "size": 123,
          "slug": "<string>",
          "status": 123,
          "type": "<string>",
          "url": "<string>",
          "width": 123
        }
      ],
      "review_media": [
        {
          "review_media_type": "<string>",
          "review_media_url": "<string>",
          "bitrate": 123,
          "codec": "<string>",
          "container": "<string>",
          "height": 123,
          "width": 123,
          "display_name": "<string>",
          "ext": "<string>",
          "size": 123,
          "slug": "<string>",
          "type": "<string>",
          "url": "<string>"
        }
      ],
      "thumbnail_url": "<string>",
      "video_url": "<string>",
      "iframe_data": {
        "src": "<string>"
      }
    }
  ]
}
{
"error": "<string>"
}

Body

application/json

Wistia video fetch parameters

query
string
required

Provide proper Wistia video URL

is_text_formatted
boolean
default:true

Controls text formatting in output

Response

Video details fetched successfully

all_reviews
object[]

Array of fetched Wistia video data