List Articles
curl --request GET \
--url https://api.launchmystore.io/api/v1/blogs/:blog_id/articles.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/blogs/:blog_id/articles.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/:blog_id/articles.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/:blog_id/articles.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/:blog_id/articles.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/:blog_id/articles.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/blogs/:blog_id/articles.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.articles": [
{
"blogId": "<string>",
"id": "<string>",
"blogsPageId": "<string>",
"name": "<string>",
"title": "<string>",
"handle": "<string>",
"content": "<string>",
"image": "<string>",
"tags": [
{}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"data.pagination": {}
}Blogs
List Articles
Retrieve a list of articles in a blog
GET
/
api
/
v1
/
blogs
/
:blog_id
/
articles.json
List Articles
curl --request GET \
--url https://api.launchmystore.io/api/v1/blogs/:blog_id/articles.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/blogs/:blog_id/articles.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/:blog_id/articles.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/:blog_id/articles.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/:blog_id/articles.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/:blog_id/articles.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/blogs/:blog_id/articles.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.articles": [
{
"blogId": "<string>",
"id": "<string>",
"blogsPageId": "<string>",
"name": "<string>",
"title": "<string>",
"handle": "<string>",
"content": "<string>",
"image": "<string>",
"tags": [
{}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"data.pagination": {}
}List Articles
Returns a paginated list of articles within a specific blog, ordered by creation date, newest first.Request
curl -X GET "https://api.launchmystore.io/api/v1/blogs/blog_abc123/articles.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
read_content scope.
Path Parameters
string
required
The unique blog ID
Query Parameters
integer
default:"1"
Page number for pagination
integer
default:"50"
Number of items per page
Response
The response uses the standard envelope. Articles are returned underdata.articles, with offset-based pagination under data.pagination.
integer
HTTP status code (e.g.
200)string
Result state, e.g.
successarray
Array of article objects
Show Article Object
Show Article Object
object
Pagination information:
page, limit, total, hasMoreExample Response
{
"status": 200,
"state": "success",
"message": null,
"data": {
"articles": [
{
"blogId": "art_xyz789",
"id": "739204",
"blogsPageId": "blog_abc123",
"name": "Summer Product Launch Announcement",
"title": "Summer Product Launch Announcement",
"handle": "summer-product-launch-announcement",
"content": "<p>We're excited to announce our new summer collection...</p>",
"image": "https://cdn.launchmystore.io/images/summer-launch.jpg",
"tags": ["summer", "announcements", "new-arrivals"],
"createdAt": "2024-03-14T09:00:00.000Z",
"updatedAt": "2024-03-15T10:00:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 24,
"hasMore": false
}
}
}
Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
FORBIDDEN | App doesn’t have read_content scope |
NOT_FOUND | Blog with the specified ID does not exist |