Chordian Search API for LangChain
langchain-chordian-search-api provides LangChain tools for Chordian's People & Companies Search API. It is separate from Chordian Knowledge Memory, which searches an organization's private knowledge rather than the external web.
What it provides
chordian_search_startstarts a company or people list-building workflow.chordian_search_statusreads workflow status and results bythread_id.chordian_search_continueraises the target for an existing search.chordian_search_stopcancels an in-flight search.
Start and continue responses are asynchronous; the tools return the API response and do not poll or retry automatically. Search API calls may be metered. The API docs say list building is charged per matched record, but do not state exact prices. Review your account's billing terms before enabling calls.
Requirements
- Python 3.11 or newer.
- A Chordian platform API key (
ck_live_...) with Search API access. - HTTPS for remote API endpoints. Plain HTTP is permitted only for loopback tests.
The key is sent only in the x-api-key header. It is not placed in URLs, tool arguments, or return values. Redirects are not followed, which prevents forwarding the key to another host. Network errors are not retried automatically, to avoid duplicate metered POST requests.
Install and configure
python -m pip install langchain-chordian-search-api
export CHORDIAN_SEARCH_API_ENDPOINT="https://api.chordian.ai"
read -r -s -p 'Chordian Search API key: ' CHORDIAN_SEARCH_API_KEY
export CHORDIAN_SEARCH_API_KEY
PowerShell:
$env:CHORDIAN_SEARCH_API_ENDPOINT = "https://api.chordian.ai"
$secret = Read-Host 'Chordian Search API key' -AsSecureString
$env:CHORDIAN_SEARCH_API_KEY = [System.Net.NetworkCredential]::new('', $secret).Password
Remove-Variable secret
Do not commit real keys or paste them into prompts. Use a least-privilege key and an approved expiration.
Use the tools
Creating the tools does not make a network request, but it requires an explicit application-level billing opt-in:
from langchain_chordian_search_api import create_search_tools
tools = create_search_tools(allow_metered_calls=True)
Call the start tool only after the user approves the potential charge. total_target is required and is capped at 500 by this integration as a guard against unexpectedly large requests:
start = next(tool for tool in tools if tool.name == "chordian_search_start")
response = await start.ainvoke(
{
"search_type": "company",
"prompt": "Find Series B SaaS companies in the US",
"search_mode": "fast",
"total_target": 25,
}
)
Pass the returned thread_id to chordian_search_status when you need progress or results. Call chordian_search_continue only after approval for any additional charges. No background polling is started by the package.
API behavior
The integration follows Chordian's documented Search API routes:
- Company start:
POST /api/v1/search/workflow/start. - People start:
POST /api/v1/search/workflow/people/start. - Company status:
GET /api/v1/search/workflow/status/{thread_id}; continue:POST /api/v1/search/workflow/continue; stop:POST /api/v1/search/workflow/stop/{thread_id}. - People status:
GET /api/v1/search/workflow/people/status/{thread_id}; continue:POST /api/v1/search/workflow/people/continue; stop:POST /api/v1/search/workflow/people/stop/{thread_id}.
See the Search API overview, getting started, and API reference.
Test and build
python -m pip install -e ".[test]" build
python -m pytest -q
python -m build
Tests use a local fake HTTP server. They do not call Chordian, require a real key, or create billable searches.
License
MIT. See LICENSE.
Metadata
Release files for langchain-chordian-search-api 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_chordian_search_api-0.1.0.tar.gz | 9.2 kB | With provenance | Details for langchain_chordian_search_api-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_chordian_search_api-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_chordian_search_api-0.1.0-py3-none-any.whl |
Total release size: 16.4 kB
Release files / langchain_chordian_search_api-0.1.0.tar.gz
| Download URL | langchain_chordian_search_api-0.1.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86ea6df538d444bcaed5bcf0b524f03dfed3aad9c110055834ec11998dea5cbb
|
|
BLAKE2b-256 checksum How to use checksums |
e42fc3de680dd1ef945e29da5c98861c6addc7064ee4a1a9dd56a0dc6b5eff0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / langchain_chordian_search_api-0.1.0-py3-none-any.whl
| Download URL | langchain_chordian_search_api-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d7e908b815a375ebcfaea78c13509451b6ebbbfc50fd8e3608150a8983ae53c
|
|
BLAKE2b-256 checksum How to use checksums |
90a5cb17d96e745d5dd2f308acd165fca0531d803d44c2c203bfb3712ff9f6bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for langchain-chordian-search-api 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for langchain_chordian_search_api-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.