Get Microsoft Word Hyperlinks with NET REST API

This short guide shows you how to Java Aspose.Words developers can retrieve hyperlinks from a DOCX document using the Aspose.Words Cloud Java SDK and the REST API. You’ll see how to configure the client, send the request, and read the hyperlink information from the response.

Prerequisite

  1. Create a Configuration object by providing the ClientId and ClientSecret.
  2. Instantiate the WordsApi class using the custom configuration.
  3. Read the source Word file into a byte array for extracting hyperlinks.
  4. Create a GetDocumentHyperlinksOnlineRequest object by providing the loaded Word file.
  5. Call the GetDocumentHyperlinksOnline() method to fetch the list of hyperlinks in the file.
  6. Display the resulting hyperlinks list from the API response.

These steps illustrate how to work with hyperlinks in a Word document using the Java SDK. Create the WordsApi object, load the DOCX file, build the request with GetDocumentHyperlinksOnlineRequest, and finally invoke GetDocumentHyperlinksOnline() to obtain all hyperlinks and print them to the console.

The sample demonstrates retrieving Microsoft Word hyperlinks. The response contains a Hyperlinks object, which holds a collection of Hyperlink items. Each Hyperlink provides the display text, the link, and the actual URL value.

If you want to learn how to search for specific text inside a Word file, see the article: Search documents for text with Java REST API.

Keywords: get microsoft word hyperlinks with NET REST API; microsoft word hyperlinks with NET REST API; hyperlink in ms word with Java Low Code API; hyperlink in word document with Java REST API; find links in word document with NET REST API; how to use hyperlink in word with Java Low Code API.