List Products
curl --request GET \
--url https://api.launchmystore.io/api/v1/products.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/products.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/products.json', 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.launchmystore.io/api/v1/products.json",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/products.json"
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.launchmystore.io/api/v1/products.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/products.json")
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{
"products": [
{
"id": 123,
"title": "<string>",
"handle": "<string>",
"body_html": "<string>",
"vendor": "<string>",
"product_type": "<string>",
"published_scope": "<string>",
"variants": [
{}
],
"images": [
{}
],
"created_at": "<string>",
"updated_at": "<string>"
}
]
}Products
List Products
Retrieve a list of products
GET
/
api
/
v1
/
products.json
List Products
curl --request GET \
--url https://api.launchmystore.io/api/v1/products.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/products.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/products.json', 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.launchmystore.io/api/v1/products.json",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/products.json"
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.launchmystore.io/api/v1/products.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/products.json")
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{
"products": [
{
"id": 123,
"title": "<string>",
"handle": "<string>",
"body_html": "<string>",
"vendor": "<string>",
"product_type": "<string>",
"published_scope": "<string>",
"variants": [
{}
],
"images": [
{}
],
"created_at": "<string>",
"updated_at": "<string>"
}
]
}List Products
Returns a paginated list of products in the store.Request
curl -X GET "https://api.launchmystore.io/api/v1/products.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Parameters
integer
default:"1"
Page number for pagination
integer
default:"50"
Number of items per page
string
Filter by status:
active, draft, archivedstring
Filter by exact product handle
string
Filter by a comma-separated list of product IDs
string
Filter by product title (case-insensitive partial match)
Response
Returns the products as a bare array under theproducts key. Money
fields are returned as decimal strings and IDs are numeric.
Pagination is communicated through the RFC 5988 Link response header,
which carries rel="next" and rel="previous" URLs when further pages
exist (e.g. <https://api.launchmystore.io/api/v1/products.json?limit=50&page=2>; rel="next").
The header X-LMS-Api-Version advertises the contract version.
array
Array of product objects
Show Product Object
Show Product Object
integer
Numeric product ID
string
Product title
string
URL-safe product handle
string
Product description (HTML)
string
Product vendor
string
Product type/category
string
Publication scope. Always
global. (The product body does not
return a status field — see Get Product.
You can still filter the list by status.)array
Array of product variants
array
Array of product images
string
Creation timestamp (ISO 8601)
string
Last update timestamp (ISO 8601)
Example Response
{
"products": [
{
"id": 482910,
"title": "Classic T-Shirt",
"handle": "classic-t-shirt",
"body_html": "<p>A comfortable cotton t-shirt.</p>",
"vendor": "MyBrand",
"product_type": "Apparel",
"published_scope": "global",
"variants": [
{
"id": 731204,
"title": "Small / Black",
"price": "25.00",
"sku": "TSHIRT-S-BLK",
"inventory_quantity": 50,
"position": 1
}
],
"images": [
{
"id": 1,
"src": "https://cdn.launchmystore.io/images/tshirt.jpg",
"position": 1
}
],
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-20T14:45:00.000Z"
}
]
}
⌘I