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

# List ad terms

> Returns the paid search terms of the site with their spend, clicks and visibility in AI answers. Use `date_range` to select the period (`7g`, `1a`, `3a`, `6a`, `1y` or `custom` with `since` and `until`). The list is paged with `page` and `page_size`.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/sites/{site_uuid}/search-performance/ad-terms
openapi: 3.0.3
info:
  title: Perquery API
  version: 1.0.0
  description: Read-only access to the data of your Perquery organization.
servers:
  - url: https://perquery.ai/api
security:
  - apiKey: []
paths:
  /v1/sites/{site_uuid}/search-performance/ad-terms:
    get:
      tags:
        - Search performance
      summary: List ad terms
      description: >-
        Returns the paid search terms of the site with their spend, clicks and
        visibility in AI answers. Use `date_range` to select the period (`7g`,
        `1a`, `3a`, `6a`, `1y` or `custom` with `since` and `until`). The list
        is paged with `page` and `page_size`.
      operationId: ad_term_table
      parameters:
        - in: query
          name: date_range
          schema:
            enum:
              - 7g
              - 1a
              - 3a
              - 6a
              - 1y
              - custom
            type: string
            default: 1a
            minLength: 1
          description: |-
            * `7g` - 7g
            * `1a` - 1a
            * `3a` - 3a
            * `6a` - 6a
            * `1y` - 1y
            * `custom` - custom
        - in: query
          name: page
          schema:
            type: integer
            minimum: 1
            default: 1
        - in: query
          name: page_size
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
        - in: query
          name: since
          schema:
            type: string
            format: date
          description: The first day of a `custom` range.
        - in: path
          name: site_uuid
          schema:
            type: string
            format: uuid
          required: true
        - in: query
          name: until
          schema:
            type: string
            format: date
          description: The last day of a `custom` range.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaidTableResponse'
          description: ''
      security:
        - apiKey: []
components:
  schemas:
    PaidTableResponse:
      type: object
      properties:
        rows:
          type: array
          items:
            $ref: '#/components/schemas/PaidRowResponse'
        total:
          type: integer
        page:
          type: integer
        page_size:
          type: integer
        total_pages:
          type: integer
        currency:
          type: string
        overspending:
          type: integer
        uncovered:
          type: integer
        tracked_spend:
          type: number
          format: double
        market:
          type: string
      required:
        - currency
        - market
        - overspending
        - page
        - page_size
        - rows
        - total
        - total_pages
        - tracked_spend
        - uncovered
    PaidRowResponse:
      type: object
      properties:
        prompt_uuid:
          type: string
        prompt_text:
          type: string
        keyword:
          type: string
        ai_visibility:
          type: number
          format: double
        organic_position:
          type: number
          format: double
          nullable: true
        cost:
          type: number
          format: double
        clicks:
          type: integer
        impressions:
          type: integer
        average_cpc:
          type: number
          format: double
          nullable: true
        verdict:
          $ref: '#/components/schemas/PaidVerdict'
        gap:
          type: number
          format: double
      required:
        - ai_visibility
        - average_cpc
        - clicks
        - cost
        - gap
        - impressions
        - keyword
        - organic_position
        - prompt_text
        - prompt_uuid
        - verdict
    PaidVerdict:
      enum:
        - aligned
        - overspending
        - uncovered
      type: string
      description: |-
        * `aligned` - aligned
        * `overspending` - overspending
        * `uncovered` - uncovered
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: '`ApiKey pq_<prefix>_<secret>`. An API key gives read-only access.'

````

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