# Get tags by location id

- **URL:** https://marketplace.gohighlevel.com/docs/ghl/social-planner/get-tags-location-id
- **Summary:** Retrieve all tags for a specific location with optional search and pagination

[Skip to main content](https://marketplace.gohighlevel.com/docs/ghl/social-planner/get-tags-location-id#__docusaurus_skipToContent_fallback)

Version: v3

Get tags by location id
=======================

GET 

https://services.leadconnectorhq.com/social-media-posting/:locationId/tags

Copy for LLMView as MarkdownOpen in ClaudeOpen in ChatGPTOpen in Cursor

Retrieve all tags for a specific location with optional search and pagination

### Requirements

#### Auth Method(s)

`OAuth Access Token``Private Integration Token`

#### Token Type(s)

`Sub-Account Token`

Request[​](https://marketplace.gohighlevel.com/docs/ghl/social-planner/get-tags-location-id#request "Direct link to request")

### Header Parameters

**Version** stringrequired

**Possible values:** \[`v3`\]

API Version

**Example:** `v3`

### Path Parameters

**locationId** stringrequired

Location Id

**Example:** `ve9EPM428h8vShlRW1KT`

### Query Parameters

**searchText** string

Search text string

**Example:** `test`

**limit** string

Limit

**Example:** `10`

**skip** string

Skip

**Example:** `0`

Responses[​](https://marketplace.gohighlevel.com/docs/ghl/social-planner/get-tags-location-id#responses "Direct link to Responses")

*   200
*   400
*   401
*   422

Successful response

*   application/json

*   Schema
*   Example (auto)

**Schema**

**success**booleanrequired

Success or Failure

**Example:** `true`

**statusCode**numberrequired

Status Code

**Example:** `200`

**message**stringrequired

Message

**Example:** `Fetched Tags by Location ID`

**results** object

Requested Results

**tags** object\[\]

Tags Data

*   Array \[\
    \
\
**tag**string\
\
Tag Name\
\
**Example:** `Primary Tag`\
\
**locationId**string\
\
Location Id\
\
**Example:** `Lx1EI6YIgQYMQi0ytFXv`\
\
**_id**string\
\
MongoDB document ID\
\
**Example:** `Lx1EI6YIgQYMQi0ytFXv`\
\
**createdBy**string\
\
Created By User Id\
\
**Example:** `Lx1EI6YIgQYMQi0ytFXv`\
\
**deleted**boolean\
\
Deleted boolean value\
\
**Example:** `false`\
\
**createdAt**string<date-time>\
\
Date when the record was created\
\
**Example:** `2023-08-02T00:00:00.000Z`\
\
**updatedAt**string<date-time>\
\
Date when the record was last updated\
\
**Example:** `2023-08-02T00:00:00.000Z`\
\
*   \]
    

**count**number

Count

**Example:** `3`

    {  "success": true,  "statusCode": 200,  "message": "Fetched Tags by Location ID",  "results": {    "tags": [      {        "tag": "Primary Tag",        "locationId": "Lx1EI6YIgQYMQi0ytFXv",        "_id": "Lx1EI6YIgQYMQi0ytFXv",        "createdBy": "Lx1EI6YIgQYMQi0ytFXv",        "deleted": false,        "createdAt": "2023-08-02T00:00:00.000Z",        "updatedAt": "2023-08-02T00:00:00.000Z"      }    ],    "count": 3  }}
> Common reference appendix (shared error/status catalog): see [../_shared-appendix.md](../_shared-appendix.md).
**name:** [Authorization](https://marketplace.gohighlevel.com/docs/ghl/social-planner/social-media-posting-api#authentication)
**type:** http**scheme:** bearer**bearerFormat:** JWT**in:** header**description:** Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.

*   curl
*   nodejs
*   python
*   php
*   java
*   go
*   ruby
*   powershell

*   CURL

    curl -L 'https://services.leadconnectorhq.com/social-media-posting/ve9EPM428h8vShlRW1KT/tags?searchText=test&limit=10' \-H 'Accept: application/json' \-H 'Version: v3' \-H 'Authorization: Bearer <Authorization>'

RequestCollapse all

Base URL

Edit

https://services.leadconnectorhq.com

Auth

Bearer Token

Parameters

locationId — pathrequired

Version — headerrequired\---v3

Show optional parameters

searchText — query

limit — query

skip — query

Send API Request

ResponseClear

Click the `Send API Request` button above and see the response here!
