You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/content-understanding/quickstart/use-rest-api.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,15 +41,8 @@ Analyzers define how your content is processed and the insights that are extract
41
41
This quickstart uses prebuilt document, image, audio, and video analyzers to help you get started.
42
42
43
43
### Send file for analysis
44
-
#### POST request
45
44
46
-
```bash
47
-
curl -i -X POST "{endpoint}/analyzers/{analyzerId}:analyze?api-version=2025-05-01-preview" \
48
-
-H "Ocp-Apim-Subscription-Key: {key}" \
49
-
-H "Content-Type: application/json" \
50
-
-d "{\"url\":\"{fileUrl}\"}"
51
-
```
52
-
Before running the cURL command, make the following changes to the HTTP request:
45
+
Before running the following cURL command, make the following changes to the HTTP request:
53
46
# [Document](#tab/document)
54
47
55
48
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
@@ -75,12 +68,21 @@ Before running the cURL command, make the following changes to the HTTP request:
75
68
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/FlightSimulator.mp4`.
76
69
---
77
70
71
+
#### POST request
78
72
79
-
#### POST response
73
+
```bash
74
+
curl -i -X POST "{endpoint}/contentunderstanding/analyzers/{analyzerId}:analyze?api-version=2025-05-01-preview" \
75
+
-H "Ocp-Apim-Subscription-Key: {key}" \
76
+
-H "Content-Type: application/json" \
77
+
-d "{\"url\":\"{fileUrl}\"}"
78
+
```
80
79
81
-
The response returns `resultId` that you can use to track the status of this asynchronous analyze operation.
80
+
#### POST response
81
+
The response includes a JSON body containing the `resultId`, which you use to retrieve the results of the asynchronous analysis operation. Additionally, the `Operation-Location` header provides the direct URL to access the analysis result.
@@ -109,7 +111,7 @@ curl -i -X GET "{endpoint}/contentunderstanding/analyzerResults/{resultId}?api-v
109
111
110
112
#### GET response
111
113
112
-
The 200 (`OK`) JSON response includes a `status` field indicating the status of the operation. If the operation isn't complete, the value of `status` is `running` or `notStarted`. In such cases, you should send the `GET` request again, either manually or through a script. Wait an interval of one second or more between calls.
114
+
The 200 (`OK`) JSON response includes a `status` field indicating the status of the operation. If the operation isn't complete, the value of `status` is `Running` or `NotStarted`. In such cases, you should send the `GET` request again, either manually or through a script. Wait an interval of one second or more between calls.
113
115
114
116
# [Document](#tab/document)
115
117
@@ -353,3 +355,4 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
353
355
Learn more about [analyzers](../concepts/analyzer-templates.md) for your use case.
Copy file name to clipboardExpand all lines: articles/ai-services/content-understanding/tutorial/create-custom-analyzer.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Create a custom analyzer with Azure AI Content Understanding
2
+
title: Create a custom analyzer with Azure AI Content Understanding using REST APIs
3
3
titleSuffix: Azure AI services
4
4
description: Learn to create a custom analyzer with Azure AI Content Understanding
5
5
author: laujan
@@ -10,7 +10,7 @@ ms.topic: overview
10
10
ms.date: 05/19/2025
11
11
---
12
12
13
-
# Create a custom analyzer
13
+
# Create a custom analyzer via REST APIs
14
14
15
15
Content Understanding analyzers define how to process and extract insights from your content. They ensure uniform processing and output structure across all your content to deliver reliable and predictable results. We offer [prebuilt analyzers](../concepts/prebuilt-analyzers.md) for common use cases. This guide shows how these analyzers can be customized to better fit your needs.
16
16
@@ -587,3 +587,9 @@ A `200 OK` response includes a `status` field that shows the operation's progres
0 commit comments