hi,
I am new to using the nation builder api. I have added multiple contacts to my account and trying to search on them using various fields. But I am unable to get the results.
The following person exists in my contacts and i can get it when I use first_name and last_name in the search parameters, but If i use city or state i am unable to get results.
https://slugName.nationbuilder.com/api/v1/people/search?first_name=Jennifer&last_name=Rolle
primary_address: {
Hi Ella,
There was an issue with people#search
where instead of searching the primary address, the home address of people was searched instead (people in NationBuilder can have up to 7 different addresses, more on that here - including how to set primary address for a person). This explains why you weren't seeing results through the API as your nation didn't have any home addresses that matched what you were searching for.
A fix was pushed out today, and searching city
or state
through people#search
should now return results that match based on the primary addresses of folks in your nation.
Best,
Alex
Showing 5 reactions
Sign in with
Jeffrey – your issue appears to be more related to how the request was made, if you can reproduce that in the API Explorer and get in touch at [email protected] I can look more into that for you.
Response BodySelect body
{
“code”: “bad_request”,
“message”: “Bad Request.”
}