Skip to main content

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.

PyPI version Python 3.9+ License: MIT

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"},
)

Development

Regenerating the SDK

The SDK is auto-generated from the Fiber AI OpenAPI spec. To regenerate:

# Install the generator
pip install openapi-python-client

# Run the generate script
./scripts/generate.sh

Requirements

Links

License

MIT — see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fiberai-0.0.1.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fiberai-0.0.1-py3-none-any.whl (14.6 MB view details)

Uploaded Python 3

File details

Details for the file fiberai-0.0.1.tar.gz.

File metadata

  • Download URL: fiberai-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fiberai-0.0.1.tar.gz
Algorithm Hash digest
SHA256 44ee139c7f3927f00f69cdcac2c8cb0ed1959647d07709138a071ba05d52b81a
MD5 8fe209aeade70d197db6ef5441210aa0
BLAKE2b-256 f316414977e6ced7cac8cad5c4b70cd86ae633d4cfc842c5cf939b5aef798f87

See more details on using hashes here.

Provenance

The following attestation bundles were made for fiberai-0.0.1.tar.gz:

Publisher: publish.yml on fiber-ai/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fiberai-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fiberai-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fiberai-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22e28c71da4dca31ef3fec98f36d8f2e1d02f9baf6fcdbb505f5a5489e2d2d54
MD5 4db2ad2453186fd3a6611be7932f5a91
BLAKE2b-256 39876cc305d13db1a11e385c3d79e114808ca9430e8ee5a0083ae6db4a17fcec

See more details on using hashes here.

Provenance

The following attestation bundles were made for fiberai-0.0.1-py3-none-any.whl:

Publisher: publish.yml on fiber-ai/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page