Latest stories

suggest_hashtag

  • Inputs
{
    "base": "integer: has dependency to page: for sorting into multiple pages: optional",
    "page": "string: allowed: 'next', 'prev': has dependency to base: for sorting into multiple pages: optional",
    "term": "string: maximum length 50 characters: search term"
}

  • Errors
{
    "must_login": "user must be login",
    "term": [
        {
            "max length is 50": "maximum length of term is 50"
        }
    ]
}

  • Extra Description
Suggest related hashtag to the user

  • Sample
  • Url:
https://api.pantel.me/a/suggest_hashtag?term=fun
  • Output:
                                {
    "search_result": [
        {
            "base": 1,
            "body": "there is a #jabber #funny #coca_cola in my life",
            "chat_id": "9999af476f58791ce892d8ca4778235c8f33",
            "image_path": null,
            "image_server_id": null,
            "media_type": 2,
            "message_file_path": "7/6/f/c/f/2a11608540cb6338f4b53a3c728/if79aab7b4e57e46afdf18c84c4504bd8.jpg",
            "message_id": 1550907404366826,
            "message_server_id": 1,
            "posts_count": 72,
            "wall_id": -1001333,
            "wall_name": "wall1"
        },
        {
            "base": 2,
            "body": "there is a #jabber #funny #coca_cola in my life",
            "chat_id": "99991c4c85ab47f973a5d6e01da6e958fdba",
            "image_path": null,
            "image_server_id": null,
            "media_type": 0,
            "message_file_path": null,
            "message_id": 1550906857694867,
            "message_server_id": null,
            "posts_count": 40,
            "wall_id": -1001330,
            "wall_name": "mywall"
        }
    ],
    "status": "success",
    "suggested_hashtags": [
        {
            "count": 253,
            "name": "funny_joke"
        },
        {
            "count": 128,
            "name": "funny_news"
        }
    ],
    "time": 1551273768.9252372
}