View post details
curl --request GET \
--url https://dashboard.launchpointhq.com/api/v1/posts/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://dashboard.launchpointhq.com/api/v1/posts/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://dashboard.launchpointhq.com/api/v1/posts/{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://dashboard.launchpointhq.com/api/v1/posts/{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 => [
"x-api-key: <api-key>"
],
]);
$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://dashboard.launchpointhq.com/api/v1/posts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dashboard.launchpointhq.com/api/v1/posts/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.launchpointhq.com/api/v1/posts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"title": "<string>",
"description": "<string>",
"descriptionFetchedAt": 123,
"platform": "<string>",
"url": "<string>",
"thumbnail": "<string>",
"mediaUrl": "<string>",
"creator": "<string>",
"account": {
"handle": "<string>",
"bio": "<string>",
"avatarUrl": "<string>",
"profileFetchedAt": 123
},
"uploadedAt": 123,
"createdAt": 123,
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"bookmarks": 123,
"engagementRate": "<string>",
"earnings": 123,
"paid": true,
"lastPaidAt": 123,
"lastSyncedAt": 123,
"contract": {
"id": "<string>",
"name": "<string>",
"contractorName": "<string>",
"contractorId": "<string>",
"status": "<string>",
"isGhostHandle": true
},
"program": {
"id": "<string>",
"name": "<string>",
"status": "<string>"
},
"creatorInfo": {
"id": "<string>",
"name": "<string>",
"profileImageUrl": "<string>"
},
"awardedBonuses": [
"<string>"
],
"bonusAmount": 123,
"payment": {
"state": "paid",
"currency": "USD",
"earnedCents": 123,
"billedCents": 123,
"creditedCents": 123,
"invoiceIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"lastCreditedAt": 123
}
}
}Posts
View post details
Get full details for one post/video.
The response includes metrics, engagement data, payment status, and related contract/program information.
description is the post’s caption. For an Instagram post on an account connected to Launchpoint, each metrics read replaces it with the current caption, so an edit by the creator appears after the next read. descriptionFetchedAt is the time of the read that returned it.
account is the social account that published the post.
GET
/
posts
/
{id}
View post details
curl --request GET \
--url https://dashboard.launchpointhq.com/api/v1/posts/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://dashboard.launchpointhq.com/api/v1/posts/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://dashboard.launchpointhq.com/api/v1/posts/{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://dashboard.launchpointhq.com/api/v1/posts/{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 => [
"x-api-key: <api-key>"
],
]);
$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://dashboard.launchpointhq.com/api/v1/posts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dashboard.launchpointhq.com/api/v1/posts/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.launchpointhq.com/api/v1/posts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"title": "<string>",
"description": "<string>",
"descriptionFetchedAt": 123,
"platform": "<string>",
"url": "<string>",
"thumbnail": "<string>",
"mediaUrl": "<string>",
"creator": "<string>",
"account": {
"handle": "<string>",
"bio": "<string>",
"avatarUrl": "<string>",
"profileFetchedAt": 123
},
"uploadedAt": 123,
"createdAt": 123,
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"bookmarks": 123,
"engagementRate": "<string>",
"earnings": 123,
"paid": true,
"lastPaidAt": 123,
"lastSyncedAt": 123,
"contract": {
"id": "<string>",
"name": "<string>",
"contractorName": "<string>",
"contractorId": "<string>",
"status": "<string>",
"isGhostHandle": true
},
"program": {
"id": "<string>",
"name": "<string>",
"status": "<string>"
},
"creatorInfo": {
"id": "<string>",
"name": "<string>",
"profileImageUrl": "<string>"
},
"awardedBonuses": [
"<string>"
],
"bonusAmount": 123,
"payment": {
"state": "paid",
"currency": "USD",
"earnedCents": 123,
"billedCents": 123,
"creditedCents": 123,
"invoiceIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"lastCreditedAt": 123
}
}
}