Skip to main content
GET
/
api
/
v1
/
gps
/
all
/
cursor
Obtener GPS con cursor pagination (optimizado para grandes datasets)
curl --request GET \
  --url https://api.raul.ugps.io/api/v1/gps/all/cursor \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.raul.ugps.io/api/v1/gps/all/cursor"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.raul.ugps.io/api/v1/gps/all/cursor', 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.raul.ugps.io/api/v1/gps/all/cursor",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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.raul.ugps.io/api/v1/gps/all/cursor"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

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.raul.ugps.io/api/v1/gps/all/cursor")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.raul.ugps.io/api/v1/gps/all/cursor")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "gps_details_id": "<string>",
      "gps_name": {},
      "imei": {},
      "number_phone": {},
      "gps_model_id": {},
      "gps_model_name": {},
      "sim_deta_id": {},
      "gps_inventory_id": {},
      "gps_inventory_name": {},
      "gps_platform_name": {},
      "assigned_name": {},
      "assigned_id": {},
      "operator_name": {},
      "gps_status_id": {},
      "gps_status_name": {},
      "updated_at": {}
    }
  ],
  "nextCursor": 200,
  "hasMore": true,
  "total": 1500
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Query Parameters

cursor
number

ID del ultimo registro de la pagina anterior. null/undefined para primera pagina.

Example:

150

limit
number
default:50

Cantidad de registros por pagina

Required range: 1 <= x <= 100
status_id
number

Filter by GPS status ID

platform_id
number

Filter by GPS platform ID

client_id
string

Filter by client ID

inventory_id
number

Filter by GPS inventory ID

Search across all visible GPS fields (IMEI, name, client, model, phone, etc.)

inventory_name
string

Filter by inventory name (e.g. Bodega, Tecnico, Cliente)

status_name
string

Filter by GPS status name (e.g. Instalado, Activado, Retirado)

Response

200 - application/json

Lista de GPS con cursor pagination

data
object[]
required

Lista de GPS de la pagina actual

nextCursor
object | null
required

Cursor para la siguiente pagina (ID del ultimo registro). null si no hay mas paginas.

Example:

200

hasMore
boolean
required

Indica si hay mas registros disponibles

Example:

true

total
number

Total de registros (opcional, puede ser costoso de calcular en datasets grandes)

Example:

1500