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

# /energystar/upcs/search

> Resolve retail barcodes against the ENERGY STAR register, in either direction: give a UPC to find the certified model it belongs to, or give an ENERGY STAR product id to list every barcode registered for that model. Each row carries the product id, the barcode, the brand, model name and number, the programme category and sub-type, and whether the model meets the Most Efficient criteria.

**Price:** 5 credits

**⚠️ Common errors:** 412: Neither that barcode nor that product id has a registered barcode row., 422: Neither upc nor pd_id was given.



## OpenAPI

````yaml /openapi/gov-public-sector.json post /api/energystar/upcs/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/energystar/upcs/search:
    post:
      tags:
        - /energystar
      summary: /energystar/upcs/search
      description: >-
        Resolve retail barcodes against the ENERGY STAR register, in either
        direction: give a UPC to find the certified model it belongs to, or give
        an ENERGY STAR product id to list every barcode registered for that
        model. Each row carries the product id, the barcode, the brand, model
        name and number, the programme category and sub-type, and whether the
        model meets the Most Efficient criteria.


        **Price:** 5 credits


        **⚠️ Common errors:** 412: Neither that barcode nor that product id has
        a registered barcode row., 422: Neither upc nor pd_id was given.
      operationId: __api_energystar_upcs_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnergystarUpcsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EnergystarUpc'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EnergystarUpcsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        upc:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        pd_id:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        count:
          type: integer
          maximum: 5000
          minimum: 1
      type: object
      required:
        - count
    EnergystarUpc:
      properties:
        '@type':
          type: string
          default: EnergystarUpc
        id:
          type: string
        pd_id:
          type: string
        upc:
          type: string
        brand:
          anyOf:
            - type: string
            - type: 'null'
        model_name:
          anyOf:
            - type: string
            - type: 'null'
        model_number:
          anyOf:
            - type: string
            - type: 'null'
        energy_star_model_identifier:
          anyOf:
            - type: string
            - type: 'null'
        product_type:
          anyOf:
            - type: string
            - type: 'null'
        product_program_category:
          anyOf:
            - type: string
            - type: 'null'
        is_most_efficient:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
      required:
        - id
        - pd_id
        - upc
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````