All API requests must include your API key in the x-api-key header.
Getting an API Key
- Sign up at app.rivermarkets.com
- Go to Settings → API Keys
- Click Create API Key
- Copy and securely store your key — it will only be shown once
Using Your API Key
import requests
headers = {"x-api-key": "your_api_key"}
response = requests.get(
"https://api.rivermarkets.com/v1/markets/search",
headers=headers,
params={"q": "bitcoin"}
)
Never share your API key or commit it to source control. Use environment variables to store it securely.