Skip to main content

XSearchLane

Realtime X search for agents — natural-language answers, handle/date filters, and citations via Talocode Cloud.

Part of Talocode — open tools people trust; hosted power under docs.talocode.site.

Cloud API https://api.talocode.site → /v1/xsearchlane/*
Python pip install talocode-xsearchlane (this package)
Node npm install @talocode/xsearchlane
MCP npx @talocode/xsearchlane mcp
Repo github.com/talocode/xsearchlane
License MIT

Why XSearchLane?

Agents need live social signal, not only static web pages:

  • Realtime X search — keyword/semantic questions over posts and threads
  • Filters — allowed/excluded handles, date ranges, optional media understanding
  • Citations when the upstream provider returns them
  • Credit metering on Talocode Cloud (15 search / 40 research)
  • Same contract — Python SDK, npm SDK, CLI, MCP, and HTTP

Local Node tooling can also call an upstream X search provider directly with XAI_API_KEY. This Python package targets the hosted Talocode API surface.


Install

pip install talocode-xsearchlane

Requires Python 3.10+. Stdlib only (no extra runtime deps).


Quickstart

import os
from xsearchlane import XSearchLaneClient

client = XSearchLaneClient(
    api_key=os.environ["TALOCODE_API_KEY"],
    # base_url defaults to https://api.talocode.site
)

result = client.search(query="developers complaining about AI code review")
print(result.get("answer"))
for c in result.get("citations", []):
    print(c.get("url"), c.get("title"))

brief = client.research(query="AI coding agent pain points")
print(brief.get("answer"))

Environment

Variable Default Purpose
TALOCODE_API_KEY — Bearer token (required for POST)
TALOCODE_BASE_URL https://api.talocode.site API host
export TALOCODE_API_KEY=your_key
export TALOCODE_BASE_URL=https://api.talocode.site

Auth header:

Authorization: Bearer $TALOCODE_API_KEY

API surface / credits

Method Path Credits
GET /v1/xsearchlane/health 0
GET /v1/xsearchlane/pricing 0
GET /v1/xsearchlane/capabilities 0
POST /v1/xsearchlane/search 15
POST /v1/xsearchlane/research 40

Client methods

client.health()
client.pricing()
client.capabilities()
client.search(
    query=...,
    allowed_handles=None,
    excluded_handles=None,
    from_date=None,  # YYYY-MM-DD
    to_date=None,
    enable_image_understanding=None,
    enable_video_understanding=None,
)
client.research(query=..., allowed_handles=None, from_date=None, to_date=None)
  • XSearchLaneError — raised on HTTP failures (status, code when present)
  • create_xsearchlane_client(...) — factory alias

CLI

xsearchlane health
xsearchlane pricing
xsearchlane capabilities
xsearchlane search --query "AI agent sandbox"
xsearchlane research --query "review bottleneck AI PRs"
xsearchlane search --query "MCP tools" --handles simonw --from 2026-07-01

Node / MCP / full product

npm install -g @talocode/xsearchlane
xsearchlane search --query "..."
xsearchlane mcp

OpenCode MCP example: see repo examples/opencode.json and docs/MCP.md.

Repo: github.com/talocode/xsearchlane


Package Install
XSearchLane (this package) pip install talocode-xsearchlane · npm i @talocode/xsearchlane
XProLane pip install talocode-xprolane · npm i @talocode/xprolane
SearchLane pip install talocode-searchlane · npm i @talocode/searchlane
StackLane pip install talocode

Talocode ecosystem

Product Repo Notes
XSearchLane talocode/xsearchlane (this package) realtime X search
XProLane talocode/xprolane X Pro setup planner
SearchLane talocode/searchlane Agent web search & research
Tera talocode/tera Hosted writing/coding API
Codra talocode/codra Coding agent runtime
StackLane talocode/stacklane Cloud control plane
GateLane talocode/gatelane Policy / gate tooling
ContextLane talocode/contextlane Context infrastructure
ScreenLane talocode/screenlane Screen/agent UI tooling
MemoryLane talocode/memorylane Memory for agents
Tradia talocode/tradia Trading tooling
DevTool talocode/devtool Developer utilities
Agent Browser talocode/agent-browser Browser automation
InvoiceLane talocode/invoicelane Invoicing
GeoLane talocode/geolane Geo visibility
ClipLoop talocode/cliploop Short-form video

More: github.com/talocode · talocode.site · docs.talocode.site


License

MIT © Talocode

Metadata

Release files for talocode-xsearchlane 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for talocode-xsearchlane 0.1.0
File Size Uploaded
talocode_xsearchlane-0.1.0.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for talocode-xsearchlane 0.1.0
File Interpreter ABI Platform
talocode_xsearchlane-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / talocode_xsearchlane-0.1.0.tar.gz

Download URL talocode_xsearchlane-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
701bbd2c22024c171e01aacd2538d1fca2b3ff2c0ab80a0b8ede919b9ac48e48
BLAKE2b-256 checksum
How to use checksums
ffa4a6e7c2492ae6e9a60177b008152cfeac8b9e9fc559794760a09667c12f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / talocode_xsearchlane-0.1.0-py3-none-any.whl

Download URL talocode_xsearchlane-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a3a26ddd4823bdef75f56f63a1312a7f5efbf50d4c6746444710b4cb61d4502
BLAKE2b-256 checksum
How to use checksums
671004c57df0c6cb1d1435f29bf078fb79d821f7bb328d6c84d35815a6a2dbc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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