# Friday Python SDK

Official Python SDK for the Friday API.

## Default Base URL

`FridayClient` now defaults to:

`https://api.fridaydata.com`

## Quick Start

```python
from friday_sdk import FridayClient

client = FridayClient(api_key="your-api-key")

status = client.get_status()
profile = client.get_profile(
    profile_url="https://www.linkedin.com/in/username/",
    realtime=False,
    prompt="Summarize key strengths",
    custom_schema='{"summary":"string"}',
)
```

## Endpoint Coverage

`FridayClient` now includes methods for all current API routes:

- Core: `get_profile`, `analyze_company`, `scrape`, `crawl`, `extract`, `search`, `get_status`
- Reddit: `reddit_search`, `reddit_subreddit_search`, `reddit_user_posts`
- X/Twitter: `scrape_twitter_profile`, `x_latest`, `x_search`, `x_news`, `x_about`, `x_whoami`
- LinkedIn Posts: `linkedin_profile_posts`, `linkedin_company_posts`
- Admin: `create_api_key`, `revoke_api_key`, `reset_rate_limits`
- User/JWT: `create_user_api_key`, `get_user_api_keys`, `get_subscription_plans`, `regenerate_user_api_key`

## JWT Endpoints

User endpoints require a Supabase JWT token:

```python
user_key = client.create_user_api_key(key_type="pro", jwt_token="<supabase-jwt>")
keys = client.get_user_api_keys(jwt_token="<supabase-jwt>")
new_key = client.regenerate_user_api_key(old_key="old_api_key", jwt_token="<supabase-jwt>")
```
