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

# Search Utility Providers

> Returns a paginated list of utility providers in the Nectar catalog. Supports case-insensitive substring search on name and URL. Use the returned ID as ``prefill.datasourceId`` when creating a connection invitation.



## OpenAPI

````yaml /api-reference/openapi-v2-2.json get /datasource
openapi: 3.1.0
info:
  title: Nectar API Documentation
  version: 1.0.0 (v1)
  description: >-
    Complete API documentation for v2.2 endpoints to managing companies, sites,
    data, and documents
servers:
  - url: https://external.nectarclimate.com/v2.2
    description: Nectar API Server
security: []
paths:
  /datasource:
    get:
      tags:
        - Connections
      summary: Search Utility Providers
      description: >-
        Returns a paginated list of utility providers in the Nectar catalog.
        Supports case-insensitive substring search on name and URL. Use the
        returned ID as ``prefill.datasourceId`` when creating a connection
        invitation.
      operationId: datasource_retrieve
      parameters:
        - in: query
          name: page
          schema:
            type: integer
          description: Page number (default 1).
        - in: query
          name: pageSize
          schema:
            type: integer
          description: Items per page (default 100, max 500).
        - in: query
          name: search
          schema:
            type: string
          description: >-
            Case-insensitive substring to match against the provider name or
            URL.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDatasourcePaginated'
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: ''
        '403':
          description: 'Forbidden: invalid API key.'
      security:
        - ExternalAuthentication: []
components:
  schemas:
    ExternalDatasourcePaginated:
      type: object
      description: Paginated response envelope for the datasource search endpoint.
      properties:
        totalDatasources:
          type: integer
          description: Total number of matching utility providers.
        perPage:
          type: integer
          description: Number of entries per page.
        totalPages:
          type: integer
          description: Total number of pages.
        currentPage:
          type: integer
          description: Current page number.
        hasNext:
          type: boolean
          description: Indicates if there is a next page.
        hasPrevious:
          type: boolean
          description: Indicates if there is a previous page.
        datasources:
          type: array
          items:
            $ref: '#/components/schemas/ExternalDatasource'
          description: List of utility providers.
      required:
        - currentPage
        - datasources
        - hasNext
        - hasPrevious
        - perPage
        - totalDatasources
        - totalPages
    ErrorResponse:
      type: object
      description: Serializer for error responses.
      properties:
        detail:
          type: string
        error:
          type: string
    ExternalDatasource:
      type: object
      description: A utility provider known to Nectar that invitations can reference by ID.
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the utility provider.
        name:
          type: string
          description: Display name of the utility provider.
        url:
          type: string
          description: Web address of the utility provider's customer portal.
      required:
        - id
        - name
        - url
  securitySchemes:
    ExternalAuthentication:
      type: apiKey
      in: header
      name: X-API-KEY

````