Getting Started

Quick Start Guide

This guide will help you make your first API call to the Aftermarket Portfolio API.

Prerequisites

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

  1. Explore Common Workflows: Check out typical use cases and patterns in Common Workflows
  2. Review the API Endpoints: Browse every operation in the API Reference
  3. Set Up Error Handling: Implement proper error handling for production use (see Errors)
  4. Implement Rate Limiting: Respect the API rate limits

Need Help?

On this page