Extract and capture complete comments with their source references
curl --request POST \
--url https://agent.crowdlisten.com/agent/v1/ingest/deep-extract \
--header 'Content-Type: application/json' \
--data '
{
"entity_id": "<string>",
"items": [
{
"url": "<string>",
"id": "<string>",
"title": "",
"content": "",
"author": "",
"published_at": "<string>",
"engagement": {
"likes": 1,
"comments": 1,
"views": 1,
"score": 1,
"shares": 1
},
"comments": [
{
"text": "<string>",
"id": "<string>",
"url": "<string>",
"published_at": "<string>",
"metadata": {},
"author": "unknown",
"likes": 1,
"replies": 1,
"timestamp": "<string>"
}
],
"metadata": {}
}
]
}
'import requests
url = "https://agent.crowdlisten.com/agent/v1/ingest/deep-extract"
payload = {
"entity_id": "<string>",
"items": [
{
"url": "<string>",
"id": "<string>",
"title": "",
"content": "",
"author": "",
"published_at": "<string>",
"engagement": {
"likes": 1,
"comments": 1,
"views": 1,
"score": 1,
"shares": 1
},
"comments": [
{
"text": "<string>",
"id": "<string>",
"url": "<string>",
"published_at": "<string>",
"metadata": {},
"author": "unknown",
"likes": 1,
"replies": 1,
"timestamp": "<string>"
}
],
"metadata": {}
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
entity_id: '<string>',
items: [
{
url: '<string>',
id: '<string>',
title: '',
content: '',
author: '',
published_at: '<string>',
engagement: {likes: 1, comments: 1, views: 1, score: 1, shares: 1},
comments: [
{
text: '<string>',
id: '<string>',
url: '<string>',
published_at: '<string>',
metadata: {},
author: 'unknown',
likes: 1,
replies: 1,
timestamp: '<string>'
}
],
metadata: {}
}
]
})
};
fetch('https://agent.crowdlisten.com/agent/v1/ingest/deep-extract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agent.crowdlisten.com/agent/v1/ingest/deep-extract",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entity_id' => '<string>',
'items' => [
[
'url' => '<string>',
'id' => '<string>',
'title' => '',
'content' => '',
'author' => '',
'published_at' => '<string>',
'engagement' => [
'likes' => 1,
'comments' => 1,
'views' => 1,
'score' => 1,
'shares' => 1
],
'comments' => [
[
'text' => '<string>',
'id' => '<string>',
'url' => '<string>',
'published_at' => '<string>',
'metadata' => [
],
'author' => 'unknown',
'likes' => 1,
'replies' => 1,
'timestamp' => '<string>'
]
],
'metadata' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://agent.crowdlisten.com/agent/v1/ingest/deep-extract"
payload := strings.NewReader("{\n \"entity_id\": \"<string>\",\n \"items\": [\n {\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"title\": \"\",\n \"content\": \"\",\n \"author\": \"\",\n \"published_at\": \"<string>\",\n \"engagement\": {\n \"likes\": 1,\n \"comments\": 1,\n \"views\": 1,\n \"score\": 1,\n \"shares\": 1\n },\n \"comments\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"published_at\": \"<string>\",\n \"metadata\": {},\n \"author\": \"unknown\",\n \"likes\": 1,\n \"replies\": 1,\n \"timestamp\": \"<string>\"\n }\n ],\n \"metadata\": {}\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://agent.crowdlisten.com/agent/v1/ingest/deep-extract")
.header("Content-Type", "application/json")
.body("{\n \"entity_id\": \"<string>\",\n \"items\": [\n {\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"title\": \"\",\n \"content\": \"\",\n \"author\": \"\",\n \"published_at\": \"<string>\",\n \"engagement\": {\n \"likes\": 1,\n \"comments\": 1,\n \"views\": 1,\n \"score\": 1,\n \"shares\": 1\n },\n \"comments\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"published_at\": \"<string>\",\n \"metadata\": {},\n \"author\": \"unknown\",\n \"likes\": 1,\n \"replies\": 1,\n \"timestamp\": \"<string>\"\n }\n ],\n \"metadata\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.crowdlisten.com/agent/v1/ingest/deep-extract")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity_id\": \"<string>\",\n \"items\": [\n {\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"title\": \"\",\n \"content\": \"\",\n \"author\": \"\",\n \"published_at\": \"<string>\",\n \"engagement\": {\n \"likes\": 1,\n \"comments\": 1,\n \"views\": 1,\n \"score\": 1,\n \"shares\": 1\n },\n \"comments\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"published_at\": \"<string>\",\n \"metadata\": {},\n \"author\": \"unknown\",\n \"likes\": 1,\n \"replies\": 1,\n \"timestamp\": \"<string>\"\n }\n ],\n \"metadata\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"url": "<string>",
"platform": "<string>",
"status": "<string>",
"comments_found": 0,
"promoted_count": 0,
"content_ids": [
"<string>"
],
"parent_content_id": "<string>",
"comment_content_ids": [
"<string>"
],
"capture_complete": false,
"error": "<string>"
}
],
"stats": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}ingest
Extract and capture complete comments with their source references
Preserve all retrieved originals; each item has its own atomic capture receipt.
POST
/
agent
/
v1
/
ingest
/
deep-extract
Extract and capture complete comments with their source references
curl --request POST \
--url https://agent.crowdlisten.com/agent/v1/ingest/deep-extract \
--header 'Content-Type: application/json' \
--data '
{
"entity_id": "<string>",
"items": [
{
"url": "<string>",
"id": "<string>",
"title": "",
"content": "",
"author": "",
"published_at": "<string>",
"engagement": {
"likes": 1,
"comments": 1,
"views": 1,
"score": 1,
"shares": 1
},
"comments": [
{
"text": "<string>",
"id": "<string>",
"url": "<string>",
"published_at": "<string>",
"metadata": {},
"author": "unknown",
"likes": 1,
"replies": 1,
"timestamp": "<string>"
}
],
"metadata": {}
}
]
}
'import requests
url = "https://agent.crowdlisten.com/agent/v1/ingest/deep-extract"
payload = {
"entity_id": "<string>",
"items": [
{
"url": "<string>",
"id": "<string>",
"title": "",
"content": "",
"author": "",
"published_at": "<string>",
"engagement": {
"likes": 1,
"comments": 1,
"views": 1,
"score": 1,
"shares": 1
},
"comments": [
{
"text": "<string>",
"id": "<string>",
"url": "<string>",
"published_at": "<string>",
"metadata": {},
"author": "unknown",
"likes": 1,
"replies": 1,
"timestamp": "<string>"
}
],
"metadata": {}
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
entity_id: '<string>',
items: [
{
url: '<string>',
id: '<string>',
title: '',
content: '',
author: '',
published_at: '<string>',
engagement: {likes: 1, comments: 1, views: 1, score: 1, shares: 1},
comments: [
{
text: '<string>',
id: '<string>',
url: '<string>',
published_at: '<string>',
metadata: {},
author: 'unknown',
likes: 1,
replies: 1,
timestamp: '<string>'
}
],
metadata: {}
}
]
})
};
fetch('https://agent.crowdlisten.com/agent/v1/ingest/deep-extract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agent.crowdlisten.com/agent/v1/ingest/deep-extract",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entity_id' => '<string>',
'items' => [
[
'url' => '<string>',
'id' => '<string>',
'title' => '',
'content' => '',
'author' => '',
'published_at' => '<string>',
'engagement' => [
'likes' => 1,
'comments' => 1,
'views' => 1,
'score' => 1,
'shares' => 1
],
'comments' => [
[
'text' => '<string>',
'id' => '<string>',
'url' => '<string>',
'published_at' => '<string>',
'metadata' => [
],
'author' => 'unknown',
'likes' => 1,
'replies' => 1,
'timestamp' => '<string>'
]
],
'metadata' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://agent.crowdlisten.com/agent/v1/ingest/deep-extract"
payload := strings.NewReader("{\n \"entity_id\": \"<string>\",\n \"items\": [\n {\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"title\": \"\",\n \"content\": \"\",\n \"author\": \"\",\n \"published_at\": \"<string>\",\n \"engagement\": {\n \"likes\": 1,\n \"comments\": 1,\n \"views\": 1,\n \"score\": 1,\n \"shares\": 1\n },\n \"comments\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"published_at\": \"<string>\",\n \"metadata\": {},\n \"author\": \"unknown\",\n \"likes\": 1,\n \"replies\": 1,\n \"timestamp\": \"<string>\"\n }\n ],\n \"metadata\": {}\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://agent.crowdlisten.com/agent/v1/ingest/deep-extract")
.header("Content-Type", "application/json")
.body("{\n \"entity_id\": \"<string>\",\n \"items\": [\n {\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"title\": \"\",\n \"content\": \"\",\n \"author\": \"\",\n \"published_at\": \"<string>\",\n \"engagement\": {\n \"likes\": 1,\n \"comments\": 1,\n \"views\": 1,\n \"score\": 1,\n \"shares\": 1\n },\n \"comments\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"published_at\": \"<string>\",\n \"metadata\": {},\n \"author\": \"unknown\",\n \"likes\": 1,\n \"replies\": 1,\n \"timestamp\": \"<string>\"\n }\n ],\n \"metadata\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.crowdlisten.com/agent/v1/ingest/deep-extract")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity_id\": \"<string>\",\n \"items\": [\n {\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"title\": \"\",\n \"content\": \"\",\n \"author\": \"\",\n \"published_at\": \"<string>\",\n \"engagement\": {\n \"likes\": 1,\n \"comments\": 1,\n \"views\": 1,\n \"score\": 1,\n \"shares\": 1\n },\n \"comments\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"published_at\": \"<string>\",\n \"metadata\": {},\n \"author\": \"unknown\",\n \"likes\": 1,\n \"replies\": 1,\n \"timestamp\": \"<string>\"\n }\n ],\n \"metadata\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"url": "<string>",
"platform": "<string>",
"status": "<string>",
"comments_found": 0,
"promoted_count": 0,
"content_ids": [
"<string>"
],
"parent_content_id": "<string>",
"comment_content_ids": [
"<string>"
],
"capture_complete": false,
"error": "<string>"
}
],
"stats": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}