Skip to main content

ToolTrace Python SDK

Official Python client for the ToolTrace web intelligence API. Extract content, metadata, links, structured data, SEO diagnostics, and technology stacks from any public webpage.

Install

pip install tooltrace

Quick start

from tooltrace import ToolTrace

client = ToolTrace(api_key="your-key")

# Extract clean Markdown from a webpage
result = client.extract("https://example.com", include=["markdown", "metadata"])
print(result.markdown)
print(result.metadata.title)

# Detect technology stack
tech = client.tech_stack("https://example.com")
print(tech)

# Run an SEO audit
audit = client.seo_audit("https://example.com")
print(f"Score: {audit.score}/100")
for check in audit.checks:
    if not check.passed:
        print(f"  {check.severity}: {check.message}")

Async support

from tooltrace import AsyncToolTrace

async with AsyncToolTrace(api_key="your-key") as client:
    result = await client.extract("https://example.com")
    print(result.markdown)

Available methods

Method Description Credits
client.extract(url) Markdown, text, metadata, links, schema, sections 1-5
client.metadata(url) Title, description, Open Graph, Twitter cards 1-5
client.links(url) Internal/external links with anchor text 1-5
client.schema(url) JSON-LD structured data 1-5
client.seo_audit(url) SEO score with weighted checks 1-5
client.tech_stack(url) CMS, frameworks, analytics, CDN, hosting 1-5
client.sitemap(url) Parse XML sitemaps 1-5

All methods accept render="never" (1 credit, static), render="auto" (default), or render="always" (5 credits, browser).

Get an API key

Sign up free at tooltrace.io/signup. 1,000 credits/month on the free plan.

License

MIT

Download files

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

Source Distribution

tooltrace-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

tooltrace-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file tooltrace-0.1.0.tar.gz.

File metadata

  • Download URL: tooltrace-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tooltrace-0.1.0.tar.gz
Algorithm Hash digest
SHA256 232d629a50d81440eac1158842ba7aa65dcff530c75c081e19bb1aed01bc74ee
MD5 0b3ee7e505700fe8093553b8042f4d73
BLAKE2b-256 9a1983de101ecbefde5f6b451f93281d5ea4df78373bf0e77c9ae93583a33a26

See more details on using hashes here.

File details

Details for the file tooltrace-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tooltrace-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tooltrace-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e29d76f72e8010b9b33f6747812280aee9276062198c0dc647b9c981eec2faea
MD5 60eb377c6798365032324b7012a8831b
BLAKE2b-256 7fbc6b14f9a4f91a66ad2d34a90e85cb6b7a0583c727c1622942ea8372191cb0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page