List Blogs
curl --request GET \
--url https://api.launchmystore.io/api/v1/blogs.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/blogs.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/blogs.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/blogs.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/blogs.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/blogs.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/blogs.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{
"status": 123,
"state": "<string>",
"data.blogs": [
{
"blogsPageId": "<string>",
"id": "<string>",
"name": "<string>",
"title": "<string>",
"handle": "<string>",
"templateSuffix": "<string>",
"seoTitle": "<string>",
"seoDesc": "<string>",
"seoImage": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"data.pagination": {}
}Blogs
List Blogs
Retrieve a list of blogs
GET
/
api
/
v1
/
blogs.json
List Blogs
curl --request GET \
--url https://api.launchmystore.io/api/v1/blogs.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/blogs.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/blogs.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/blogs.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/blogs.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/blogs.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/blogs.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{
"status": 123,
"state": "<string>",
"data.blogs": [
{
"blogsPageId": "<string>",
"id": "<string>",
"name": "<string>",
"title": "<string>",
"handle": "<string>",
"templateSuffix": "<string>",
"seoTitle": "<string>",
"seoDesc": "<string>",
"seoImage": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"data.pagination": {}
}List Blogs
Returns a paginated list of blogs in the store. Blogs are containers for articles/posts.Request
curl -X GET "https://api.launchmystore.io/api/v1/blogs.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
read_content scope.
Parameters
Page number for pagination
Number of items per page
Response
The response uses the standard envelope. Blogs are returned underdata.blogs, with offset-based pagination under data.pagination. Results are ordered by creation date, newest first.
HTTP status code (e.g.
200)Result state, e.g.
successArray of blog objects
Show Blog Object
Show Blog Object
Unique blog ID (UUID)
Short numeric blog ID
Blog name
Blog title
URL-safe blog handle
Custom template suffix for theming
SEO title
SEO description
SEO image URL
Creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
Pagination information:
page, limit, total, hasMoreExample Response
{
"status": 200,
"state": "success",
"message": null,
"data": {
"blogs": [
{
"blogsPageId": "blog_abc123",
"id": "482915",
"name": "News",
"title": "News",
"handle": "news",
"templateSuffix": null,
"seoTitle": null,
"seoDesc": null,
"seoImage": null,
"createdAt": "2024-01-01T10:00:00.000Z",
"updatedAt": "2024-03-15T14:30:00.000Z"
},
{
"blogsPageId": "blog_def456",
"id": "517043",
"name": "Style Guide",
"title": "Style Guide",
"handle": "style-guide",
"templateSuffix": null,
"seoTitle": null,
"seoDesc": null,
"seoImage": null,
"createdAt": "2024-02-15T10:00:00.000Z",
"updatedAt": "2024-03-10T09:00:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 2,
"hasMore": false
}
}
}
Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
FORBIDDEN | App doesn’t have read_content scope |
⌘I