> ## Documentation Index
> Fetch the complete documentation index at: https://docs.osintcat.net/llms.txt
> Use this file to discover all available pages before exploring further.

# GTA Online Sightings

> Where and when GTA Online players were seen

> [!WARNING]
>
> This lookup is currently unavailable; requests fail with `424` and are not charged.

Returns how often and when GTA Online players were seen in sessions, by display name or Rockstar ID.

## Parameters

**query** `string` *required*

A player name or RID.

**type** `string` (default: name)

`name` (default) or `rid`.

## Headers

**X-API-KEY** `string` *required*

Your API key.

## Usage

Counts as one lookup against your plan's daily allowance (Max: unlimited). When the allowance is used up, the lookup can continue at a per-lookup price charged to your balance (the module's page in the dashboard shows the price). The price applies even when the lookup finds nothing; a lookup that fails because of an error on our side is not charged.

## Example request

```bash cURL theme={null}
curl "https://www.osintcat.net/api/gta/spotted?query=example&type=name" \
     -H "X-API-KEY: YOUR_API_KEY"
```

```python Python theme={null}
import requests

url = "https://www.osintcat.net/api/gta/spotted"
params = {"query": "example", "type": "name"}
headers = {"X-API-KEY": "YOUR_API_KEY"}

response = requests.get(url, params=params, headers=headers, timeout=60)
print(response.status_code, response.json())
```

```javascript JS & TS theme={null}
const response = await fetch("https://www.osintcat.net/api/gta/spotted?query=example&type=name", {
  headers: { "X-API-KEY": "YOUR_API_KEY" },
});
console.log(response.status, await response.json());
```

```php PHP theme={null}
<?php
$curl = curl_init("https://www.osintcat.net/api/gta/spotted?query=example&type=name");
curl_setopt_array($curl, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["X-API-KEY: YOUR_API_KEY"],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
curl_close($curl);
echo $status . " " . $response;
```

```go Go theme={null}
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("GET", "https://www.osintcat.net/api/gta/spotted?query=example&type=name", nil)
    req.Header.Set("X-API-KEY", "YOUR_API_KEY")
    resp, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(resp.StatusCode, string(body))
}
```

## Response

**results\_count** `number`

Number of players.

**results** `array`

Sightings.

**properties**

**rid** `integer`

Rockstar ID.

**name** `string`

Display name.

**platform** `string`

Platform.

**times\_seen** `integer`

How often the player was seen.

**first\_seen** `integer`

First sighting (Unix time).

**last\_seen** `integer`

Last sighting (Unix time).

**last\_seen\_ts** `string`

Last sighting, readable.

**elapsed\_ms** `number`

Time taken.

**\_meta** `object`

Your usage after this request.

## Errors

| Status | Error | When |
| - | - | - |
| 424 | `GTA API request failed` | The sightings search is unavailable right now. |

See [Errors](https://docs.osintcat.net/api-reference/introduction.md#errors) for the responses every endpoint can return.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.