Realty in US

免费增值
通过 Api Dojo | 已更新 vor 23 Tagen | Business
人气

9.9 / 10

延迟

1,597ms

服务等级

99%

Health Check

N/A

返回所有讨论

Agent Specific Search Errors for Property List

We’re building out a website for a Real Estate client and we’re trying to configure the ability to list her current and historical listings but we’re getting an error. All of the other endpoints are working great and we’re really happy with the API, can you let me know if we’re doing something wrong?

We were able to get the agent details and it returned this response:

{
“matching_rows”: 1,
“agents”: [
{
“address”: {
“line”: “5635 E Thomas Rd”,
“city”: “Phoenix”,
“state_code”: “AZ”,
“postal_code”: “85018”,
“country”: “US”
},
“areas_of_business”: [
“General Residential Sales”
],
“agent_rating”: 0,
“designations”: [],
“first_name”: “Petra”,
“has_photo”: false,
“id”: “6495e489fa0260390c38ce53”,
“is_realtor”: true,
“languages”: [],
“last_name”: “Simon”,
“last_updated”: “Fri, 13 Oct 2023 07:52:15 GMT”,
“marketing_area_cities”: [
{
“name”: “Phoenix”,
“state_code”: “AZ”,
“city_state”: “Phoenix_AZ”
}
],
“mls_monetization”: false,
“nar_only”: 1,
“nrds_id”: “145514810”,
“person_name”: “Petra Elisabeth Simon”,
“recommendations_count”: 0,
“review_count”: 0,
“role”: “nar agent”,
“served_areas”: [
{
“name”: “Phoenix”,
“state_code”: “AZ”
}
],
“settings”: {},
“specializations”: [],
“types”: “agent”,
“web_url”: “https://www.realtor.com/realestateagents/Petra-Elisabeth-Simon_Phoenix_AZ__981584458”,
“zips”: [
“85018”
],
“full_name”: “Petra Simon”,
“name”: "Petra Elisabeth Simon, ",
“for_sale_price”: {
“count”: 0,
“last_listing_date”: null,
“max”: 0,
“min”: 0
},
“recently_sold”: {
“count”: 0,
“last_sold_date”: null,
“max”: 0,
“min”: 0
},
“agent_team_details”: {
“is_team_member”: false
}
}
]
}

We first tried to the agent get listings endpoint, but it required an advertiser_id, which wasn’t included. So we sent the following payload for the get listings endpoint:

{
“limit”: 200,
“offset”: 0,
“search_location”: {
“location”: “Scottsdale, AZ”,
“radius”: 20
},
“agent_source_id”: “6495e489fa0260390c38ce53”,
“status”: [
“active”,
“for_sale”,
“for_rent”,
“off_market”,
“sold”,
“ready_to_build”,
“other”
],
“sort”: {
“direction”: “desc”,
“field”: “list_date”
}
}

When we try it, it raises a 500 error and returns:

{
“errors”: [
{
“message”: “SearchAPI Error”,
“locations”: [
{
“line”: 16,
“column”: 3
}
],
“path”: [
“home_search”
],
“extensions”: {
“code”: “SEARCH_API_ERROR”,
“message”: “SearchAPI Error”,
“name”: “SearchAPIError”,
“time_thrown”: “2023-10-21T03:52:54.288Z”,
“data”: {
“code”: “5xx”,
“eCode”: “SEARCH_API_ERROR”,
“error”: “ValidationMessage”,
“message”: ““agent_source_id” missing required peer “source_id””,
“description”: “A validation error occurred”
},
“path”: [
“home_search”
],
“locations”: [
{
“line”: 16,
“column”: 3
}
]
},
“name”: “SearchAPIError”,
“time_thrown”: “2023-10-21T03:52:54.288Z”,
“data”: {
“code”: “5xx”,
“eCode”: “SEARCH_API_ERROR”,
“error”: “ValidationMessage”,
“message”: ““agent_source_id” missing required peer “source_id””,
“description”: “A validation error occurred”
},
“code”: “SEARCH_API_ERROR”
}
],
“data”: {
“home_search”: null
}
}

I didn’t see any spot for a source_id in the param list or in the agent response. Is there something we’re doing wrong?

Rapid account: Apidojo
apidojo Commented vor 6 Monaten

Hello,

1/ You are interested in …/agents/get-listings endpoint.
2/ Please read the table parameter description carefully. You may read other discussion to know how to open it.

Regards.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论