Getting Started
Authentication
All Calcs.com GIS API requests require authentication using an API key. This ensures secure access to geospatial datasets and tracks usage.
API Key Authentication
How It Works
API keys are passed in the request headers:
Code
Obtaining an API Key
- Contact Calcs.com - Reach out to our team to request API access
- Receive Credentials - You'll receive an API key for your organization
- Store Securely - Keep your API key confidential (use environment variables)
Never expose API keys in client-side code or public repositories. Always use server-side requests or environment variables.
Making Authenticated Requests
Using cURL
Code
Using JavaScript (Node.js)
Code
Using Python
Code
Best Practices
1. Environment Variables
Store API keys in environment variables, not in code.
2. Server-Side Only
Make API calls from your backend servers, not from browsers or mobile apps directly.
3. Use HTTPS Only
All API requests must use HTTPS.
Need Help?
Contact our support team:
- Email: [email protected]
- Support Portal: Calcs.com/support
Next: Quick Start Guide
Last modified on