Make your first API call
Create a key, try an endpoint in the API Explorer, then call the API from your own code.
Three steps, about five minutes.
1. Create an API key¶
- Open API Keys in the dashboard and choose Create Key.
- Give the key a name you will recognise later (for example Production — Main), tick the Permissions (the APIs this key may call) and choose when it Expires.
- Choose Create Key, then copy the key straight away: it is shown only once. InfoTrie stores it hashed and cannot show it again.
Details: API keys.
2. Try an endpoint in the API Explorer¶
- Open API Explorer.
- Pick an endpoint from the list (search by path or description, or filter by category).
- Fill in the parameters marked required, paste your key in the API key field, and choose Send Request.
The response appears on the right with its status, timing and size. The cURL box shows the same request as a command line, with a placeholder instead of your key. Explorer requests count against your quota like any other call.
Details: API Explorer.
3. Call the API from your code¶
Send your key in the X-API-Key header to https://api.infotrie.com:
export INFOTRIE_API_KEY="itk_live_…" # your key
curl -H "X-API-Key: $INFOTRIE_API_KEY" "https://api.infotrie.com/api/…"
Copy the exact path and parameters from the Explorer's cURL box. Every endpoint, its parameters and its responses are in the API reference.
Keep the key out of your source code and out of anything that runs in a browser: read it from an environment variable or a secrets manager. See Authentication and limits.