Skip to main content

Endpoint

curl -X GET 'https://api.ceboelha.com/insights/news/123' \
  -H 'Content-Type: application/json'

Path Parameters

id
integer
required
Numeric article ID

Response

success
boolean
required
Indicates if the request was successful
data
object
required
Article object with full content

Response Example

{
  "success": true,
  "data": {
    "id": 123,
    "title": "Understanding IBS and the Low-FODMAP Diet",
    "excerpt": "A comprehensive guide to managing IBS symptoms through the FODMAP diet",
    "content": "# Understanding IBS\n\nIrritable Bowel Syndrome (IBS) affects millions of people worldwide...\n\n## What is the FODMAP Diet?\n\nFODMAP stands for Fermentable Oligosaccharides, Disaccharides, Monosaccharides, and Polyols...",
    "image_url": "https://example.com/images/ibs-guide.jpg",
    "category": "article",
    "tags": ["IBS", "FODMAP", "digestive-health"],
    "author": {
      "name": "Dr. Sarah Johnson",
      "avatar": "https://example.com/avatars/sarah.jpg",
      "bio": "Nutritionist specializing in FODMAP diet"
    },
    "publishedAt": "2024-02-15T09:00:00Z",
    "updatedAt": "2024-02-20T14:30:00Z",
    "featured": true,
    "views": 5432,
    "likes": 287
  }
}

Error Response

If the article is not found:
{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "Artigo não encontrado"
  }
}

Notes

  • This endpoint automatically increments the view count for the article
  • Only articles with published status are returned
  • The content field contains Markdown that should be rendered on the client side
  • No authentication is required for this endpoint

Build docs developers (and LLMs) love