Python SDK

Install and start using the Python SDK.

Intro

The Tabstack API SDK provides access to the Tabstack API REST APIs.

Production API for web content extraction, transformation, research, and automation. Organize your workflows with semantic endpoints for extracting structured data, generating AI-powered content, conducting research, and automating browser tasks.

Installation

Add the SDK to your project from its folder, with whichever package manager your project uses. Give each tool a path containing a slash, such as ../tabstack-api — a bare folder name is looked up on PyPI instead, and resolves to whatever project holds that name there:

Terminal
pip install <path-to-sdk>
Terminal
uv add <path-to-sdk>
Terminal
poetry add <path-to-sdk>

Quick Start

Synchronous client

Construct TabstackApiClient with keyword arguments, and call close() when you are done. Every argument is optional.

Python
from tabstack_api import TabstackApiClient

client = TabstackApiClient(bearer_auth="YOUR_BEARER_TOKEN")

client.close()

Alternatively, scope it — with TabstackApiClient(...) as client: closes the pool on exit.

Asynchronous client

AsyncTabstackApiClient mirrors TabstackApiClient with identical method names, and every endpoint method is a coroutine. It takes the same arguments, with some differences — for example, the transport argument is custom_async_http_client.

Python
from asyncio import run

from tabstack_api import AsyncTabstackApiClient


async def main() -> None:
    client = AsyncTabstackApiClient(bearer_auth="YOUR_BEARER_TOKEN")
    await client.aclose()


run(main())

Alternatively, scope it — async with AsyncTabstackApiClient(...) as client: closes the pool on exit.

On this page