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,codewhen 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
Related packages
| 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
Links
- PyPI: https://pypi.org/project/talocode-xsearchlane/
- npm: https://www.npmjs.com/package/@talocode/xsearchlane
- Source: https://github.com/talocode/xsearchlane
- Docs: https://docs.talocode.site
- Issues: https://github.com/talocode/xsearchlane/issues
License
MIT © Talocode
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file talocode_xsearchlane-0.1.0.tar.gz.
File metadata
- Download URL: talocode_xsearchlane-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
701bbd2c22024c171e01aacd2538d1fca2b3ff2c0ab80a0b8ede919b9ac48e48
|
|
| MD5 |
41d8639a76d654f8fd5b18385f0ccca3
|
|
| BLAKE2b-256 |
ffa4a6e7c2492ae6e9a60177b008152cfeac8b9e9fc559794760a09667c12f13
|
File details
Details for the file talocode_xsearchlane-0.1.0-py3-none-any.whl.
File metadata
- Download URL: talocode_xsearchlane-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a3a26ddd4823bdef75f56f63a1312a7f5efbf50d4c6746444710b4cb61d4502
|
|
| MD5 |
edc80f92310af490a5a299ebf716cb7e
|
|
| BLAKE2b-256 |
671004c57df0c6cb1d1435f29bf078fb79d821f7bb328d6c84d35815a6a2dbc1
|