Ning Developer Network

Ning Developer Admin

Atom API Querying Examples

Base URL for all API requests*1
Network Specific http://networkurl
*1 use https:// and HTTP Basic Authentication for any operation for which you want to retrieve private data; this operation can only be made by the network owner

Atom Endpoints for Fetching data (GET)*
/content(C)
Returns a feed of content entries.
/content(C)/rollup(R) Returns a feed of <xn:rollup /> elements describing content rolled-up as indicated by R.
/application
Returns a feed containing an <entry /> describing the current application, if that application exists.
/profile(P)
Returns a feed of profiles matching selector P
/content(C)/tag
Returns a feed of tags for content matching selector C.
/tag(T)/content
Returns a feed of content tagged with tags matching selector T.
/tag(T)/rollup(R) Returns a feed of <xn:rollup /> elements describing tags against all content in the app
 rolled up by frequency.
* application parenting (clones) and roles stystem related endpoints not listed for summarization purposes check the complete list at http://lear.ning.com/old-documentation/app/sections/rest.php

Examples
Basic account information for the user of id david on Network Creators
http://networkcreators.ning.com/xn/atom/1.0/profile(id='david')
Information of the user profile*1 of the member of id david on Network Creators
http://networkcreators.ning.com/xn/atom/1.0/content(type='User'&author='david')
Basic account information for the user of id david on Network Creators in JSON format
http://networkcreators.ning.com/xn/rest/1.0/profile:david
List of friends of the user of id david on Network Creators in JSON format
http://networkcreators.ning.com/xn/rest/1.0/profile:david/contact(relationship='friend')
The 100 most recent public contents*2 (of any type) on the Developer Network
http://developer.ning.com/xn/atom/1.0/content?order=published@D
The 10 most viewed photos on Brooklyn Art Project
http://brooklynartproject.ning.com/xn/atom/1.0/content(type='Photo')?order=my.viewCount@D&from=0&to=10
The 10 most voted photos tagged with brooklynbattle on Brooklyn Art Project
http://brooklynartproject.ning.com/xn/atom/1.0/tag(value='brooklynbattle')/content(type='Photo')?order=my.ratingCount@D&from=0&to=10
The 5 most commented forum topics in Network Creators of all time
http://networkcreators.ning.com/xn/atom/1.0/content(type='Topic'&my.xg_forum_commentCount>1)?order=my.xg_forum_commentCount@D&from=0&to=5
The first 5 forum topics of Jetset Show
http://jetsetshow.ning.com/xn/atom/1.0/content(type='Topic')?order=published@A&from=0&to=5
The number of Users on the Developer Network (check the value of <xn:rollup key="User"> )
http://developer.ning.com/xn/atom/1.0/content/rollup(field='type')
Friends of a specific user by Ning ID:
http://yar.ning.com/xn/atom/1.0/content(type%20eic%20%27User%27&author%20in%20friends(%27NING_ID%27))?from=0&to=100
The number of content objects on the Developer Network by author
http://developer.ning.com/xn/atom/1.0/content/rollup(field='author')
*1: currently, if the network contains private questions the user profile information is private
*2: forum replies, and comments are currently private by default, so they will not show up on results unless you are authenticated as the network owner
Profile objects for multiple ning accounts using the in operator https://www.ning.com/xn/rest/2.0/profile(email%20in%20%5B'john@example.com.com','joe@example.com','bob@example.com'%5D)
All photos created after 2008-06-30 and before 2008-07-02
http://examplenetwork.ning.com/xn/atom/1.0/content(type eic 'Photo'&createdDate < 2008-07-02T00:00:00Z&createdDate > 2008-06-30T00:00:00Z)

Last updated by Mike Nicholson Aug 12.

We're Hiring

We are looking for talented and passionate individuals to join our growing team.

Visit our engineering jobs and see if Ning is right for you.

© 2008   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service