Quickstart
Obtain Your API Key
To get started, you’ll need an API key to authenticate requests. Sign up or log in at insight.apeek.io, then go to the API Access section and click Generate Key. This key is your secure credential for all API calls—treat it like a password and never share it publicly. Once you have your key, you can begin querying data instantly using simple HTTP requests or your preferred programming language. The documentation includes code samples, examples, and best practices to help you move from sandbox to production quickly.
Making Your First API Request
HTTPS Request
curl "https://api.apeek.io/constituents/series=SP500" -H "X-API-Key: YOUR_API_KEY"
Python Request
import requests
url = "https://api.apeek.io/constituents/series=SP500"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {"limit": 1000, "offset": 0}
response = requests.get(url, headers=headers, params=params)
data = response.json()
Understanding the API Response
JSON Response
{
"latency": 0.23,
"limit": 1000,
"offset": 0,
"rows": [
{
"name": "APPLE INC",
"sector": "Information Technology",
"series": "SP500",
"ticker": "AAPL"
},
{
"name": "AMAZON COM INC",
"sector": "Consumer Discretionary",
"series": "SP500",
"ticker": "AMZN"
},
{
"name": "MICROSOFT CORP",
"sector": "Information Technology",
"series": "SP500",
"ticker": "MSFT"
},
...
{
"name": "NVIDIA CORP",
"sector": "Information Technology",
"series": "SP500",
"ticker": "NVDA"
}
],
"total_rows": 503
}