AAPNewsInPictures
|
Information
|
This call returns a list of pictures and associated headline and caption for each
item from the last 48 hours.
|
|
Request
|
http://api.aapnewswire.com.au/Rest/v1/AAPNewsInPictures?ApiKey=YourKey
&format=json/xml(default)
|
Response XML
<NewsInPictures xmlns="AAPNewswire">
<Copyright>String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved."</Copyright>
<Slides>
<Slide>
<Category>String e.g. "A" or "I"</Category>
<Credit>String e.g. "AAP"</Credit>
<Headline>String</Headline>
<ImageUrl>String</ImageUrl>
<SlideCaption>String</SlideCaption>
<SlideTitle>String</SlideTitle>
<Subject>String</Subject>
<Updated>ISO8601 timestamp: e.g. "2010-02-29T09:22:00+11"</Updated>
</Slide>
</Slides>
<UpdateStatus>String e.g. "OK" or "Error NNN"</UpdateStatus>
<UpdateTotalStories>Integer</UpdateTotalStories>
</NewsInPictures>
Response JSON
{
"Copyright":String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved.",
"Slides":[{
"Category":String e.g. "A" or "I",
"Credit":String e.g. "AAP",
"Headline":String,
"ImageUrl":String,
"SlideCaption":String,
"SlideTitle":String,
"Subject":String,
"Updated":"\/Epoch Time e.g. 928113600000+1000 \/"
}],
"UpdateStatus":String e.g. "OK" or "Error NNN",
"UpdateTotalStories":Integer
}
AAPNewsTicker
|
Information
|
This call returns a list of headlines from the last 48 hours it is an abridged version
of the call AAPNewsStream
|
|
Request
|
http://api.aapnewswire.com.au/Rest/v1/AAPNewsTicker?ApiKey=YourKey
&format=json/xml(default)
|
|
To request a curated and filtered list, filtered by Category Code X and limited to a maximum number of items MaxCount N
http://api.aapnewswire.com.au/Rest/v1/AAPNewsTicker?ApiKey=YourKey
&Category=X&MaxCount=Nformat=json/xml(default)
X can be a concatenated list of Category Codes. If an empty value is passed the result will not be filtered by Category.
|
Response XML
<Ticker xmlns="AAPNewswire">
<Copyright>String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved."</Copyright>
<Headlines>
<Headline>
<Category>String</Category>
<Credit>String</Credit>
<Headline>String</Headline>
<Subject>String</Subject>
<Updated>ISO8601 timestamp: e.g. "2010-02-29T09:22:00+11"</Updated>
</Headline>
</Headlines>
<UpdateStatus>String e.g. "OK" or "Error NNN"</UpdateStatus>
<UpdateTotalStories>Integer</UpdateTotalStories>
</Ticker>
Response JSON
{
"Copyright":String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved.",
"Headlines":[{
"Category":String e.g. "A" or "I",
"Credit":String e.g. "AAP",
"Headline":String,
"Subject":String,
"Updated":"\/Epoch Time e.g. Date(928113600000+1000) \/"
}],
"UpdateStatus":String e.g. "OK" or "Error NNN",
"UpdateTotalStories":Integer
}
AAPNewsStream
|
Information
|
This call returns a list of News Stories from the last 48 hours. It contains a text
version of the story along with a HTML version. The call also returns references
to any associated StoryMedia and its URL.
|
|
Request
|
http://api.aapnewswire.com.au/Rest/v1/AAPNewsStream?ApiKey=YourKey
&format=json/xml(default)
|
|
http://api.aapnewswire.com.au/Rest/v1/AAPNewsStream/N?ApiKey=YourKey&format=json/xml
N is an integer value and should contain a value between 1 and 48, The response will contain only news stories that have updated in the last N hours.
For example the request below will restrict the response to those stories that have updated in the last two (2) hours http://api.aapnewswire.com.au/Rest/v1/AAPNewsStream/2?ApiKey=YourKey
|
Response XML
<NewsStream xmlns="AAPNewswire">
<Copyright>String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved."</Copyright>
<Stories>
<Story>
<Abstract>String</Abstract>
<BodyHtml>String</BodyHtml>
<BodyText>String</BodyText>
<ByLine>String</ByLine>
<Category>String e.g. "A" or "I"</Category>
<Credit>String e.g. "AAP"</Credit>
<Dateline>String</Dateline>
<HasClipping>Boolean e.g. true or false </HasClipping>
<Headline>String</Headline>
<ID>Integer</ID>
<Keyword>String</Keyword>
<Locator>String</Locator>
<Priority>2147483647</Priority>
<StoryMedia>
<Caption>String</Caption>
<MediaUrl>String</MediaUrl>
<Title>String</Title>
</StoryMedia>
<StoryReference>String</StoryReference>
<Subject>String IPTC Subject Code e.g. 01000000 </Subject>
<Updated>ISO8601 timestamp: e.g. "2010-02-29T09:22:00+11"</Updated>
</Story>
</Stories>
<UpdateStatus>String e.g. "OK" or "Error NNN"</UpdateStatus>
<UpdateTotalStories>Integer</UpdateTotalStories>
</NewsStream>
Response JSON
{
"Copyright":String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved.",
"Stories":[{
"Abstract":String,
"BodyHtml":String,
"BodyText":String,
"ByLine":String,
"Category":String e.g. "A" or "I",
"Credit":String e.g. "AAP",
"Dateline":String,
"HasClipping":Boolean e.g. true/false,
"Headline":String,
"ID":Integer,
"Keyword":String,
"Locator":String,
"Priority":Integer,
"StoryMedia":{
"Caption":String,
"MediaUrl":String,
"Title":"String"
},
"StoryReference":String,
"Subject":String,
"Updated":"\/Epoch Time e.g. Date(928113600000+1000) \/"
}],
"UpdateStatus":String e.g. "OK" or "Error NNN",
"UpdateTotalStories":Integer
}
FinanceData/ExchangeRates
|
Information
|
Provides Exchange rates of Major Currencies with AUD as a Base Currency. This information
is updated every half hour and some values are subject to a 20-minute delay.
|
|
Request
|
http://api.aapnewswire.com.au/Rest/v1/FinanceData/ExchangeRates?ApiKey=YourKey
&format=json/xml(default)
|
Response XML
<ExchangeRateUpdate xmlns="AAPNewswire">
<BaseCurrency>String e.g. AUD</BaseCurrency>
<Copyright>String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved."</Copyright>
<ExchangeRates>
<ExchangeRate>
<Change>String</Change>
<LastTrade>ISO8601 timestamp: e.g. "2010-02-29T09:22:00+11"</LastTrade>
<TargetCurrency>String e.g. USD</TargetCurrency>
<Value>String</Value>
</ExchangeRate>
</ExchangeRates>
<UpdateStatus>String e.g. "OK" or "Error NNN"</UpdateStatus>
<UpdateTime>ISO8601 timestamp: e.g. "2010-02-29T09:22:00+11"</UpdateTime>
</ExchangeRateUpdate>
Response JSON
{
"BaseCurrency":String e.g. "AUD",
"Copyright":String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved.",
"ExchangeRates":[{
"Change":String,
"LastTrade":"\/Epoch Time e.g. 928113600000+1000 \/",
"TargetCurrency":String e.g. "USD",
"Value":String
}],
"UpdateStatus":String e.g. "OK" or "Error NNN",
"UpdateTime":"\/Epoch Time e.g. 928113600000+1000 \/"
}
FinanceData/Indices
|
Information
|
Provides data for Major Australian/International Indices and Commodities like Gold
and Oil. This information is updated every half hour and some values are subject
to a 20-minute delay.
|
|
Request
|
http://api.aapnewswire.com.au/Rest/v1/FinanceData/Indices?ApiKey=YourKey
&format=json/xml(default)
|
Response XML
<IndicesUpdate xmlns="AAPNewswire">
<Copyright>String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved.</Copyright>
<Indices>
<Index>
<Change>String</Change>
<IndexName>String</IndexName>
<IndexType>String</IndexType>
<LastTrade>ISO8601 timestamp: e.g. "2010-02-29T09:22:00+11"</LastTrade>
<Value>String content</Value>
</Index>
</Indices>
<UpdateStatus>String e.g. "OK" or "Error NNN"</UpdateStatus>
<UpdateTime>ISO8601 timestamp: e.g. "2010-02-29T09:22:00+11"</UpdateTime>
</IndicesUpdate>
Response JSON
{
"Copyright":String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved.",
"Indices":[{
"Change":String,
"IndexName":String,
"IndexType":String,
"LastTrade":"\/Epoch Time e.g. 928113600000+1000 \/",
"Value":String
}],
"UpdateStatus":String e.g. "OK" or "Error NNN",
"UpdateTime":"\/Epoch Time e.g. 928113600000+1000 \/"
}
FinanceData/MarketMovers
|
Information
|
Gainers and losers are selected by the greatest change in market capitalisation
and by the greatest percent change in value. This information is updated hourly
during trade and is subject to a 20-minute delay.
|
|
Request
|
http://api.aapnewswire.com.au/Rest/v1/FinanceData/MarketMovers?ApiKey=YourKey
&format=json/xml(default)
|
Response XML
<MarketMovers xmlns="AAPNewswire" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Copyright>String e.g. "Copyright (c) 2012 Australian Associated Press. All Rights Reserved.</Copyright>
<GainersCapital>
<MarketMover>
<Change>String</Change>
<Close>String</Close>
<CompanyName>String e.g. "WOODSIDE PETROLEUM LIMITED"</CompanyName>
<PercentChange>String</PercentChange>
<Quote>String e.g. "WPL"</Quote>
<Value>String</Value>
</MarketMover>
</GainersCapital>
<GainersPercent>
....
</GainersPercent>
<LosersCapital>
....
</LosersCapital>
<LosersPercent>
....
</LosersPercent>
<UpdateInformation>string</UpdateInformation>
<UpdateStatus>String e.g. "OK" or "Error NNN"</UpdateStatus>
<UpdateTime>ISO8601 timestamp: e.g. "2010-02-29T09:22:00+11"</UpdateTime>
</MarketMovers>
Response JSON
{ "Copyright" : String "Copyright (c) 2012 Australian Associated Press. All Rights Reserved.",
"GainersCapital" : [ { "Change" : "0.91",
"Close" : String,
"CompanyName" : String e.g. "WOODSIDE PETROLEUM LIMITED",
"PercentChange" : String,
"Quote" : String e.g. "WPL",
"Value" : String
}],
"UpdateInformation" : String,
"UpdateStatus" : String e.g. "OK" or "Error NNN",
"UpdateTime" : "\/Epoch Time e.g. 928113600000+1000 \/"
}