# Getting the confluence Page FULL high-lighted text

**URL:** <https://community.developer.atlassian.com/t/getting-the-confluence-page-full-high-lighted-text/50367>\
**Category:** Confluence Cloud\
**Tags:** rest-api\
**Created:** [July 28, 2021, 10:27am UTC](https://community.developer.atlassian.com/t/getting-the-confluence-page-full-high-lighted-text/50367 "2021-07-28T10:27:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DawidWeiss](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@DawidWeiss](https://community.developer.atlassian.com/u/DawidWeiss)\
**Post date:** [July 28, 2021, 10:27am UTC](https://community.developer.atlassian.com/t/getting-the-confluence-page-full-high-lighted-text/50367/1 "2021-07-28T10:27:04Z")

</div>

Hi,  
I need to fetch “highlighted” text on which inline comment has been posted. Same as in this issue:

> [@Is there an API for getting the "Confluence Page high-lighted text" on which an "inline comment" has been posted](https://community.developer.atlassian.com/t/is-there-an-api-for-getting-the-confluence-page-high-lighted-text-on-which-an-inline-comment-has-been-posted/19470):
>
> I am developing an in-house plugin for fetching all the open,resolved,reopen inline comments on confluence. I can fetch the inline comments and the CommentStatus using the below APIs ContentEntityObject contentEntityObject = page.getEntity(); List\<Comment\> contentCommentList = contentEntityObject.getComments(); comment.isInlineComment() comment.getStatus() comment.getBodyAsStringWithoutMarkup() I can’t find an API in the confluence document for fetching me the (high-lighted) text on which th…

I’ve got problem with text being “croped” - if text is to long (more than 256 characters) it will be cut. Unfortunately, there is no answer in foregoing post.

At present I do GET request that looks like this:  
`http://my-project.com/confluence/rest/api/content/${my_page_id}?expand=extensions.inlineProperties`

and returns:

```auto
{

   extesnions : {
       inlineProperties: {
           originalSelection : "First 252 chars of my comment...",
           markerRef:"<someMarkerRef>"
      },
      ...
  }
  ...
}

```

How can I fetch full marked text? I can’t find “Get by marker-ref” api-request.

---

<div class="post-metadata">

**Author:** ![GrahamCarrick](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/grahamcarrick/32/47670_2.png) [@GrahamCarrick](https://community.developer.atlassian.com/u/GrahamCarrick)\
**Post date:** [May 10, 2023, 3:01am UTC](https://community.developer.atlassian.com/t/getting-the-confluence-page-full-high-lighted-text/50367/2 "2023-05-10T03:01:24Z")

</div>

I just stumbled upon this a few years later but adding my answer for anyone else who may find this.  
The ADF content for the page will have the full text of the highlighted text. You can identify it by finding an “Annotation” with an attribute matching the markerRef. See sample below(with redacted text)

```auto
 {
      "type": "paragraph",
      "content": [
        {
          "text": "REDACTED",
          "type": "text"
        },
        {
          "text": "REDACTED",
          "type": "text",
          "marks": [
            {
              "type": "annotation",
              "attrs": {
                "annotationType": "inlineComment",
                "id": "0dd942af-6904-4470-86b0-2f7558b3a2f9"
              }
            }
          ]
        },
        {
          "text": "REDACTED",
          "type": "text"
        }
      ]
    },

```
