# Reply Comment

> <mark style="color:red;">PREMIUM ENDPOINT</mark>

## Reply to a comment on a video

<mark style="color:blue;">`GET`</mark> `https://kitkot.xyz/api/video/comments/publish/reply`

Replies to a comment made on the video you specify with the `text` & `session_key` you provide&#x20;

#### Query Parameters

| Name                                           | Type   | Description                                                                                                 |
| ---------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------- |
| api\_key<mark style="color:red;">\*</mark>     | String | The `api_key` you got when purchasing our service                                                           |
| aweme\_id<mark style="color:red;">\*</mark>    | String | The `aweme_id` of the video to publish the reply on                                                         |
| text<mark style="color:red;">\*</mark>         | String | The `text` of the reply                                                                                     |
| session\_key<mark style="color:red;">\*</mark> | String | The `session_key` you got from our login endpoint                                                           |
| reply\_id<mark style="color:red;">\*</mark>    | String | The `reply_id` of the comment to reply to, if this value is `0` then you should use the `cid` value instead |

{% tabs %}
{% tab title="200: OK REPLY\_SUCCESSFULLY\_SENT" %}
{% code overflow="wrap" lineNumbers="true" %}

```json
{
  code: 200,
  comment: {
    reply_id: '',
    user_digged: 0,
    text_extra: [],
    text: 'Your text provided!',
    aweme_id: '',
    reply_to_reply_id: '0',
    status: 7,
    reply_comment: [ [Object] ],
    cid: '',
    create_time: 1670955648,
    user: {
      user_tags: null,
      twitter_id: '',
      need_recommend: 0,
      ins_id: '',
      secret: 0,
      uid: '',
      apple_account: 0,
      avatar_medium: [Object],
      total_favorited: 0,
      user_profile_guide: null,
      enterprise_verify_reason: '',
      account_region: '',
      shield_follow_notice: 0,
      shield_edit_field_info: null,
      status: 1,
      avatar_thumb: [Object],
      follower_count: 0,
      live_verify: 2,
      has_twitter_token: false,
      has_facebook_token: false,
      youtube_channel_title: '',
      user_now_pack_info: {},
      google_account: '',
      short_id: '0',
      comment_setting: 0,
      events: null,
      react_setting: 0,
      follow_status: 0,
      account_labels: null,
      advance_feature_item_order: null,
      commerce_user_level: 0,
      cha_list: null,
      user_mode: 1,
      sec_uid: '',
      hide_search: false,
      bold_fields: null,
      live_commerce: false,
      story_status: 0,
      comment_filter_status: 0,
      is_star: false,
      has_insights: false,
      advanced_feature_info: null,
      region: 'US',
      duet_setting: 0,
      is_phone_binded: false,
      type_label: null,
      avatar_larger: [Object],
      verify_info: '',
      cv_level: '',
      relative_users: null,
      user_rate: 1,
      authority_status: 0,
      avatar_uri: '',
      favoriting_count: 0,
      avatar_300x300: [Object],
      video_icon: [Object],
      mutual_relation_avatars: null,
      aweme_count: 0,
      custom_verify: '',
      cover_url: [Array],
      has_email: false,
      search_highlight: null,
      unique_id: '',
      nickname: '',
      can_set_geofencing: null,
      with_commerce_entry: false,
      has_youtube_token: false,
      room_id: 0,
      create_time: 1667504852,
      following_count: 0,
      prevent_download: false,
      has_orders: false,
      twitter_name: '',
      bind_phone: '',
      item_list: null,
      unique_id_modify_time: 1670955648,
      homepage_bottom_toast: null,
      user_canceled: false,
      friends_status: 0,
      stitch_setting: 0,
      fb_expire_time: 0,
      download_prompt_ts: 0,
      special_account: [Object],
      followers_detail: null,
      is_block: false,
      show_image_bubble: false,
      avatar_168x168: [Object],
      platform_sync_info: null,
      with_shop_entry: false,
      download_setting: 0,
      user_period: 0,
      ad_cover_url: null,
      special_lock: 1,
      geofencing: null,
      follower_status: 0,
      is_discipline_member: false,
      youtube_channel_id: '',
      youtube_expire_time: 0,
      mention_status: 1,
      need_points: null,
      language: 'en',
      white_cover_url: null,
      tw_expire_time: 0,
      shield_comment_notice: 0,
      is_ad_fake: false,
      can_message_follow_status_list: null,
      signature: '',
      verification_type: 0,
      matched_friend_available: false,
      accept_private_policy: false,
      live_agreement: 0,
      shield_digg_notice: 0
    },
    label_list: null,
    digg_count: 0
  },
  msg: 'Comment sent successfully'
}
```

{% endcode %}
{% endtab %}

{% tab title="400: Bad Request REPLY\_FAILED\_SENT" %}
{% code overflow="wrap" lineNumbers="true" %}

```json
{
    'code': 400,
    'msg': 'Failed to publish reply'
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="NodeJS" %}
{% code overflow="wrap" lineNumbers="true" %}

```javascript
const BASEURL = "https://kitkot.xyz/api";
const API_KEY = "my-api-key";
const session_key = "my-session-key";
const aweme_id = "some-aweme_id";
const reply_id = "some-reply_id"
const text = "Hello from a program!";

const request = await fetch(`${BASEURL}/video/comments/publish/reply?api_key=${API_KEY}&session_key=${session_key}&aweme_id=${aweme_id}&reply_id=${reply_id}&text=${text}`);
const response = await request.json();
console.log(response);
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code overflow="wrap" lineNumbers="true" %}

```python
import requests

BASEURL = "https://kitkot.xyz/api"
API_KEY = "my-api-key"
session_key = "my-session-key"
aweme_id = "some-aweme_id"
reply_id = "some-reply_id"
text = "Hello from a program!"

request = requests.get(f"{BASEURL}/video/comments/publish/reply?api_key={API_KEY}&session_key={session_key}&aweme_id={aweme_id}&reply_id={reply_id}&text={text}")
response = request.json()
print(response)
```

{% endcode %}
{% endtab %}
{% endtabs %}
