Skip to main content

foxapis-haystack

A Haystack Toolset that gives an Agent seven tools over FoxAPIs: sourced records about companies and people. Every answer comes back as JSON with its record links.

Tool What it returns
foxapis_enrich_person Identity and contact fields for a named person
foxapis_find_work_email The best work email at a company website, with its verification status
foxapis_company_snapshot A short company snapshot written for one decision (runs in the background; the tool waits)
foxapis_form_d_raises Recent private-placement raises filed on Form D
foxapis_layoffs US layoff notices
foxapis_executive_changes Executive appointments and departures from company filings
foxapis_federal_contract_awards US federal contract awards

Credits are spent from the account of your key; what each call costs is listed at https://foxapis.com/pricing . A call that finds nothing is not charged. A key with free starting credits: https://foxapis.com/trial

Install

pip install foxapis-haystack

Use

Set FOXAPIS_API_KEY (or pass api_key=Secret...). Then hand the toolset to an Agent:

from haystack.components.agents import Agent
from haystack.components.generators.chat import OpenAIChatGenerator
from haystack.dataclasses import ChatMessage
from haystack_integrations.tools.foxapis import FoxAPIsToolset

agent = Agent(
    chat_generator=OpenAIChatGenerator(),
    tools=FoxAPIsToolset(tool_names=["foxapis_layoffs", "foxapis_executive_changes"]),
)
result = agent.run(messages=[ChatMessage.from_user("Which executives left Example Corp this year?")])
print(result["messages"][-1].text)

tool_names keeps only the tools you list; leave it out for all seven. To call one tool without an Agent:

toolset = FoxAPIsToolset()
tool = next(t for t in toolset if t.name == "foxapis_layoffs")
print(tool.invoke(company="Example", limit=3))

The key is a Haystack Secret, so it is never written out when the toolset is serialized.

Not for

Do not use these records to decide on credit, employment, housing or insurance eligibility.

Develop

pip install -e . pytest haystack-ai
pytest

The tests mock the HTTP layer and need no key. The REST reference is https://foxapis.com/openapi.json .

License

MIT

Metadata

Release files for foxapis-haystack 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 foxapis-haystack 0.1.0
File Size Uploaded Provenance Actions
foxapis_haystack-0.1.0.tar.gz 7.5 kB With provenance Details for foxapis_haystack-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for foxapis-haystack 0.1.0
File Interpreter ABI Platform Actions
foxapis_haystack-0.1.0-py3-none-any.whl Python 3 none any Details for foxapis_haystack-0.1.0-py3-none-any.whl

Total release size: 15.2 kB

Release files / foxapis_haystack-0.1.0.tar.gz

Download URL foxapis_haystack-0.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a1d27e338cd0c9d7d634c4f12bebed0e90b46f7dd98adfe3c6c7705606863917
BLAKE2b-256 checksum
How to use checksums
1e1018844ae5a179ff188267b8176e0b1f55ed32d10bc9b9b74daba9cfabea0c
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 2, 2026.

Transparency log

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

Download URL foxapis_haystack-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b470ef3c042d008cd76076422567ee50c93ecef9aa37572b24f5880447187c12
BLAKE2b-256 checksum
How to use checksums
8e9a182bb97bb6af37f066476bc6d57e235e57b2520925a789fd530ce77477fa
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 2, 2026.

Transparency log

Security for foxapis-haystack 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.

Select from 2 files

Attestation for foxapis_haystack-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 2, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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