Extracts the content of documents from URLs.
Try it now
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Try it now
RAM authorization
The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. For more information, see the following:
- Operation: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the operation. For more information, see the following:
- Required resource types are marked with an asterisk (*) prefix.
- For operations that do not support resource-level authorization,
All Resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:DocumentExtraction | get | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | Unique identifier of the workspace: AgentKey | xxxxx_p_efm |
| Urls | array | Yes | List of URLs to extract. | |
| Url | string | Yes | URL. The URL length cannot exceed 2048 characters. | http://www.example.com/ |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | Status code | successful |
| Data | array<object> | Business data | |
| Data | object | Document object | |
| Author | string | Author | Author |
| Content | string | Content | Article content |
| DocId | string | Custom unique ID for the document | Custom unique ID for document |
| DocUuid | string | Internal unique identifier for the document | 8df2d69d63a247b6b52ff455b2d426b6 |
| PubTime | string | Publication time | 2024-05-14 08:54:33 |
| Source | string | Source | News source |
| Summary | string | Article summary | Article summary |
| Tag | string | Tag | Article tag |
| Title | string | Title | Article title |
| Url | string | Article URL | https://www.example.com/aaa.docx |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error message | successful |
| RequestId | string | Unique request identifier | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Indicates success: true for success, false for failure | true |
Examples
Success response
JSON format