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

# Get the search keywords that surfaced a Google Business Profile

> Returns the keywords people searched before seeing the location, aggregated by month over an inclusive YYYY-MM range. A low-volume keyword comes back with threshold and is_threshold=true instead of value: Google withholds the exact count and gives an upper bound, so treating a threshold as a count overstates the keyword. limit is capped at 100 by Google.



## OpenAPI

````yaml /api-reference/openapi.json get /platforms/google/accounts/{id}/search-keywords
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /platforms/google/accounts/{id}/search-keywords:
    get:
      tags:
        - Google
      summary: Get the search keywords that surfaced a Google Business Profile
      description: >-
        Returns the keywords people searched before seeing the location,
        aggregated by month over an inclusive YYYY-MM range. A low-volume
        keyword comes back with threshold and is_threshold=true instead of
        value: Google withholds the exact count and gives an upper bound, so
        treating a threshold as a count overstates the keyword. limit is capped
        at 100 by Google.
      parameters:
        - description: Connected account ID
          name: id
          in: path
          required: true
          schema:
            type: string
        - description: Inclusive start month, YYYY-MM
          name: start_month
          in: query
          required: true
          schema:
            type: string
        - description: Inclusive end month, YYYY-MM
          name: end_month
          in: query
          required: true
          schema:
            type: string
        - description: Keywords per page, maximum 100
          name: limit
          in: query
          schema:
            type: integer
        - description: Pagination cursor from a previous response
          name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/api_endpoints.GoogleSearchKeywordsResponse
        '400':
          description: Missing or invalid parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '404':
          description: Unknown account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '502':
          description: Upstream Google API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.GoogleSearchKeywordsResponse:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/social-api_ai_core_api_connectors_base.GBPKeywordsPage
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    social-api_ai_core_api_connectors_base.GBPKeywordsPage:
      type: object
      properties:
        keywords:
          type: array
          items:
            $ref: >-
              #/components/schemas/social-api_ai_core_api_connectors_base.GBPSearchKeyword
        next_cursor:
          type: string
    api_endpoints.ErrorBody:
      type: object
      properties:
        code:
          type: string
          example: resource.not_found
        message:
          type: string
          example: Account not found
        meta:
          type: object
          additionalProperties: {}
    social-api_ai_core_api_connectors_base.GBPSearchKeyword:
      type: object
      properties:
        is_threshold:
          type: boolean
        keyword:
          type: string
        threshold:
          type: integer
        value:
          type: integer
  securitySchemes:
    BearerAuth:
      description: >-
        Prefix your API key with "Bearer ". Example: `Authorization: Bearer
        sapi_key_...`
      type: apiKey
      name: Authorization
      in: header

````