Skip to main content

The official Python library for the Vizlook API

Project description

Vizlook

The official Vizlook Python SDK.

Install

pip install vizlook

Usage

from vizlook import Vizlook, AsyncVizlook

vizlook = Vizlook(api_key=os.environ.get("VIZLOOK_API_KEY"))

Performs a video search on the Vizlook system.

response = vizlook.search(
    "how to be productive",
    max_results=5,
    start_published_date="2025-08-19T15:01:36.000Z",
    need_transcription=True,
    need_summary=True,
)

print("response with original API key:", response.to_dict())
print("response with snake case key:", response.to_dict(use_api_field_name=False))

Generates an answer to a query.

response = vizlook.answer("how to be productive", need_transcription=True)

Streams an answer to a query.

stream = vizlook.stream_answer("how to be productive")
answer = ""

for chunk in stream:
    # response with original API key
    chunk_dict = chunk.to_dict()
    chunk_type = chunk_dict.get("type")

    if chunk_type == "answer-chunk":
        answer += chunk_dict.get("data", "")
    if chunk_type == "data-citations":
        print("Citations: ", chunk_dict.get("data").get("citations"))
    if chunk_type == "data-cost":
        print("Cost: ", chunk_dict.get("data").get("dollarCost"))
    if chunk_type == "error":
        print("Error: ", chunk_dict.get("data").get("errorText"))

print("Answer: ", answer)

Retrieves contents of videos based on specified URLs.

response = vizlook.get_video_contents(
  "https://www.youtube.com/watch?v=QdBokRd2ahw",
  crawl_mode="Always",
)

Documentation

https://docs.vizlook.com

API

https://docs.vizlook.com/documentation/api-reference/search

Contributing

Feel free to submit pull requests. For larger-scale changes, though, it's best to open an issue first so we can deliberate on your plans.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vizlook-0.0.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vizlook-0.0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file vizlook-0.0.1.tar.gz.

File metadata

  • Download URL: vizlook-0.0.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.6 Darwin/23.3.0

File hashes

Hashes for vizlook-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cd635123dcbb8961f0a79bd668949253212680cac3dc7428084e41dde6aa15b4
MD5 37b03f6c55f97d32dda9ddc97f3bce07
BLAKE2b-256 f73cd2ef69288b09dd5ec38b18474678e4a0a49dda662583d20be73f5bda3a5e

See more details on using hashes here.

File details

Details for the file vizlook-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: vizlook-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.6 Darwin/23.3.0

File hashes

Hashes for vizlook-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 712348c9a83726783fe3c1a84955adfe7d32fa3e7f169dc8e8b027020b1f2d06
MD5 bf4f340cd022c82cb669f6cb5b2b90c8
BLAKE2b-256 ab64d88a20159f694debc8f754b688323f2bc22b1ca674792a04e59f5a7d4c8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page