Cogblog

The Official Blog of Cogmap, the Org Chart Wiki

 

 

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.

XOXO Organization Charts

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.

Name-based APIs

  1. 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.
  2. 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.
  3. 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.

hCards & vCards

  1. Every profile page is actually an hCard. Munch it, crunch it, consume it.
  2. You can download vCards easy too. http://www.cogmap.com/vcard.php?id=<ID of Profile>

Newsfeed API

  1. Consume your newsfeed! http://www.cogmap.com/newsfeed_xoxo.php?cogid=<your screen name> returns an XOXO XML document of your newsfeed. This makes it easy to turn your newsfeed into something consumed by other applications. Here is my newsfeed as an example.

Comments are closed.