curl
curl -X GET "https://api.linkvite.io/v1/comments/<id>" \
-H "x-api-key: $LINKVITE_API_KEY"
import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.comments.getAll('<id>');client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Comments.GetAll(ctx, "<id>", nil){
"data": {
"comments": [
{
"bookmark_id": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"liked": true,
"likes_count": 123,
"owner_avatar": "<string>",
"owner_id": "<string>",
"owner_name": "<string>",
"owner_username": "<string>",
"parent_id": "<string>",
"replies_count": 123,
"status": "active",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>"
}
],
"pagination": {
"last_page": 123,
"limit": 123,
"page": 123,
"total": 123,
"q": "<string>"
}
},
"ok": true,
"message": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}Comments
Get comments
Scope: comments:read · Rate limit: 250 requests per 5 minutes
GET
/
v1
/
comments
/
{id}
curl
curl -X GET "https://api.linkvite.io/v1/comments/<id>" \
-H "x-api-key: $LINKVITE_API_KEY"
import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.comments.getAll('<id>');client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Comments.GetAll(ctx, "<id>", nil){
"data": {
"comments": [
{
"bookmark_id": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"liked": true,
"likes_count": 123,
"owner_avatar": "<string>",
"owner_id": "<string>",
"owner_name": "<string>",
"owner_username": "<string>",
"parent_id": "<string>",
"replies_count": 123,
"status": "active",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>"
}
],
"pagination": {
"last_page": 123,
"limit": 123,
"page": 123,
"total": 123,
"q": "<string>"
}
},
"ok": true,
"message": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}Was this page helpful?