---
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 :Nodinite: [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.

## :fa-rocket: Why Use the Web API?

* :fa-check: **Same data, your tool** – The Log View search you already built, in Excel, Python, Postman, or a browser
* :fa-check: **Same permissions** – The Web API applies your [Roles][] exactly as the [Web Client][] does
* :fa-check: **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 :Nodinite: 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].

>[!WARNING]
>Always use **HTTPS**, and never put credentials in a script or a shared workbook.

---

## Common Use Cases

### :fa-file-excel: 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 :Nodinite:
4. **Authenticate** with **Windows** (your current credentials) or an **Organizational account** (an environment in OIDC mode). :Nodinite: 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.

---

### :fa-code: 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.

---

### :fa-vial: 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 :Nodinite: 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.

---

### :fa-browser: Direct Browser Access

#### Best For

Quick data checks, URL testing, debugging.

#### How to Use

1. Copy API URL from :Nodinite:
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

:Nodinite: 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.*

>[!NOTE]
>Your :Nodinite: role determines what data you can access via the API. The same permissions apply as in the Web Client.

#### 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 (:fa-arrows-left-right-to-line:) 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.*

>[!TIP]
>Uncheck "Use original column name as prefix" to keep column names short.

#### 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 :Nodinite::

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.

## :fa-circle-question: 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.

---

## :fa-hand-point-right: Next Steps

* :fa-clone: [Copy API URL][] – Copy the URL of a Log View search  
* :fa-magnifying-glass: [Find operations in Scalar or Swagger][Find Operations] – Every Web API operation, with test requests  
* :fa-key: [Call the Web API with OAuth 2.0 Client Credentials][OAuth Client Credentials] – Automate without a Windows identity  

## :fa-link-horizontal: Related Topics

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

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

[Base URL]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md#find-the-base-url
[Copy API URL]:{ndr}/Getting%20Started/2.%20Log/Copy%20API,%20Print,%20and%20Export%20to%20CSV.md#fa-clone-copy-api-url
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Find Operations]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md#find-operations
[Log Status Codes]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Status%20Code.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Monitoring Agents]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/What%20is%20a%20Monitor%20Agent.md
[Non Events Agent]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[OAuth Client Credentials]:{ndr}/Core%20Services/Web%20API/Scenarios/Call%20the%20Web%20API%20with%20OAuth%202.0%20Client%20Credentials.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[Windows Authentication]:{ndr}/Core%20Services/Web%20API/Scenarios/Call%20the%20Web%20API%20with%20Windows%20Authentication.md