Posts - Show API

Get the specified Post.

Method GET

Parameters

Name Details Type Required
id The ID of the Post. integer Yes

How to Use

fetch('https://simplecrudapi.com/api/posts/1')
	.then(response => response.json())
	.then(json => console.log(json))
	.catch(error => console.error(error));

Response

{
    "data": {
        "id": 1,
        "title": "The Future of AI in Education",
        "content": "Exploring the impact of artificial intelligence on modern education systems.",
        "category": {
            "id": 1,
            "name": "Education",
            "description": "Resources and information for lifelong learning"
        },
        "tags": [
            {
                "id": 2,
                "name": "Innovation",
                "description": "Minus vel qui et aut."
            },
            {
                "id": 3,
                "name": "Wellness",
                "description": "Minus vel qui et aut."
            }
        ],
        "created_at": "2024-11-09T19:58:46+00:00",
        "updated_at": "2024-11-09T19:58:46+00:00"
    }
}

Try Now

fetch('https://simplecrudapi.com/api/posts/1')
	.then(response => response.json())
	.then(json => console.log(json))
	.catch(error => console.error(error));

Test with Open API

View Open API

Previous
Users API

Our Proudly Sponsors 🎉

© 2025 Simple CRUD API. All rights reserved.