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

# Get user sites

Returns the websites you have configured in the **[website connector](https://adgreg.com/dashboard/quickconfig)** in your Adgreg dashboard.

Each item in the response contains one Adgreg website with the list of adnetwork site IDs linked to it.

<Note>
  The `website_id` values returned here are Adgreg-issued IDs. Use them when querying statistics — Adgreg will automatically resolve which adnetwork sites belong to that website.
</Note>


## OpenAPI

````yaml GET /user-sites
openapi: 3.1.0
info:
  title: AdGreg API
  version: 0.1.0
servers:
  - url: https://api.adgreg.com
security: []
paths:
  /user-sites:
    get:
      tags:
        - Dashboard configuration
      summary: Get User Sites
      operationId: get_user_sites_user_sites_get
      parameters:
        - name: ad_network
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/AdNetwork'
              - type: 'null'
            title: Ad Network
        - name: site_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Site Id
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 10
            default: 100
            title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserSitesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    AdNetwork:
      type: string
      enum:
        - exoclick
        - trafficstars
        - kadam
        - clickadilla
        - onclicka
        - twinred
        - trafficshop
        - hilltop
      title: AdNetwork
    UserSitesResponse:
      properties:
        page:
          type: integer
          title: Page
        sites:
          type: integer
          title: Sites
        page_size:
          type: integer
          title: Page Size
        page_count:
          type: integer
          title: Page Count
        response:
          items:
            $ref: '#/components/schemas/UserSiteItem'
          type: array
          title: Response
      type: object
      required:
        - page
        - sites
        - page_size
        - page_count
        - response
      title: UserSitesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UserSiteItem:
      properties:
        website:
          type: string
          title: Website
        website_id:
          type: integer
          title: Website Id
        api_websites:
          items:
            $ref: '#/components/schemas/ApiWebsite'
          type: array
          title: Api Websites
      type: object
      required:
        - website
        - website_id
        - api_websites
      title: UserSiteItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ApiWebsite:
      properties:
        adnetwork:
          type: string
          title: Adnetwork
        site_id:
          type: string
          title: Site Id
        website_name:
          type: string
          title: Website Name
      type: object
      required:
        - adnetwork
        - site_id
        - website_name
      title: ApiWebsite
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````