:doc:`CustomerProfiles <../../customer-profiles>` / Client / get_profile_recommendations

***************************
get_profile_recommendations
***************************



.. py:method:: CustomerProfiles.Client.get_profile_recommendations(**kwargs)

  

  Fetches the recommendations for a profile in the input Customer Profiles domain. Fetches all the profile recommendations

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/GetProfileRecommendations>`_  


  **Request Syntax**
  ::

    response = client.get_profile_recommendations(
        DomainName='string',
        ProfileId='string',
        RecommenderName='string',
        Context={
            'string': 'string'
        },
        MaxResults=123
    )
    
  :type DomainName: string
  :param DomainName: **[REQUIRED]** 

    The unique name of the domain.

    

  
  :type ProfileId: string
  :param ProfileId: **[REQUIRED]** 

    The unique identifier of the profile for which to retrieve recommendations.

    

  
  :type RecommenderName: string
  :param RecommenderName: **[REQUIRED]** 

    The unique name of the recommender.

    

  
  :type Context: dict
  :param Context: 

    The contextual metadata used to provide dynamic runtime information to tailor recommendations.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of recommendations to return. The default value is 10.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Recommendations': [
              {
                  'CatalogItem': {
                      'Id': 'string',
                      'Name': 'string',
                      'Code': 'string',
                      'Type': 'string',
                      'Category': 'string',
                      'Description': 'string',
                      'AdditionalInformation': 'string',
                      'ImageLink': 'string',
                      'Link': 'string',
                      'CreatedAt': datetime(2015, 1, 1),
                      'UpdatedAt': datetime(2015, 1, 1),
                      'Price': 'string',
                      'Attributes': {
                          'string': 'string'
                      }
                  },
                  'Score': 123.0
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Recommendations** *(list) --* 

        List of recommendations generated by the recommender.

        
        

        - *(dict) --* 

          Represents a single recommendation generated by the recommender system.

          
          

          - **CatalogItem** *(dict) --* 

            The catalog item being recommended, including its complete details and attributes.

            
            

            - **Id** *(string) --* 

              The unique identifier for the catalog item.

              
            

            - **Name** *(string) --* 

              The display name of the catalog item.

              
            

            - **Code** *(string) --* 

              The product code or SKU of the catalog item.

              
            

            - **Type** *(string) --* 

              The type classification of the catalog item.

              
            

            - **Category** *(string) --* 

              The category to which the catalog item belongs.

              
            

            - **Description** *(string) --* 

              A detailed description of the catalog item.

              
            

            - **AdditionalInformation** *(string) --* 

              Supplementary information about the catalog item beyond the basic description.

              
            

            - **ImageLink** *(string) --* 

              The URL link to the item's image.

              
            

            - **Link** *(string) --* 

              The URL link to the item's detailed page or external resource.

              
            

            - **CreatedAt** *(datetime) --* 

              The timestamp when the catalog item was created.

              
            

            - **UpdatedAt** *(datetime) --* 

              The timestamp when the catalog item was last updated.

              
            

            - **Price** *(string) --* 

              The price of the catalog item.

              
            

            - **Attributes** *(dict) --* 

              Additional attributes or properties associated with the catalog item stored as key-value pairs.

              
              

              - *(string) --* 
                

                - *(string) --* 
          
        
        
          

          - **Score** *(float) --* 

            Recommendation Score between 0 and 1.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`CustomerProfiles.Client.exceptions.BadRequestException`

  
  *   :py:class:`CustomerProfiles.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`CustomerProfiles.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CustomerProfiles.Client.exceptions.ThrottlingException`

  
  *   :py:class:`CustomerProfiles.Client.exceptions.InternalServerException`

  