Official Python SDK for Fiber AI API
Project description
Fiber AI Python SDK
Official Python SDK for the Fiber AI API. Auto-generated from the OpenAPI specification.
Installation
pip install fiberai
Quick Start
from fiberai import Client
from fiberai.api.search import company_search
from fiberai.models import CompanySearchBody
# Create a client
client = Client(base_url="https://api.fiber.ai")
# Search for companies
body = CompanySearchBody.from_dict({
"apiKey": "YOUR_API_KEY",
"searchParams": {
"standardIndustries": ["Software"],
"employeeCount": {"gte": 50, "lte": 500}
},
"pageSize": 10,
})
response = company_search.sync(client=client, body=body)
Async Usage
Every endpoint supports both sync and async usage out of the box:
import asyncio
from fiberai import Client
from fiberai.api.search import company_search
from fiberai.models import CompanySearchBody
async def main():
client = Client(base_url="https://api.fiber.ai")
body = CompanySearchBody.from_dict({
"apiKey": "YOUR_API_KEY",
"searchParams": {
"standardIndustries": ["Software"],
},
"pageSize": 10,
})
response = await company_search.asyncio(client=client, body=body)
print(response)
asyncio.run(main())
Detailed Responses
If you need access to status codes, headers, or the raw response, use the _detailed variants:
from fiberai.api.search import company_search
# Sync
response = company_search.sync_detailed(client=client, body=body)
print(response.status_code)
print(response.headers)
print(response.parsed) # The parsed response body
# Async
response = await company_search.asyncio_detailed(client=client, body=body)
Available API Modules
The SDK covers all Fiber AI API endpoints, organized by category:
| Module | Description |
|---|---|
fiberai.api.search |
Company, people, investor, investment, and job posting search |
fiberai.api.company_info |
Get company details by LinkedIn URL or domain |
fiberai.api.contact_details |
Fetch emails, phone numbers, and contact details |
fiberai.api.live_fetch |
Live enrichment for companies and people |
fiberai.api.kitchen_sink |
Combined enrichment endpoints |
fiberai.api.google_maps |
Google Maps business search |
fiberai.api.ai_research |
AI-powered domain lookup and research |
fiberai.api.exclusions |
Manage company and people exclusion lists |
fiberai.api.saved_search |
Saved search management |
fiberai.api.validation |
Email and phone validation |
fiberai.api.email_lookup |
Email-to-LinkedIn reverse lookup |
fiberai.api.account |
Organization credits and account info |
fiberai.api.enums |
Available enum values (industries, seniority, etc.) |
fiberai.api.typeaheads |
Typeahead/autocomplete endpoints |
Configuration
Custom Timeout
import httpx
from fiberai import Client
client = Client(
base_url="https://api.fiber.ai",
timeout=httpx.Timeout(30.0), # 30 second timeout
)
Custom Headers
client = Client(
base_url="https://api.fiber.ai",
headers={"X-Custom-Header": "value"},
)
Links
- Fiber AI — Main website
- API Documentation — Full API docs
- TypeScript SDK — TypeScript/JavaScript SDK
- Get API Key — Sign up for an API key
License
MIT — see LICENSE for details.
Project details
Release history Release notifications | RSS feed
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 fiberai-0.0.6.tar.gz.
File metadata
- Download URL: fiberai-0.0.6.tar.gz
- Upload date:
- Size: 4.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c71b167e8a2a1b2c04c264abdfc6263e792a4dde20274cb7ce7885c992ebba18
|
|
| MD5 |
c686b7c15b2774193c17a27d63c614ad
|
|
| BLAKE2b-256 |
2246021a358f6afe0999e9b12c0197dc5e7d5de52cb334b40cc7835a11085e2a
|
Provenance
The following attestation bundles were made for fiberai-0.0.6.tar.gz:
Publisher:
publish.yml on fiber-ai/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fiberai-0.0.6.tar.gz -
Subject digest:
c71b167e8a2a1b2c04c264abdfc6263e792a4dde20274cb7ce7885c992ebba18 - Sigstore transparency entry: 1243522430
- Sigstore integration time:
-
Permalink:
fiber-ai/python-sdk@fa2d5d42013f0212399d22eb7474e7dc2b3fa391 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/fiber-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fa2d5d42013f0212399d22eb7474e7dc2b3fa391 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fiberai-0.0.6-py3-none-any.whl.
File metadata
- Download URL: fiberai-0.0.6-py3-none-any.whl
- Upload date:
- Size: 16.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de4a215bcca157a44267c539630b104f8e10938df67c7e703e7c37480fc13bc
|
|
| MD5 |
3de818cae7cf7113970f28feabf06c42
|
|
| BLAKE2b-256 |
b0e49f068a1300f555eedfeda6c99d1cecba0b9ff70b5245150298297690dd6c
|
Provenance
The following attestation bundles were made for fiberai-0.0.6-py3-none-any.whl:
Publisher:
publish.yml on fiber-ai/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fiberai-0.0.6-py3-none-any.whl -
Subject digest:
5de4a215bcca157a44267c539630b104f8e10938df67c7e703e7c37480fc13bc - Sigstore transparency entry: 1243522459
- Sigstore integration time:
-
Permalink:
fiber-ai/python-sdk@fa2d5d42013f0212399d22eb7474e7dc2b3fa391 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/fiber-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fa2d5d42013f0212399d22eb7474e7dc2b3fa391 -
Trigger Event:
push
-
Statement type: