---
title: Using the Nodinite Web API
description: Copy the API URL of a Nodinite Log View search and use the JSON result in Excel Power Query, Python, Postman, or a browser, with Windows Authentication or OAuth 2.0. Find the same search in Scalar or Swagger.
---

# Using the Nodinite Web API

Everything you see in a [Log View][Log Views] is also available from the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web API][], a REST API that returns **JSON**. Copy the API URL of your search, paste it into **Excel**, a script, or any HTTP-capable tool, and refresh the data whenever you need it.

## <i class="fal fa-rocket" aria-hidden="true"></i> Why Use the Web API?

* <i class="fal fa-check" aria-hidden="true"></i> **Same data, your tool** – The Log View search you already built, in Excel, Python, Postman, or a browser
* <i class="fal fa-check" aria-hidden="true"></i> **Same permissions** – The Web API applies your [Roles][] exactly as the [Web Client][] does
* <i class="fal fa-check" aria-hidden="true"></i> **Fresh on demand** – Refresh the query instead of exporting files

---

## Getting Started with the Web API

### 1. Copy the API URL from a Log View

1. Open a [Log View][Log Views] and set the search fields (time interval, [Message Types][], and so on).
2. Click **Search**, then **Copy API URL**. See [Copy API URL][].
3. The dialog **Copy API URL** shows your search as a Web API URL, with a copy button.

![The Log View Contoso: Orders searched on O2C - Order ID ORD-10005, Copy API URL with the Web API URL in its dialog, and the URL pasted in a new browser tab returning the events as JSON, animated walkthrough (7.12)][1]  
*Animated walkthrough: search the **Contoso: Orders** Log View on **O2C - Order ID** `ORD-10005`, click **Copy API URL**, and paste the URL in a new browser tab. Windows signs you in, and the result comes back as JSON: `Collection` › `Items`, one per event, each with its `Data`.*  

The URL has this shape: `<webapi-base-url>/api/Search/FlowSearch?logViewId=<id>&searchJson=<the search as JSON>`. Its base is the address of the Web API, not of the Web Client. Keep in mind:

* **The search is fixed when you copy it.** `searchJson` holds the time interval as absolute **From** and **To** times, plus your search values and page size. Refreshing the URL repeats the same period; to get a newer period, search again in the Log View and copy a new URL.
* **A grouped Log View returns the groups**, not the events. Each group has a link (`Links`) that returns that group's events.
* **The JSON** is a `Collection` with `Items` (one per event, each with the event's fields in `Data`) and `Pagination` (`TotalNumberOfItemsAvailable`, `Page`, `NumberOfItems`).

### 2. Or find the operation in Scalar

Every Web API operation is listed in **Scalar**: add `/scalar` to the Web API base URL, for example `https://nodinite.contoso.com:40001/scalar`. The port is set for each environment; see [Find the base URL][Base URL] and [Find operations in Scalar or Swagger][Find Operations]. **Swagger** is also available at `/swagger`.

The Log View search is **Search** › **GET /api/Search/FlowSearch**. In **Test Request**, set `logViewId` to the id of the Log View, and `searchJson` to at least a **From** date. Without From, the Web API answers 400 *From date not specified!*; without **NumberOfItems**, the answer has the total count but no Items. A minimal value: `{"From":"2026-11-10","To":"2026-11-18","NumberOfItems":5,"Page":1}`.

![Scalar on the Web API with Search, GET /api/Search/FlowSearch opened, Test Request with logViewId 4270 and a short searchJson, Send, and 200 OK with the events as JSON, animated walkthrough (7.12)][2]  
*Animated walkthrough: open Scalar, pick **Search** › **GET /api/Search/FlowSearch**, click **Test Request**, enter `logViewId` and a short `searchJson`, and click **Send**. The browser signs in with Windows authentication, and the newest five events of the Log View come back as JSON.*  

### 3. Authenticate

The Web API accepts the authentication mode of your <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> environment:

* **Windows Authentication** – Your Windows identity, automatic on a domain-joined machine. See [Call the Web API with Windows Authentication][Windows Authentication].
* **OAuth 2.0** – A bearer token from your identity provider, for environments in OIDC/OAuth 2.0 mode and for automation. See [Call the Web API with OAuth 2.0 Client Credentials][OAuth Client Credentials].

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p>Always use <strong>HTTPS</strong>, and never put credentials in a script or a shared workbook.</p></div>
</aside>

---

## Common Use Cases

### <i class="fal fa-file-excel" aria-hidden="true"></i> Excel with Power Query

#### Best For

Business analysts who need ad-hoc reporting and pivot tables.

#### How to Use

1. **Get Power Query** – Included in Excel 2016+ and Microsoft 365. For older versions, download the Power Query add-in
2. **Data > Get Data > From Other Sources > From Web**
3. **Paste the API URL** copied from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>
4. **Authenticate** with **Windows** (your current credentials) or an **Organizational account** (an environment in OIDC mode). <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> has no username and password of its own.
5. **Transform JSON** – Power Query auto-detects JSON; drill into `Collection` › `Items` and expand `Data`
6. **Select fields** – Choose only the columns you need (LogDateTime, LogText, LogStatusCode, MessageTypeName, and so on)
7. **Load to Excel** – Click "Close & Load" to import data

#### Benefits

No coding required, visual query builder, refresh data on demand.

---

### <i class="fal fa-code" aria-hidden="true"></i> Python / Custom Scripts

#### Best For

Automation, integration with SIEM/monitoring tools, custom alerting, data science.

#### Example: Python Requests

```python
import requests
from requests_negotiate_sspi import HttpNegotiateAuth

# The URL from Copy API URL, or an operation from Scalar
url = "<webapi-base-url>/api/integrations"

# Uses the current Windows identity
response = requests.get(url, auth=HttpNegotiateAuth(), timeout=30)
response.raise_for_status()

for item in response.json()["Collection"]["Items"]:
    print(item["Data"])
```

*Example: Read a Web API result with the current Windows identity. Install the dependencies first: `pip install requests requests-negotiate-sspi`. For Linux, PowerShell, C#, and OAuth 2.0, see the [Windows Authentication][] and [OAuth 2.0][OAuth Client Credentials] samples.*

#### Benefits

Full automation, integration with existing systems, scheduled jobs, alerting logic.

---

### <i class="fal fa-vial" aria-hidden="true"></i> Postman / API Testing Tools

#### Best For

Testing API responses, troubleshooting, building custom integrations.

#### How to Use

1. Open **Postman** or similar tool (Insomnia, REST Client)
2. Create new **GET** request
3. Paste <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> API URL
4. Configure the **Authorization** tab (NTLM for Windows Authentication, or an OAuth 2.0 bearer token)
5. Add query parameters as needed
6. Click **Send** to see JSON response
7. Inspect response schema, test filters, validate data

#### Benefits

Interactive testing, save request collections, share with team, generate code snippets.

---

### <i class="fal fa-browser" aria-hidden="true"></i> Direct Browser Access

#### Best For

Quick data checks, URL testing, debugging.

#### How to Use

1. Copy API URL from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>
2. Paste into browser address bar
3. Authenticate when prompted (if using Windows Auth, automatic)
4. View raw JSON response in browser
5. For readable formatting, tick **Pretty-print** above the JSON in a Chromium-based browser (Edge, Chrome), or use an extension such as JSONView

The walkthrough in step 1 of *Getting Started with the Web API* above shows these steps.

#### Benefits

No tools required, instant access, works from any device.

---

## Example: Excel Power Query Step-by-Step

Here's a detailed walkthrough for Excel users (most common scenario):

### From Web

Open Excel, go to the **Data** tab, click **Get Data > From Other Sources > From Web**.  
![From the web][4]  
*Select "From web" to provide the API URL.*  

![Enter URL][5]  
*Paste the API URL copied from Nodinite.*  

#### Authentication

Choose your authentication method:

* **Windows** – For an environment with Windows Authentication; use your current credentials on a domain-joined machine
* **Organizational account** – For an environment in OIDC/OAuth 2.0 mode with Microsoft Entra ID

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> has no username and password of its own: you sign in with Windows or your organization's identity provider.
![Authentication][6]  
*Select the authentication method.*

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Your <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> role determines what data you can access via the API. The same permissions apply as in the Web Client.</p></div>
</aside>

#### Transform JSON

Power Query automatically detects JSON format. In the **Power Query Editor**:

1. The response appears as a **Record** with `Collection`
2. Drill into **Items** (a List) and click **To Table**
3. Click the **expand** button (<i class="fal fa-arrows-left-right-to-line" aria-hidden="true"></i>) on `Column1` and pick **Data**
4. Expand **Data** to the event fields you need; Power Query turns each event into a table row

![Parse to JSON][7]  
*Power Query recognizes JSON and offers transformation options.*

![Collection][8]  
*The response displays as a Collection record containing the data.*

#### Select Columns

Choose only the data columns you need to keep your Excel file lightweight:

1. Right-click column headers and **Remove** unwanted columns
2. Or use **Choose Columns** to select specific fields
3. Common useful fields in `Data`:
   * **LogDateTime** – When the event was logged
   * **LogText** – The text the integration logged
   * **LogStatusCode** – The [Log Status Code][Log Status Codes]
   * **MessageTypeName** – The [Message Type][Message Types]
   * **ApplicationInterchangeId** – The interchange the event belongs to
   * **EndPointName** – The [Endpoint][Endpoints] the event passed

![Items][9]  
*Expand "Items" collection to access individual log entries.*

![Data][10]  
*Expand nested "Data" objects to reveal message fields.*

![Message Type][11]  
*Select specific fields like MessageType relevant to your analysis.*

![All Message Type Information][12]  
*Expand to view all available message type information fields.*

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Uncheck "Use original column name as prefix" to keep column names short.</p></div>
</aside>

#### Load Data

Once your columns are configured:

1. Review the **preview** at the bottom of Power Query Editor
2. Verify data types are correct (dates, numbers, text)
3. Click **Close & Load** to import into Excel
4. Data appears as an Excel **Table** on a new worksheet

![Ready][13]  
*Preview transformed data before loading.*

![Close][14]  
*Close & Load imports data to Excel worksheet.*

#### Refresh Data

To get updated data from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>:

1. Right-click the table in Excel
2. Select **Refresh**
3. Power Query re-executes the API call with the same parameters

The copied URL holds absolute **From** and **To** times, so a refresh returns the same period again; it picks up only events logged late into that period. For a newer period, search again in the Log View, copy a new URL, and replace the source URL in Power Query (**Data > Queries & Connections**, then edit the query's **Source** step).

![Finish][15]  
*Data is now in Excel, ready for pivot tables, charts, and analysis.*

![Button][16]  
*Use the action buttons to refresh or modify your query as needed.*

---

## Best Practices

* **Keep the search narrow.** A short time interval and specific search values give a small, fast result. Set them in the Log View before you copy the URL.
* **Use an account with only the Roles it needs** for scheduled refreshes and scripts.
* **Never store credentials** in a script or workbook: use the current Windows identity, environment variables, or a secret vault.
* **Don't poll for alerts.** To be alerted when expected messages stop arriving, use the [Non-Events][Non Events Agent] [Monitoring Agent][Monitoring Agents] instead.

## <i class="fal fa-circle-question" aria-hidden="true"></i> Common Questions

**I get "401 Unauthorized".**  
The Web API didn't accept your identity. Use the authentication mode of your environment (see [Authenticate](#authenticate)), and check that you are a member of a [Role][Roles] with access to the [Log View][Log Views].

**The API returns fewer results than the Web Client.**  
Check the time interval and search values in the URL; the copied URL holds the values from when you copied it. Also check `NumberOfItems` and `Page` in `searchJson`: the answer holds one page, and `Pagination` › `TotalNumberOfItemsAvailable` says how many there are.

**The result is too large for Excel.**  
Narrow the search in the Log View, copy the URL again, and replace the source URL in Power Query.

---

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-clone" aria-hidden="true"></i> [Copy API URL][] – Copy the URL of a Log View search  
* <i class="fal fa-magnifying-glass" aria-hidden="true"></i> [Find operations in Scalar or Swagger][Find Operations] – Every Web API operation, with test requests  
* <i class="fal fa-key" aria-hidden="true"></i> [Call the Web API with OAuth 2.0 Client Credentials][OAuth Client Credentials] – Automate without a Windows identity  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-cloud" aria-hidden="true"></i> [Web API][] – What the Web API is and how to host it  
* <i class="fab fa-windows" aria-hidden="true"></i> [Call the Web API with Windows Authentication][Windows Authentication] – Samples in PowerShell, Python, C#, and JavaScript  
* <i class="fal fa-search" aria-hidden="true"></i> [Log Views][] – Build the search you copy  
* <i class="fal fa-filter" aria-hidden="true"></i> [Search Fields][] – Make business values searchable in Log Views  
* <i class="fal fa-users-class" aria-hidden="true"></i> [Roles][] – What each user and service account may see  
* <i class="fal fa-file-excel" aria-hidden="true"></i> [Power Query: Get data from the web](https://learn.microsoft.com/power-query/connectors/web/web)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> – Microsoft Learn  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Log/WebAPI/WebAPI_CopyApiUrl.gif
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Log/WebAPI/WebAPI_ScalarFindOperation.gif
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.2%20From%20the%20web.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.3%20URL.png
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.4%20Authentication.png
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.5%20JSON.png
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.6%20Collection.png
[9]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.7%20Items.png
[10]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.8%20Data.png
[11]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.9%20Message%20Type.png
[12]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.A10%20All%20Message%20Type%20information.png
[13]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.A11%20All.png
[14]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.A12%20Close.png
[15]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.A13%20Finish.png
[16]:https://docs.nodinite.com/media/Documentation%20Pictures/C17.A14%20Button.png

[Base URL]:https://docs.nodinite.com/core-services/web-api/features/managing-the-web-api/#find-the-base-url
[Copy API URL]:https://docs.nodinite.com/getting-started/log/copy-api-print-and-export-to-csv/#fa-clone-copy-api-url
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Find Operations]:https://docs.nodinite.com/core-services/web-api/features/managing-the-web-api/#find-operations
[Log Status Codes]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-status-code/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Non Events Agent]:https://docs.nodinite.com/logging-and-monitoring/non-events/overview/
[OAuth Client Credentials]:https://docs.nodinite.com/core-services/web-api/scenarios/call-the-web-api-with-oauth-2-0-client-credentials/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Search Fields]:https://docs.nodinite.com/administration/log-management/search-fields/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/
[Windows Authentication]:https://docs.nodinite.com/core-services/web-api/scenarios/call-the-web-api-with-windows-authentication/