Skip to main content
GET
/
products
/
{id}
Get products
curl --request GET \
  --url https://api.qonversion.io/v3/products/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.qonversion.io/v3/products/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.qonversion.io/v3/products/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qonversion.io/v3/products/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
require 'uri'
require 'net/http'

url = URI("https://api.qonversion.io/v3/products/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.qonversion.io/v3/products/{id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.qonversion.io/v3/products/{id}")
.header("Authorization", "Bearer <token>")
.asString();
{
  "uid": "premium_monthly",
  "project_id": 12345,
  "type": 1,
  "apple_product_id": "com.app.premium_monthly",
  "google_product_id": "com.app.premium_monthly",
  "stripe_product_id": "prod_abc123",
  "duration": 1,
  "subscription_duration": "P1M",
  "created_at": 1665669916,
  "updated_at": 1665669916
}

Authorizations

Authorization
string
header
required

Use your Project Key from the Qonversion dashboard (Project Settings -> Project Keys -> Project Key).

Production keys have no prefix; keys prefixed with test_ target the sandbox environment.

Example (sandbox): Bearer test_PV77YHL7qnGvsdmpTs7gimsxUvY-Znl2 Example (production): Bearer JFPATc4VaaWYsfurml3qZ4zsmNw0VfWH

Path Parameters

id
string
required

Qonversion product UID

Response

Product retrieved

uid
string

Unique identifier of the Qonversion product

Example:

"premium_monthly"

project_id
integer

Numeric ID of the Qonversion project owning this product

Example:

12345

type
enum<integer>

Product type:

  • 0 = Subscription With Promo Period
  • 1 = Regular Subscription
  • 2 = Non-Recurring (Consumable)
  • 3 = Non-Consumable (Lifetime)
Available options:
0,
1,
2,
3
Example:

1

apple_product_id
string

Product identifier in App Store Connect

Example:

"com.app.premium_monthly"

google_product_id
string

Product identifier in Google Play Console

Example:

"com.app.premium_monthly"

google_base_plan_id
string

Base plan identifier in Google Play Console

Example:

"monthly-base"

stripe_product_id
string

Product identifier in Stripe

Example:

"prod_abc123"

duration
enum<integer>

Duration: 0 = Weekly, 1 = Monthly, 2 = Three Monthly, 3 = Six Monthly, 4 = Annual

Available options:
0,
1,
2,
3,
4
Example:

1

subscription_duration
enum<string>

ISO 8601 subscription duration string derived from duration. Server-computed: P1W for Weekly, P1M for Monthly, P3M for Three Monthly, P6M for Six Monthly, P1Y for Annual. Present only for subscription products (type 0 or 1).

Available options:
P1W,
P1M,
P3M,
P6M,
P1Y
Example:

"P1M"

created_at
integer

Creation timestamp (Unix seconds)

Example:

1665669916

updated_at
integer

Last-update timestamp (Unix seconds)

Example:

1665669916