Noticias de una afiliación
curl --request GET \
--url https://api.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/newsimport requests
url = "https://api.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news', 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.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news"
req, _ := http.NewRequest("GET", url, nil)
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.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"medium": "https://www.elcolombiano.com/",
"medium_id": "0",
"url": "https://www.elcolombiano.com/colombia/salud/antidepresivo-en-spray-que-preguntas-deja-BG10342074",
"url_date": "2019-03-08 00:01:00+00:00",
"url_id": "0_1071",
"url_language": "SPANISH",
"url_title": "Antidepresivo en spray, ¿qué preguntas deja?"
},
{
"medium": "https://www.elcolombiano.com/",
"medium_id": "0",
"url": "https://www.elcolombiano.com/colombia/salud/la-soledad-una-epidemia-moderna-IX8123749",
"url_date": "2018-02-02 23:00:20+00:00",
"url_id": "0_1117",
"url_language": "SPANISH",
"url_title": "La soledad, ¿una epidemia moderna?"
}
],
"meta": {
"count": 2333,
"cursor": {
"next": "https://api.dev.impactu.colav.co/affiliation/institution/example-institution-id/research/news?max=2&page=2",
"previous": null
},
"db_response_time_ms": 25,
"page": 1,
"size": 2
}
}
{
"error": "1 validation error for QueryParams\nmax\n Input should be greater than or equal to 1 [type=greater_than_equal, input_value='0', input_type=str]\n For further i…"
}
Affiliation
Noticias de una afiliación
Lista de forma paginada las noticias asociadas a los autores de una afiliación.
GET
/
affiliation
/
{affiliation_type}
/
{affiliation_id}
/
research
/
news
Noticias de una afiliación
curl --request GET \
--url https://api.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/newsimport requests
url = "https://api.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news', 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.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news"
req, _ := http.NewRequest("GET", url, nil)
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.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dev.impactu.colav.co/affiliation/{affiliation_type}/{affiliation_id}/research/news")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"medium": "https://www.elcolombiano.com/",
"medium_id": "0",
"url": "https://www.elcolombiano.com/colombia/salud/antidepresivo-en-spray-que-preguntas-deja-BG10342074",
"url_date": "2019-03-08 00:01:00+00:00",
"url_id": "0_1071",
"url_language": "SPANISH",
"url_title": "Antidepresivo en spray, ¿qué preguntas deja?"
},
{
"medium": "https://www.elcolombiano.com/",
"medium_id": "0",
"url": "https://www.elcolombiano.com/colombia/salud/la-soledad-una-epidemia-moderna-IX8123749",
"url_date": "2018-02-02 23:00:20+00:00",
"url_id": "0_1117",
"url_language": "SPANISH",
"url_title": "La soledad, ¿una epidemia moderna?"
}
],
"meta": {
"count": 2333,
"cursor": {
"next": "https://api.dev.impactu.colav.co/affiliation/institution/example-institution-id/research/news?max=2&page=2",
"previous": null
},
"db_response_time_ms": 25,
"page": 1,
"size": 2
}
}
{
"error": "1 validation error for QueryParams\nmax\n Input should be greater than or equal to 1 [type=greater_than_equal, input_value='0', input_type=str]\n For further i…"
}
Parámetros de ruta
string
requerido
Tipo de afiliación:
institution, faculty, department o group.string
requerido
Identificador de la afiliación.
Parámetros de consulta
integer
predeterminado:"10"
Resultados por página (1 a 250).
integer
predeterminado:"1"
Número de página (mínimo 1).
string
predeterminado:"citations_desc"
Criterio de ordenamiento ascendente y descendente, por ejemplo
citations_desc, products_asc o alphabetical_desc.Este endpoint no admite los parámetros
sort, view, ni filtros de
productos. Solo aplican max y page.Respuesta
array
Lista de noticias de la afiliación.
Mostrar propiedades de cada noticia
Mostrar propiedades de cada noticia
string | null
Identificador único de la URL de la noticia.
string | null
Identificador del medio de comunicación.
string | null
URL directa a la noticia.
string | null
Título de la noticia.
string | null
Idioma de la noticia, en inglés y mayúsculas (por ejemplo,
SPANISH).string | null
Fecha de publicación de la noticia.
string | null
URL del sitio web del medio de comunicación.
object
Metadatos de la respuesta.
Mostrar propiedades
Mostrar propiedades
integer
Total de resultados que cumplen la consulta.
integer
Página actual.
integer
Cantidad de resultados devueltos en esta página.
integer
Tiempo de respuesta de la base de datos en milisegundos.
{
"data": [
{
"medium": "https://www.elcolombiano.com/",
"medium_id": "0",
"url": "https://www.elcolombiano.com/colombia/salud/antidepresivo-en-spray-que-preguntas-deja-BG10342074",
"url_date": "2019-03-08 00:01:00+00:00",
"url_id": "0_1071",
"url_language": "SPANISH",
"url_title": "Antidepresivo en spray, ¿qué preguntas deja?"
},
{
"medium": "https://www.elcolombiano.com/",
"medium_id": "0",
"url": "https://www.elcolombiano.com/colombia/salud/la-soledad-una-epidemia-moderna-IX8123749",
"url_date": "2018-02-02 23:00:20+00:00",
"url_id": "0_1117",
"url_language": "SPANISH",
"url_title": "La soledad, ¿una epidemia moderna?"
}
],
"meta": {
"count": 2333,
"cursor": {
"next": "https://api.dev.impactu.colav.co/affiliation/institution/example-institution-id/research/news?max=2&page=2",
"previous": null
},
"db_response_time_ms": 25,
"page": 1,
"size": 2
}
}
{
"error": "1 validation error for QueryParams\nmax\n Input should be greater than or equal to 1 [type=greater_than_equal, input_value='0', input_type=str]\n For further i…"
}