Quick Start
Make your first HikerAPI request in 5 minutes.
1. Get your API key
Sign up at hikerapi.com — 100 free requests included, no credit card required. Grab your token from the dashboard.
2. Make a request
3. Example response
{
"pk": "173560420",
"username": "ronaldo",
"full_name": "Cristiano Ronaldo",
"is_private": false,
"is_verified": true,
"media_count": 3789,
"follower_count": 612000000,
"following_count": 582,
"biography": "..."
}
4. Paginate through followers
Most list endpoints return paginated results. Use end_cursor to get the next page:
from hikerapi import Client
cl = Client(token="YOUR_TOKEN")
followers = {}
end_cursor = None
while True:
chunk, end_cursor = cl.user_followers_chunk_gql(
user_id="173560420", end_cursor=end_cursor
)
followers.update({u["pk"]: u for u in chunk})
if not end_cursor:
break
print(f"Got {len(followers)} followers")
5. Export to CSV
import csv
from hikerapi import Client
cl = Client(token="YOUR_TOKEN")
user_ids = ["173560420", "12345678"]
with open("users.csv", "w", newline="") as f:
writer = csv.DictWriter(f, fieldnames=[
"pk", "username", "full_name", "is_private",
"is_verified", "follower_count", "following_count",
])
writer.writeheader()
for uid in user_ids:
user = cl.user_by_id_v1(uid)
writer.writerow({k: user.get(k) for k in writer.fieldnames})
What's next?
- Browse the API Reference for all 147 endpoints
- Check Rate Limits to optimize your integration
- See SDKs for language-specific clients