Afiliaciones de una entidad geográfica
curl --request GET \
--url https://api.dev.impactu.colav.co/geo/{geo_type}/{geo_id}/affiliationsimport requests
url = "https://api.dev.impactu.colav.co/geo/{geo_type}/{geo_id}/affiliations"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dev.impactu.colav.co/geo/{geo_type}/{geo_id}/affiliations', 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/geo/{geo_type}/{geo_id}/affiliations",
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/geo/{geo_type}/{geo_id}/affiliations"
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/geo/{geo_type}/{geo_id}/affiliations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dev.impactu.colav.co/geo/{geo_type}/{geo_id}/affiliations")
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{
"institutions": [{"id": "example-institution-id", "name": "Universidad Ejemplo"}],
"groups": [{"id": "COL0000001", "name": "Grupo de Investigación Ejemplo"}],
"cities": [{"id": "05045", "name": "Apartadó"}]
}
{
"institutions": [{"id": "example-institution-id", "name": "Universidad Ejemplo"}],
"groups": [{"id": "COL0000001", "name": "Grupo de Investigación Ejemplo"}]
}
Geo
Afiliaciones de una entidad geográfica
Devuelve las instituciones y grupos de investigación asociados a un departamento o ciudad.
GET
/
geo
/
{geo_type}
/
{geo_id}
/
affiliations
Afiliaciones de una entidad geográfica
curl --request GET \
--url https://api.dev.impactu.colav.co/geo/{geo_type}/{geo_id}/affiliationsimport requests
url = "https://api.dev.impactu.colav.co/geo/{geo_type}/{geo_id}/affiliations"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dev.impactu.colav.co/geo/{geo_type}/{geo_id}/affiliations', 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/geo/{geo_type}/{geo_id}/affiliations",
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/geo/{geo_type}/{geo_id}/affiliations"
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/geo/{geo_type}/{geo_id}/affiliations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dev.impactu.colav.co/geo/{geo_type}/{geo_id}/affiliations")
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{
"institutions": [{"id": "example-institution-id", "name": "Universidad Ejemplo"}],
"groups": [{"id": "COL0000001", "name": "Grupo de Investigación Ejemplo"}],
"cities": [{"id": "05045", "name": "Apartadó"}]
}
{
"institutions": [{"id": "example-institution-id", "name": "Universidad Ejemplo"}],
"groups": [{"id": "COL0000001", "name": "Grupo de Investigación Ejemplo"}]
}
Parámetros de ruta
string
requerido
Tipo de entidad geográfica. Valores permitidos:
state o city.string
requerido
Código DANE de la entidad. Ejemplos:
05 para Antioquia, 05001 para
Medellín.Respuesta
La respuesta no está envuelta endata. Si la entidad no existe, la respuesta es 200 con las listas vacías.
object[]
Instituciones asociadas a la entidad. Cada elemento contiene
id y name.object[]
Grupos de investigación asociados. Cada elemento contiene
id y name.object[]
Solo con
state: ciudades del departamento. Cada elemento contiene id y
name.{
"institutions": [{"id": "example-institution-id", "name": "Universidad Ejemplo"}],
"groups": [{"id": "COL0000001", "name": "Grupo de Investigación Ejemplo"}],
"cities": [{"id": "05045", "name": "Apartadó"}]
}
{
"institutions": [{"id": "example-institution-id", "name": "Universidad Ejemplo"}],
"groups": [{"id": "COL0000001", "name": "Grupo de Investigación Ejemplo"}]
}