Get posts
POST/social-media-posting/:locationId/posts/list
Get Posts
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location Id
- application/json
- Body
- Example (auto)
Bodyrequired
typestring
type must be one of the following values: recent, all, scheduled, draft, failed, in_review, published, in_progress, pending and deleted
Default value:
allaccountsstring
List of account Ids separated by comma as a string
skipstringrequired
Number of records to skip for pagination
Default value:
0limitstringrequired
Maximum number of records to return
Default value:
10fromDatestringrequired
From Date
toDatestringrequired
To Date
includeUsersstringrequired
Include User Data
postTypeobject
Post Type must be one of the following values: - post, story, reel
{
"type": "all",
"accounts": "660a83fc29deacac50033e2b_omaDY3RbWtTP511e808O_17841465964543589, 38bF83fc29deacac50033e2b_omaDY3RbWtr3P11e808O_17841465964543998",
"skip": "0",
"limit": "10",
"fromDate": "2024-01-22T05:32:49.463Z",
"toDate": "2024-03-20T05:32:49.463Z",
"includeUsers": "true",
"postType": "post"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
successbooleanrequired
Success or Failure
statusCodenumberrequired
Status Code
messagestringrequired
Message
resultsobject
Requested Results
{
"success": true,
"statusCode": 201,
"message": "Fetched Posts",
"results": {
"posts": [
{
"_id": "61bb16833b3f2791f9715be2",
"locationId": "ve9EPM428h8vShlRW1KT",
"status": "published",
"insights": {
"like": 12,
"share": 3,
"comment": 5
}
}
],
"count": 6
}
}