Forum Discussion

nils-drews's avatar
10 years ago

API V1 User API call without profile possible?

Is it possible to skip the user profile when getting a user via the API? I just need the basic information and 80% of the reponse is the profile information which I want to skip. Is that possible?

  • RobertT's avatar
    RobertT
    10 years ago

    No worries

     

    If it is specific pieces of information you're looking to pull through the API you can pull this by appending information to the API call, for example to get the user's display name you'd call /users/id/123/login/

     

    or to get a specific setting/field from their profile you call /users/id/123/profiles/name/<name of profile field>/

    • nils-drews's avatar
      nils-drews
      Helper
      Our Lithium site is too old ... does not yet support v2 API.
  • You may be able to tweak your API call to narrow down the information returned, what are you looking for specifically? We still use some API v1 calls so I may be able to help.

     

    Can you give an example of the API call you're currently making?

    • nils-drews's avatar
      nils-drews
      Helper

      I think I got that already. The API call for a specific user /users/id/123 does contain the profile but when i hit just a search then it does not transfer this.

       

      Thx for your help offer!

      • RobertT's avatar
        RobertT
        Boss

        No worries

         

        If it is specific pieces of information you're looking to pull through the API you can pull this by appending information to the API call, for example to get the user's display name you'd call /users/id/123/login/

         

        or to get a specific setting/field from their profile you call /users/id/123/profiles/name/<name of profile field>/