Get site data
Gets information about a site by its name or token
- Parameters
- Advanced call ?
Function GetSiteData(Val Token, Val Website = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Auth token |
| Website | --sitename | String | ✖ | Site name (login) for information. Current, if not filled in |
Returns
Map Of KeyAndValue - serialized JSON response from Neocities
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Neocities API docs: neocities.org/api
1C:Enterprise/OneScript code example
Token = "f1e616e20ab5893b...";
Website = "2athenaeum";
Result = OPI_Neocities.GetSiteData(Token);
Result = OPI_Neocities.GetSiteData(Token, Website);
- Bash
- CMD/Bat
oint neocities GetSiteData \
--token "***" \
--sitename "2athenaeum"
oint neocities GetSiteData ^
--token "***" ^
--sitename "2athenaeum"
Result
{
"result": "success",
"info": {
"sitename": "2athenaeum",
"views": 164460,
"hits": 435581,
"created_at": "Sat, 31 Dec 2022 11:53:53 -0000",
"last_updated": "Tue, 26 May 2026 14:18:52 -0000",
"domain": null,
"supporter": true,
"tags": [
"literature",
"books",
"library"
]
}
}