> ## Documentation Index
> Fetch the complete documentation index at: https://info.bundle.social/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Threads locations

> Searches locations by text or by latitude and longitude. Pass `locationId` and `name` as data.THREADS.locationId and data.THREADS.locationName to tag the location on a post. Returns 403 when the connected Threads account has not granted the permission: disconnect and reconnect it.



## OpenAPI

````yaml https://api.bundle.social/swagger-json get /api/v1/misc/threads/locations
openapi: 3.0.2
info:
  title: bundle.social API
  description: >-
    REST API for social media management. Perfect for AI assistants, GPTs,
    automation tools, and integrations. Post to 14+ platforms including Twitter,
    Instagram, Facebook, LinkedIn, TikTok, Pinterest, Reddit, Discord, Slack,
    YouTube, Mastodon, Bluesky, Threads, and Google Business. Schedule posts,
    manage content, analyze performance, and automate your social media workflow
    across all platforms.
  version: 1.0.0
  contact:
    email: contact@bundle.social
  termsOfService: https://bundle.social/terms
servers:
  - url: https://api.bundle.social
  - url: http://localhost:3001
security:
  - ApiKeyAuth: []
tags:
  - name: app
  - name: organization
  - name: team
  - name: socialAccount
  - name: upload
  - name: post
  - name: postImport
  - name: analytics
  - name: comment
  - name: conversation
    description: >-
      Read and reply to Instagram and Facebook direct message conversations,
      react to messages, and send private replies to comments.
  - name: automation
    description: >-
      Build, publish and monitor automation flows that react to incoming
      messages and comments, plus the per-account provider settings they rely
      on.
  - name: misc
  - name: postCSV
paths:
  /api/v1/misc/threads/locations:
    get:
      tags:
        - misc
      summary: Search Threads locations
      description: >-
        Searches locations by text or by latitude and longitude. Pass
        `locationId` and `name` as data.THREADS.locationId and
        data.THREADS.locationName to tag the location on a post. Returns 403
        when the connected Threads account has not granted the permission:
        disconnect and reconnect it.
      operationId: misc.threads.searchLocations
      parameters:
        - name: teamId
          in: query
          required: true
          schema:
            type: string
        - name: q
          in: query
          description: Free-text query, e.g. a place or a city.
          schema:
            type: string
            minLength: 1
            maxLength: 100
        - name: latitude
          in: query
          description: Search around a point. Needs `longitude`.
          schema:
            type: number
            minimum: -90
            maximum: 90
            nullable: true
        - name: longitude
          in: query
          description: Search around a point. Needs `latitude`.
          schema:
            type: number
            minimum: -180
            maximum: 180
            nullable: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        locationId:
                          type: string
                          description: Location ID to pass as data.THREADS.locationId.
                        name:
                          type: string
                          description: Location name to pass as data.THREADS.locationName.
                        address:
                          type: string
                          nullable: true
                        city:
                          type: string
                          nullable: true
                        country:
                          type: string
                          nullable: true
                        postalCode:
                          type: string
                          nullable: true
                        latitude:
                          type: number
                          nullable: true
                        longitude:
                          type: number
                          nullable: true
                      required:
                        - locationId
                        - name
                required:
                  - items
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          enum:
                            - invalid_type
                            - invalid_literal
                            - custom
                            - invalid_union
                            - invalid_union_discriminator
                            - invalid_enum_value
                            - unrecognized_keys
                            - invalid_arguments
                            - invalid_return_type
                            - invalid_date
                            - invalid_string
                            - too_small
                            - too_big
                            - invalid_intersection_types
                            - not_multiple_of
                            - not_finite
                          nullable: true
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            oneOf:
                              - type: string
                              - type: number
                          nullable: true
                      required:
                        - message
                    nullable: true
                required:
                  - message
        '401':
          description: '401'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                required:
                  - message
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                required:
                  - message
        '404':
          description: '404'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                required:
                  - message
        '429':
          description: '429'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                required:
                  - message
        '500':
          description: '500'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                required:
                  - message
        '502':
          description: '502'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                required:
                  - message
        '503':
          description: '503'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                required:
                  - message
        '504':
          description: '504'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  type:
                    type: string
                    nullable: true
                    description: >-
                      Machine-readable error type on some 4xx responses. Current
                      values: RECONNECT_REQUIRED.
                required:
                  - message
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.