Metadata-Version: 2.5
Name: langchain-fastaf
Version: 0.1.0
Summary: LangChain tools for FastAF: SERP, news, jobs, Amazon, eBay and page-to-markdown APIs for AI agents.
Project-URL: Homepage, https://fastaf.co
Project-URL: Documentation, https://fastaf.co/docs/
Project-URL: Source, https://github.com/fastaf-co/fastaf-integrations
Author-email: FastAF <dev@fastaf.co>
License-Expression: MIT
License-File: LICENSE
Keywords: ai-agents,fastaf,langchain,scraping,serp,web-search,x402
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Requires-Dist: fastaf-sdk<0.2,>=0.1.0
Requires-Dist: httpx>=0.27
Requires-Dist: langchain-core<2,>=0.3
Provides-Extra: test
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# langchain-fastaf

LangChain tools for [FastAF](https://fastaf.co): Google SERP, Google News, Google Jobs, Amazon, eBay and page-to-Markdown APIs built for AI agents.

## Install

```bash
pip install -U langchain-fastaf
export FASTAF_API_KEY="your-key"   # get one at https://fastaf.co/signup
```

Free tier: 2 calls after email verification. Pay per call with x402 from $0.003. See [fastaf.co](https://fastaf.co).

## Tools

| Class | Endpoint | Use |
|---|---|---|
| `FastAFSearch` | `/v1/serp` | Google web results |
| `FastAFNews` | `/v1/news` | Google News |
| `FastAFJobs` | `/v1/jobs` | Google Jobs |
| `FastAFAmazon` | `/v1/amazon` | Amazon search / product by ASIN |
| `FastAFEbay` | `/v1/ebay` | eBay search, sold listings, items (by URL) |
| `FastAFPageToMarkdown` | `/v1/scrape` | Any web page as Markdown |

## Usage

```python
from langchain_fastaf import FastAFSearch, get_all_tools

search = FastAFSearch()
print(search.invoke({"query": "x402 payments", "results": 3}))

# With an agent
from langchain.agents import create_agent
agent = create_agent("openai:gpt-4.1-mini", tools=get_all_tools())
agent.invoke({"messages": [{"role": "user", "content": "Latest news on x402?"}]})
```

## Development

```bash
pip install -e ".[test]" && pytest
```

Docs: https://fastaf.co/docs/ · License: MIT
