Getting Started
Quick Start Guide
This guide will help you make your first API call to the Aftermarket Portfolio API.
Prerequisites
- An API key (see Authentication)
Your First API Call
Let's start by retrieving your portfolio statistics with Get account stats:
curl -X GET 'https://api.afternic.com/v3/aftermarket/customers/my/stats' \
-H 'Authorization: sso-key YOUR_API_KEY:YOUR_API_SECRET' \
-H 'User-Agent: YourApp/1.0' \
-H 'X-Request-Id: 123e4567-e89b-12d3-a456-426614174000'This returns a stats array with one entry per day, each showing that day's views and leads counts:
{
"stats": [
{ "date": "2025-01-01T00:00:00Z", "views": 25, "leads": 5 }
]
}Your Customer ID
Every endpoint path includes a {customerId}, for example /v3/aftermarket/customers/{customerId}/domains.
Always set it to my.
Next Steps
- Explore Common Workflows: Check out typical use cases and patterns in Common Workflows
- Review the API Endpoints: Browse every operation in the API Reference
- Set Up Error Handling: Implement proper error handling for production use (see Errors)
- Implement Rate Limiting: Respect the API rate limits
Need Help?
- Review the Authentication guide for API key setup
- Review the User-Agent Header guide for best practices on sending appropriate headers
- Review the Example Request guide to try out your first request
- Review the Errors guide to understand error handling
- Review the Common Workflows guide for example requests and use cases
- Contact the Afternic Support Team for additional assistance