Skip to main content

DocumentExtraction

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 Resources is 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.
OperationAccess levelResource typeCondition keyDependent action
aimiaobi:DocumentExtractionget
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
AgentKeystringYes

Unique identifier of the workspace: AgentKey

xxxxx_p_efm
UrlsarrayYes

List of URLs to extract.

UrlstringYes

URL. The URL length cannot exceed 2048 characters.

http://www.example.com/

Response elements

NameTypeDescriptionExample value
object

PlainResult

Codestring

Status code

successful
Dataarray<object>

Business data

Dataobject

Document object

Authorstring

Author

Author
Contentstring

Content

Article content
DocIdstring

Custom unique ID for the document

Custom unique ID for document
DocUuidstring

Internal unique identifier for the document

8df2d69d63a247b6b52ff455b2d426b6
PubTimestring

Publication time

2024-05-14 08:54:33
Sourcestring

Source

News source
Summarystring

Article summary

Article summary
Tagstring

Tag

Article tag
Titlestring

Title

Article title
Urlstring

Article URL

https://www.example.com/aaa.docx
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

successful
RequestIdstring

Unique request identifier

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Successboolean

Indicates success: true for success, false for failure

true

Examples

Success response JSON format
{
  "Code": "successful",
  "Data": [
    {
      "Author": "Author",
      "Content": "Article content",
      "DocId": "Custom unique ID for document",
      "DocUuid": "8df2d69d63a247b6b52ff455b2d426b6",
      "PubTime": "2024-05-14 08:54:33",
      "Source": "News source",
      "Summary": "Article summary",
      "Tag": "Article tag",
      "Title": "Article title",
      "Url": "https://www.example.com/aaa.docx"
    }
  ],
  "HttpStatusCode": 200,
  "Message": "successful",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true
}

Error codes

Visit the Error Center to view more error codes.