Authentication
Last updated
curl -X GET "https://api.alpha-lenz.com/api/public/v1/financial/companies" \
-H "X-API-Key: ak_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456"{
"data": [
{
"company_id": "KR7005930003",
"company_name": "Samsung Electronics",
"ticker": "005930"
}
]
}import requests
API_KEY = "ak_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456"
BASE_URL = "https://api.alpha-lenz.com/api/public/v1"
headers = {
"X-API-Key": API_KEY
}
response = requests.get(f"{BASE_URL}/financial/companies", headers=headers)
companies = response.json()const API_KEY = 'ak_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456';
const BASE_URL = 'https://api.alpha-lenz.com/api/public/v1';
const response = await fetch(`${BASE_URL}/financial/companies`, {
headers: {
'X-API-Key': API_KEY
}
});
const companies = await response.json();Authorization: Bearer <your_jwt_token>
Content-Type: application/json{
"name": "My Production Key",
"scopes": ["read:financial", "read:stock"],
"expires_at": "2025-12-31T23:59:59Z",
"rate_limit": 2000,
"rate_period": 3600
}{
"id": 1,
"name": "My Production Key",
"key": "ak_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456",
"key_prefix": "ak_aBcDeFgH",
"scopes": ["read:financial", "read:stock"],
"expires_at": "2025-12-31T23:59:59Z",
"created_at": "2024-01-15T10:30:00Z"
}HTTP/1.1 429 Too Many Requests
Retry-After: 3600
{
"detail": "Rate limit exceeded"
}