Aegis Research SDK
Python SDK for the Aegis Research API - AI-powered web research as a service.
Installation
pip install aegis-research
Quick Start
from aegis_research import AegisResearch
# Initialize client
client = AegisResearch(api_key="res_your_api_key")
# Execute research
result = client.research("Best practices for API rate limiting in 2025")
print(result.summary)
for finding in result.key_findings:
print(f"- {finding}")
Features
- AI-Powered Research: Get synthesized research results, not just search links
- Multiple Depth Levels: Choose shallow (1 credit), medium (3 credits), or deep (10 credits) research
- Caching: Results cached for 24 hours to save credits
- Source Citations: Every claim backed by sources
Usage
Research
# Basic research
result = client.research("What is quantum computing?")
# Deep research with more sources
result = client.research(
"Impact of AI on healthcare in 2025",
depth="deep", # 10 credits, 10+ sources
use_cache=False # Force fresh research
)
# Include specific URLs
result = client.research(
"Compare FastAPI vs Flask",
urls=["https://fastapi.tiangolo.com", "https://flask.palletsprojects.com"]
)
Check Credits
status = client.credits()
print(f"Credits remaining: {status.credits_remaining}")
print(f"Tier: {status.tier}")
Research History
history = client.history(limit=10)
for item in history:
print(f"{item['id']}: {item['topic']}")
Get Previous Result
result = client.get_research("res_abc123")
Response Format
ResearchResult:
id: str # "res_abc123"
topic: str # Original query
status: str # "completed", "cached", "failed"
summary: str # Executive summary (2-3 sentences)
key_findings: List[str] # Main findings as bullet points
detailed_analysis: str # Full analysis
sources: List[Source] # Cited sources
source_count: int # Number of sources
depth: str # "shallow", "medium", "deep"
cached: bool # Whether result was cached
credits_used: int # Credits consumed
duration_ms: int # Time taken
Depth Levels
| Depth | Credits | Sources | Time | Use Case |
|---|---|---|---|---|
| shallow | 1 | 3 | ~2 min | Quick facts, verification |
| medium | 3 | 5-7 | ~5 min | General research, decisions |
| deep | 10 | 10+ | ~15 min | Comprehensive investigation |
Real-World Examples
The examples/ directory contains ready-to-use scripts for common use cases:
| Example | Description | Credits |
|---|---|---|
competitor_analysis.py |
Analyze competitors across multiple dimensions | ~12 |
content_research.py |
Research for blog posts with structured briefs | ~10 |
due_diligence.py |
Startup/company due diligence research | ~11 |
tech_decision.py |
Compare technologies for informed decisions | ~10 |
async_batch.py |
Research multiple topics in parallel | varies |
# Set your API key
export AEGIS_API_KEY=res_your_key
# Run an example
python examples/competitor_analysis.py
Error Handling
from aegis_research import (
AegisError,
AuthenticationError,
RateLimitError,
InsufficientCreditsError,
)
try:
result = client.research("topic")
except AuthenticationError:
print("Invalid API key")
except RateLimitError as e:
print(f"Rate limited: {e}")
except InsufficientCreditsError:
print("Not enough credits")
except AegisError as e:
print(f"API error: {e}")
Pricing
| Tier | Price | Credits/Month | Rate Limit |
|---|---|---|---|
| Free | $0 | 500 | 10/min |
| Starter | $9/mo | 2,000 | 20/min |
| Pro | $49/mo | 10,000 | 60/min |
Get your API key at aegisagent.ai/research
License
MIT
Metadata
Release files for aegis-research 0.1.1
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 | |
|---|---|---|---|---|
| aegis_research-0.1.1.tar.gz | 10.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aegis_research-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / aegis_research-0.1.1.tar.gz
| Download URL | aegis_research-0.1.1.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcb2a480cbb8f92fb3e5a88c5e5884124e3975aafdc3c71b014710c0e25e5100
|
|
BLAKE2b-256 checksum How to use checksums |
dbd88437f6d74658aa6d269965df6fccb0cff52a76e98ffcd15455a43c636cca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / aegis_research-0.1.1-py3-none-any.whl
| Download URL | aegis_research-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ed800368b7da7be1ee2ed6757c97512df7b3c6fe9412aedca89eeeb1392ab11
|
|
BLAKE2b-256 checksum How to use checksums |
a8eb0f6e35f19a8cee96bfad5335dfda7572ecb2f1c1765f6cb1156799c64e86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for aegis-research 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.