Skip to main content

Endpoint

curl -X GET 'https://api.ceboelha.com/insights/news?page=1&limit=10&category=recipe' \
  -H 'Content-Type: application/json'

Query Parameters

page
integer
default:"1"
Page number for pagination (starts at 1)
limit
integer
default:"10"
Number of articles per page (1-100)
category
string
Filter by article categoryOptions: recipe, article, tip, wellness, news
tag
string
Filter by tag (e.g., “low-fodmap”, “breakfast”, “IBS”)
Filter for featured articles onlyOptions: true, false
Search query to filter articles by title, excerpt, content, or tags

Response

success
boolean
required
Indicates if the request was successful
data
array
required
Array of article objects
pagination
object
required
Pagination information

Response Example

{
  "success": true,
  "data": [
    {
      "id": 1,
      "title": "Low-FODMAP Breakfast Smoothie Bowl",
      "excerpt": "Start your day with this delicious and gut-friendly smoothie bowl",
      "image_url": "https://example.com/images/smoothie-bowl.jpg",
      "category": "recipe",
      "tags": ["breakfast", "low-fodmap", "smoothie"],
      "author": {
        "name": "Dr. Sarah Johnson",
        "avatar": "https://example.com/avatars/sarah.jpg",
        "bio": "Nutritionist specializing in FODMAP diet"
      },
      "publishedAt": "2024-03-01T10:00:00Z",
      "updatedAt": "2024-03-01T10:00:00Z",
      "featured": true,
      "views": 1234,
      "likes": 89,
      "recipe": {
        "prep_time": 10,
        "cook_time": 0,
        "servings": 2,
        "difficulty": "easy",
        "ingredients": [
          "1 banana",
          "1 cup blueberries",
          "1/2 cup lactose-free yogurt",
          "1 tbsp chia seeds"
        ],
        "instructions": [
          "Blend banana, blueberries, and yogurt until smooth",
          "Pour into bowl and top with chia seeds"
        ],
        "fodmap_friendly": true,
        "fodmap_phase": "elimination"
      }
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 45,
    "totalPages": 5,
    "hasMore": true
  }
}

Notes

  • Articles are only returned if their status is published
  • Results are sorted by publishedAt date in descending order (newest first)
  • The content field is not included in list responses for performance. Use the Get Article endpoint to fetch full content
  • No authentication is required for this endpoint

Build docs developers (and LLMs) love