The Dynamic Ads API allows advertisers to programmatically push domain listings to NamePros, where they'll be displayed in designated ad positions. This is ideal for:
All API requests require authentication via an API key.
Contact NamePros to obtain an API key with the following scopes:
np_ads_listings:read - Read campaigns and listingsnp_ads_listings:write - Create, update, and delete listingsInclude your API key in the XF-Api-Key header:
curl -H "XF-Api-Key: YOUR_KEY" \
https://www.namepros.com/api/v1/ads/campaigns
All API requests use the following base URL:
https://www.namepros.com/api/v1/
Create a campaign:
curl -X POST \
-H "XF-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"horizontal_logo_url": "https://example.com/logo-wide.png",
"vertical_logo_url": "https://example.com/logo-tall.png",
"theme": "#ff5500",
"logo_action": "https://example.com"
}' \
https://www.namepros.com/api/v1/ads/campaigns
Logo images are automatically downloaded, sanitized, and re-hosted on the NamePros CDN.
List your campaigns:
curl -H "XF-Api-Key: YOUR_API_KEY" https://www.namepros.com/api/v1/ads/campaigns
Create a new listing:
curl -X POST \
-H "XF-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "example.com",
"ad_expires_at": 1735689600,
"action_label": "Buy Now",
"action_url": "https://example.com/buy?utm_source=namepros"
}' \
https://www.namepros.com/api/v1/ads/campaign/1/listing
You can preview how your campaign will look on the site at:
https://www.namepros.com/ads/listings/{campaign_tag}.{campaign_id}/preview
For example:
https://www.namepros.com/ads/listings/YourCompany2024.123/preview
The preview page shows your campaign rendered at the actual ad sizes used on the site:
You must be logged in to view the preview. You can preview your own campaigns; staff can preview any campaign.
For API access, questions, or issues, contact the NamePros team.

