Need to get members details by email id

Hi Raphel,

I want to get members details by email address …how to write the api for it

I wrote like this

https://fabman.io/api/v1/members?emailAddress=‘abc@gmail.com’

But getting the following error
{“statusCode”:400,“error”:“Bad Request”,“message”:"“emailAddress” is not allowed",“validation”:{“source”:“query”,“keys”:[“emailAddress”]}}
Please help me out

Regards,
Dilip.

Hi Dilipmar,

You can see all valid query parameters on the API documentation page for GET /members. emailAddress is not one of them – and you should also remove the quotes around the parameter.

You can use the general full-text query (q) to search for email addresses:

https://fabman.io/api/v1/members?q=abc@gmail.com

But this can contain some false positives (because it’s a full-text search on many properties of the member), so you should check the whole result list to find the member you’re looking for.