Field value distribution report
curl --request GET \
--url https://api.getnexor.ai/api/public/reports/field-distribution \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getnexor.ai/api/public/reports/field-distribution"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getnexor.ai/api/public/reports/field-distribution', 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://api.getnexor.ai/api/public/reports/field-distribution",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getnexor.ai/api/public/reports/field-distribution"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getnexor.ai/api/public/reports/field-distribution")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/reports/field-distribution")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"field_key": "motivo_inactividad",
"total_leads": 84,
"values": [
{
"value_text": "Precio muy alto",
"count": 31,
"sample": {
"lead_id": "550e8400-e29b-41d4-a716-446655440000",
"lead_name": "Ana Pérez",
"evidence_quote": "Me parece caro para lo que ofrecen."
}
}
]
}{
"error": "Invalid input",
"message": "field_key is required"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Reporte de Distribución de Campo
Distribution of values captured for a lead field (e.g. a disqualification reason), with counts and an example evidence quote per value. Useful for “top reasons why…” style questions.
GET
/
reports
/
field-distribution
Field value distribution report
curl --request GET \
--url https://api.getnexor.ai/api/public/reports/field-distribution \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getnexor.ai/api/public/reports/field-distribution"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getnexor.ai/api/public/reports/field-distribution', 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://api.getnexor.ai/api/public/reports/field-distribution",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getnexor.ai/api/public/reports/field-distribution"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getnexor.ai/api/public/reports/field-distribution")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/reports/field-distribution")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"field_key": "motivo_inactividad",
"total_leads": 84,
"values": [
{
"value_text": "Precio muy alto",
"count": 31,
"sample": {
"lead_id": "550e8400-e29b-41d4-a716-446655440000",
"lead_name": "Ana Pérez",
"evidence_quote": "Me parece caro para lo que ofrecen."
}
}
]
}{
"error": "Invalid input",
"message": "field_key is required"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Autorizaciones
API key for authentication. Keys are prefixed with nxr_live_.
Parámetros de consulta
The lead field key to aggregate on.
Restrict to one agent.
Maximum number of distinct values to return.
Rango requerido:
x >= 1Última modificación el 14 de julio de 2026
⌘I