Cogmap APIs
UPDATE: Significant changes have taken place. Here is the latest: http://www.cogmap.com/blog/2008/07/21/cogmap-api-update-july-2008cogmap-api-update-july-2008/
This is a unified post to point to all of our APIs. Each title links to more comprehensive documentation.
Every Cogmap org chart is available as an XOXO document.
Organization Chart Data is accessible as an XOXO document by calling a URL formatted as http://www.cogmap.com/xoxo.php?id=<CHART ID>
xoxo.php returns a nested set of unordered lists that describes the organization. Each listed item also contains several pieces of metadata associated with the list:
- personID: the ID in Cogmap’s database
- FirstName: Person’s first name
- LastName: Person’s last name
- TitleValue: Person’s title
- The title of the document is the chart’s name.
- http://www.cogmap.com/nameapi.php?chart=<Name of Company> will return either the map of that page or a page to create a new chart.
- http://www.cogmap.com/xoxonameapi.php?chart=<Name of Company> will return either the XOXO XML document of the organization structure of that company or a 404 error.
- http://www.cogmap.com/numbernameapi.php?chart=<Name of Company> will return the unique identifier of the chart ID for that company or a 404 error.
- Every profile page is actually an hCard. Munch it, crunch it, consume it.
- You can download vCards easy too. http://www.cogmap.com/vcard.php?id=<ID of Profile>
Newsfeed API