@ohbergan (Ohbergan) posted a new topic, subject "[Solved] Help with api search". It read:

   Hello, I need help to understand how I use this: https://bubble.io/reference#API.get_api.search_call  
    I would appichiate help!  
    I need to learn this thing inside the api (Getting a list of things and search)

So @sridharan.s (Scott Barnett) replied

    Have you searched the forums? There's a lot of good commentary around how to use the API, along with screenshots, walkthroughs, etc.
    
    Additionally, some people have created video's to explain APIs with Bubble. I suspect Gaby has one on her Youtube channel. So that'd be another place to look.

To which @ohbergan (Ohbergan) replied

    I have but I cant seem to find the one that learn me about the “Getting a list of things and search” part of the api. Do you have a link that explain the “Getting a list of things and search” part better than the API reference?

So @ohbergan (Ohbergan) replied

    I had to read, read and read the reference and I had to try many times before I finelly found this out myself since no one else could help me.
    
    This is the full url I was looking for:  
    `https://appname.bubbleapps.io/version-test/api/1.1/obj/user/?constraints=[{"key":"username","constraint_type":"equals","value":"ThisIsAUsername"}&sort_field=username&limit=1`
    
    This is the part of the url that I acually needed:  
    `?constraints=[{"key":"username","constraint_type":"equals","value":"ThisIsAUsername"}&sort_field=username&limit=1`
    
    I still needed to encode the url but that was easy as I just needed to paste it in the url bar in chrome then hit enter and it would encode the url for me.
    
    Here is what I got from the final url:  
    {  
    “response”: {  
    “results”: [  
    {  
    “Created Date”: “2018-07-30T21:52:09.716Z”,  
    “Modified Date”: “2018-08-01T18:02:31.646Z”,  
    “user_signed_up”: true,  
    “authentication”: {  
    “email”: {  
    “email”: "rsalinas@example.org",  
    “email_confirmed”: null  
    }This text will be hidden  
    },  
    “username”: “ThisIsAUsername”,  
    “verified”: false,  
    “verification-code”: “cGdeRT”,  
    “_id”: “1532987529712x228492892347276200”,  
    “_type”: “user”  
    }  
    ],  
    “cursor”: 0,  
    “count”: 1,  
    “remaining”: 0  
    }  
    }

After which, @patricia (Patricia) added

    Thanks for posting @ohbergan \- I haven't started with APIs yet so I was unable to help but I'm studiously attempting to post solutions I build/find out for myself too. I appreciate you posting the solution. At least I know where to look when I need it.


{'source': 'discourse', 'url': 'https://forum.bubble.io/t/solved-help-with-api-search/34813', 'title': '[Solved] Help with api search', 'views': 503, 'has_accepted_answer': True, 'word_count': 368, 'like_count': 3, 'reply_count': 2, 'participant_count': 3, 'posts': 5, 'tags': '', 'author': '@ohbergan (Ohbergan)', 'participants': '@ohbergan (Ohbergan), @sridharan.s (Scott Barnett), @patricia (Patricia)', 'image_url': [None], 'created_at': '2018-08-01T16:38:20.941Z', 'last_posted_at': '2018-08-02T09:22:40.470Z'}