Social media post or blog post entry with content, author, publication status, and engagement metrics. Used for social platforms, blogs, and content feeds.
https://api.mockly.codes/posts?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/postsGet a collection of posts
/content/posts/posts/:idGet a single post by ID
/content/posts/:id/posts/metaGet resource metadata and schema
/content/posts/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/posts?q=laptopGET https://api.mockly.codes/posts?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 posts
fetch('https://api.mockly.codes/posts?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/posts?count=10'
)
data = response.json()curl "https://api.mockly.codes/posts?count=10"fetch('https://api.mockly.codes/posts?nocache=true')idintegerUnique identifier for the post
random_intuser_idintegerForeign key reference to the user who created the post
random_inttitlestringTitle or headline of the post
sentencebodystringFull post content and body text
paragraphpublishedbooleanWhether the post is published and visible to the public
booleancreated_atstringTimestamp when the post was created
past_datedate-timeviewsintegerTotal number of times the post has been viewed
random_intlikesintegerNumber of likes or positive reactions the post has received
random_intcountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request