---
schema_version: "1"
id: 88af1d52eb438f34733ba8acde997eb39f32c4e9619ee4254d924c0c1ca0ec67
title: ConnectApi.HashtagSegment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_hash_msg_seg.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_hash_msg_seg.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0c03c05ed537291bc7a1f125df9efec728f80828300c6c6e6ab2aebda14c295c
description: Hashtag segment.
---
# ConnectApi.HashtagSegment

Hashtag segment.

Subclass of [ConnectApi.MessageSegment](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_msg_seg.htm "Message segment.").

| Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| tag | String | Text of the topic without the hash symbol (#). | 28.0 |
| topicUrl | String | Connect REST API Topics resource that searches for the topic:/services/data/v67.0/chatter​/topics?exactMatch=true&q=topic | 28.0 |
| url | String | Connect REST API Feed Items resource URL that searches for the topic in all feed items in an organization:/services/data/v67.0/chatter​/feed-items?q=topic | 28.0 |