This is a series of articles dedicated to demonstrating how to get acquainted with Openprovider Domains API methods.
This is a second article in a series in which we are going to cover Domain price retrieval. To get more information about our API in general, please use our documentation portal as your reference.

GET {base_url}/domains/prices
REQUEST VALUES↓
Name |
Type |
Values |
Description |
---|---|---|---|
domain | string | Any combination of domain name and extension offered by Openprovider |
Required Domain and extension for which you're retrieving price |
additional_data | string |
idnScript is the only type of additionalData accepted in this API call. Values list |
idnScript required for checking domain names containing non-ASCII characters |
operation | string |
|
Type of domain operation you'd like to retrieve price for |
period | numeric | 1(default) - 10 |
Any registration period applicable for this extension. Used in conjunction with create operation only. |
REQUEST EXAMPLE↓
RESPONSE EXAMPLE↓
RESPONSE VALUES↓
Name |
Type |
Values |
Description |
---|---|---|---|
price |
string |
array of elements |
Amounts in product and reseller currency |
is_premium | boolean | 0 or 1 | Indicates, whether a domain is premium and has a higher than standard price or not. |
TIP: It's a best practice to retrieve domain price before any billable operation you're about to commit - there are many elements involved in domain price calculation, ranging from currency conversion rates to your personal discounts and promotions. Price you've retrieved today may differ from the one you've retrieved yesterday.