Introduction
Welcome to the API for AgentRank.com! We've got REST endpoints serving up your choice of XML or JSON. Please feel welcome to to check it out!
Disclaimer
You are free to use agentrank.com/api as long as you agree to the terms of service.
REST
This API supports a Representational State Transfer (REST) model for accessing a set of resources through a fixed set of operations. The following resources are accessible through the RESTful model:
- /agent/contact/{username}
- /agent/get/{username}
- /agents/find
- /forecasts/agent/{username}
- /forecasts/market
- /market/get
- /profile/get/{username}
- /profiles/find
- /reviews/agent/{username}
- /sales/agent/{username}
- /user/add/{role}
There is also a WADL document describing the REST API.
Data
All endpoints act on a common set of data. The data can be represented in different data formats (i.e. MIME types), depending on the endpoint that consumes and/or produces the data. The data can described by XML Schema, which definitively describes the XML representation of the data, but is also useful for describing the other formats of the data, such as JSON.
This document will describe the data using terms based on XML Schema. Data can be grouped by namespace, with a schema document describing the elements and types of the namespace. Generally speaking, types define the structure of the data and elements are instances of a type. For example, elements are usually produced by (or consumed by) a REST endpoint, and the structure of each element is described by its type.
Data Schemas
| id | namespace | schema file |
|---|---|---|
| ns0 | Default Namespace | ns0.xsd |
XML Data Elements
- namespace ns0
XML Data Types
-
namespace ns0
- agent
- agents
- contactAgent
- content
- editUser
- findAgents
- findProfiles
- forecast
- forecasting
- forecasts
- getAgent
- getForecasting
- getMarket
- getProfile
- getReviews
- getSales
- histories
- history
- image
- link
- links
- location
- locations
- market
- messages
- photoSize
- photoSizes
- profile
- profiles
- review
- reviews
- sale
- sales
- status