Search posts

Use this endpoint (https://komico.edubrazeal.com/mobile_api/search_posts) API to access posts searching endpoint


Get parameters

Field Value Remarks
query Search keywords E.g. `web development tips`
offset Last post offset ID This is only needed when loading posts of the pagination system.
session_id (Optional) ​Access token ID E.g. e7a4652c3231fc74761...
page_size ​Total post limit for each request Recommended: 20

Success response

{
        "code": 200,
        "message": "Results found",
        "data": [
            {
                "id": 9428,
                "user_id": 528,
                "text": "Essential web development tips for beginners",
                "type": "text",
                "replys_count": "12",
                "reposts_count": "8",
                "likes_count": "45",
                "status": "active",
                "topic_id": 0,
                "target": "publication",
                "og_data": "",
                "time": "3 minutes ago",
                "advertising": false,
                "time_raw": "1730840125",
                "og_text": "Essential web development tips for beginners",
                "og_image": "assets/images/logo.png",
                "url": "http://example.com/topic/9428",
                "can_delete": false,
                "media": [],
                "is_owner": false,
                "has_liked": false,
                "has_saved": false,
                "has_reposted": false,
                "reply_to":[],
                "owner":{"id": 528, "url": "http://example.com/@grace_walker", "avatar": "http://example.com/upload/avatars/528.jpg",…},
                "offset_id": 9428
            }
        ]
    }
    

Error responses

{
        "code": 204,
        "message": "No data found",
        "data": []
    }

    {
        "code": 400,
        "message": "The search term is invalid or missing",
        "data": []
    }