Australian Statistics API Specification

Similar documents
Using the Swiftpage Connect List Manager

INSTALLING CCRQINVOICE

Using the Swiftpage Connect List Manager

Integrating QuickBooks with TimePro

How to use DCI Contract Alerts

ROCK-POND REPORTING 2.1

Adverse Action Letters

Concentrix University Learning Portal FAQ Document

PAGE NAMING STRATEGIES

STIDistrict AL Rollover Procedures

Using CppSim to Generate Neural Network Modules in Simulink using the simulink_neural_net_gen command

TUTORIAL --- Learning About Your efolio Space

Introduction to Oracle Business Intelligence Enterprise Edition: OBIEE Answers 11g

Uploading Files with Multiple Loans

SAS Viya 3.2 Administration: Mobile Devices

REFWORKS: STEP-BY-STEP HURST LIBRARY NORTHWEST UNIVERSITY

AASHTOWare BrDR Support Center JIRA Getting Started Guide

Test Pilot User Guide

Date: October User guide. Integration through ONVIF driver. Partner Self-test. Prepared By: Devices & Integrations Team, Milestone Systems

Applications in Nasdaq Member Portal

ClassFlow Administrator User Guide

BI Publisher TEMPLATE Tutorial

BANNER BASICS. What is Banner? Banner Environment. My Banner. Pages. What is it? What form do you use? Steps to create a personal menu

Exercise 4: Working with tabular data Exploring infant mortality in the 1900s

Summary. Server environment: Subversion 1.4.6

Municode Website Instructions

TECHNICAL REQUIREMENTS

Relius Documents ASP Checklist Entry

Xilinx Answer Xilinx PCI Express DMA Drivers and Software Guide

1 Getting and Extracting the Upgrader

How To enrich transcribed documents with mark-up

Interfacing to MATLAB. You can download the interface developed in this tutorial. It exists as a collection of 3 MATLAB files.

These tasks can now be performed by a special program called FTP clients.

Anonymous User Manual

Reading and writing data in files

OASIS SUBMISSIONS FOR FLORIDA: SYSTEM FUNCTIONS

Getting Started with the SDAccel Environment on Nimbix Cloud

1 Getting and Extracting the Upgrader

eprocurement Requisition Special Request Goods

TaiRox Mail Merge. Running Mail Merge

WordPress Overview for School Webmasters

FAQ. Using the Thinkific Learning Platform

eprocurement Requisition Services Special Request Amount Only

Trimble Survey GNSS Firmware Version 4.81 (July 2013)

UPGRADING TO DISCOVERY 2005

I - EDocman Installation EDocman component EDocman Categories module EDocman Documents Module...2

Release Note. Discovery Network Assistant (DNA) V

Compliance Guardian 4. User Guide

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

Exporting and Importing the Blackboard Vista Grade Book

Copyrights and Trademarks

MyUni Adding Content. Date: 29 May 2014 TRIM Reference: D2013/ Version: 1

Secure File Transfer Protocol (SFTP) Interface for Data Intake User Guide

Please contact technical support if you have questions about the directory that your organization uses for user management.

Student Handbook for E*Value

User Manual. Revised June 18, 2007

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

SoilCare: Stakeholder Platform Guidance How to edit and manage your own stakeholder platform WP8

Refreshing Axiom TEST with a Current Copy of Production Axiom EPM June 20, 2014

Dashboard Extension for Enterprise Architect

Assignment #5: Rootkit. ECE 650 Fall 2018

InfoCitrus Brief Instructions

Agent Online. User Manual

1 Version Spaces. CS 478 Homework 1 SOLUTION

Admin Report Kit for Exchange Server

AudienceView How-To Guide: How to Run the Profiler? Part 1 (Website or Website Portfolio)

Entering an NSERC CCV: Step by Step

Online Image Viewing Agent User Guide. Texas FAIR Plan Association 1

Enterprise Chat and Developer s Guide to Web Service APIs for Chat, Release 11.6(1)

PaperStream Capture change history

INSERTING MEDIA AND OBJECTS

Final Report. Graphical User Interface for the European Transport Model TREMOVE. June 15 th 2010

Proper Document Usage and Document Distribution. TIP! How to Use the Guide. Managing the News Page

escreen Setup and Usage Instructions

Valorise user guide version All rights reserved 1

TRAINING GUIDE. Overview of Lucity Spatial

The Reporting Tool. An Overview of HHAeXchange s Reporting Tool

Cisco Tetration Analytics, Release , Release Notes

Outlook Web Application (OWA) Basic Training

About this Guide This Quick Reference Guide provides an overview of the query options available under Utilities Query menu in InformationNOW.

1 Getting and Extracting the Upgrader

Step 3:- You Will See the Sign-in Page. Then Enter your Login ID & Password and Click on the Sign in Button.

USO RESTRITO. SNMP Agent. Functional Description and Specifications Version: 1.1 March 20, 2015

Axis Portal. Preventive Maintenance User Manual. January 2015

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

Focus University Training Document

Creating Relativity Dynamic Objects

OPERATING MANUAL. Exceed GERMANY. Electronic Postage Computing Scale CONTENTS

mconnect Lead Management System 2.0

Uploading Bills, Downloading Payments, and Automating the Process. Section 1: Uploading bills

Class Roster. Curriculum Class Roster Step-By-Step Procedure

Ascii Art Capstone project in C

Getting started. Roles of the Wireless Palette and the Access Point Setup Utilities

Procedures for Developing Online Training

International Comparison Program [07.01] ICP COUNTRY SOFTWARE (Household Consumption Items) User Manual. Version 1.0. Global Office.

Creating Relativity Dynamic Objects

Reporting Requirements Specification

This document describes new features and resolved issues for Intelligent Scene Analysis System

Apache Solr for FSI SERVER. User Manual. Version 4.5

VMware AirWatch Certificate Authentication for Cisco IPSec VPN

Transcription:

Australian Statistics API Specificatin Versin: 1.2 Date Mdified: 23 March 2017 Page 1

The cntext... 2 Functins f the API... 2 2.1 Retail Trade API... 2 Input Parameters fr API... 3 Output Specificatin fr the API... 4 4.1 Fr Retail Statistics Area... 4 4.2 Fr Merchandise Exprt Area... 4 Acquiring the data fr the API... 5 5.1 Retail Data... 5 5.2 Merchandise Exprt Data... 6 Appendix... 8 6.1 Additinal Infrmatin:... 8 6.2 Sample Output Frmat fr Retail... 9 6.3 Sample Output Frmat fr Merchandise Exprt... 10 6.4 References:... 11 The cntext We are a cmpany specialising in wide array f trading related services. We are develping a cmplex system t prvide an analytics platfrm fr ur traders. We wish t pen ur system t third party sftware huses, ffering them ability t plug-in independent sftware mdules that implement particular functins. We therefre request all interested cmpanies t prvide an independent sftware mdule that implements an API as specified in the rest f this dcument. Functins f the API 2.1 Retail Trade API Fr certain functinalities f ur platfrm, we require industry data, statistics related t different areas specifically the mnthly retail turnver by varius industry grups r mnthly value f varius cmmdities that are exprted. Further we may want data fr varius regins f Australia. Australian Statistics API will receive a request frm a third party sftware specifying an area f statistics, a list f regins, a list f categries (industries r cmmdities) and a perid f time specified by start and end date. The API shuld return the statistics accrding t the area f statistics. Fr this applicatin there are tw main areas: Retail and MerchandiseExprts. If user requests Retail, the API shuld return the mnthly retail turnver f each regin and each categry, fr the specified perid f time. If the user requested MerchandiseExprts as the statistics area, mnthly value f each cmmdity listed in the categries, fr each regin and fr defined time perid, shuld be returned. Page 2

Figure 1 shws hw a system wuld interact with the Australian Statistics API. Statistics area, list f regins, a list f categries, perid f time Australian Statistics API System List f values fr each categry and regin fr given perid f time, accrding t the area f statistics Figure 1 - High level view The prgramming language in which the mdule is t be written is nt imprtant as lng as there is sme way t invke it frm ur system. The utput f the Australian Statistics API shuld be a JSON file cntaining data in the frmat specified belw. It is imprtant that the mdule can be used withut its surce cde being revealed. Input Parameters fr API The API we develp shuld be able t take fur inputs as defined by fllwing table. Parameter StatisticsArea State Categry Arguments and Frmats A string which can take value Retail r MerchandiseExprts. A list f ne r mre regins (AUS, NSW, WA, SA, ACT, VIC, TAS, QLD, NT) separated by,. If StatisticsAria is Retail, a list f ne r mre industry (Ttal, Fd, HusehldGd, ClthingFtwareAndPersnalAccessry, DepartmentStres, CafesResturantsAndTakeawayFd, Other) separated by,. OR startdate enddate If StatisticsAria is MerchandiseExprts, a list f ne r mre cmmdities f interest frm (Ttal,FdAndLiveAnimals, BeveragesAndTbacc, CrudMaterialAndInedible, MineralFuelLubricentAndRelatedMaterial, AnimalAndVegitableOilFatAndWaxes, ChemicalsAndRelatedPrducts, ManufacutedGds, MachineryAndTransprtEquipments, OtherManucacturedArticles, Unclassified) separated by,. In the frmat f YYYY-MM-DD In the frmat f YYYY-MM-DD Page 3

Output Specificatin fr the API 4.1 Fr Retail Statistics Area The mdule shuld return a jsn file with data requested by user, in the frmat defined in Appendix 6.2. The frmat f utput data types shuld be as fllws: RetailIndustry State Date Turnver Output Parameter Data Frmat String value frm (Ttal, Fd, HushldGd, ClthingFtwareAndPersnalAccessry, DepartmentStres, CafesResturantsAndTakeawayFd, Other) String value frm (AUS, NSW, WA, SA, ACT, VIC, TAS, QLD) Last day f each mnth in YYYY-MM-DD frmat. A flating pint value 4.2 Fr Merchandise Exprt Area The mdule shuld return a jsn file with data requested by user, in the frmat defined in Appendix 6.3. The frmat and data types f utput data types shuld be as fllws: Parameter Cmmdity State Date Value Data Type String value frm (Ttal,FdAndLiveAnimals, BeveragesAndTbacc, CrudMaterialAndInedible, MineralFuelLubricentAndRelatedMaterial, AnimalAndVegitableOilFatAndWaxes, ChemicalsAndRelatedPrducts, ManufacutedGds, MachineryAndTransprtEquipments, OtheranucacturedArticles, Unclassified) String value frm (AUS, NSW, WA, SA, ACT, VIC, TAS, QLD, NT) Last day f each mnth in YYYY-MM-DD frmat. A flating pint value Anther utput f the API is a lg file must cntain the fllwing infrmatin: Develper team Mdule name and versin Parameters passed An indicatin if executin has been successful r there is an errr If errr, indicate the nature f the errr If successful, need t supply Ø Start date and time f executin Ø End date and time f executin Ø Elapsed time Page 4

Ø Output file name Acquiring the data fr the API T fulfil the user request abut retail trades, yu will need t have a data surce. Fr this, yu shuld use the REST API prvided by Australian Bureau f Statistics (ABS) (http://stat.data.abs.gv.au/#). 5.1 Retail Data Amng the varius data sets they prvide, the API needs the Mnthly Retail Turnver by Industry Grup. ABS prvide different mechanisms f filtering and acquiring the data as excel files, csv files r ver a REST API URL. Yu shuld use the REST API URL in the applicatin, t filter and acquire data dynamically, t match with the parameters prvided. T understand the API and data sets yu can visit page (http://stat.data.abs.gv.au/#) and navigate t INDUSRTY-> Retail and Whlesale Trade -> Retail -> Retail Trade -> Mnthly Retail Turnver by Industry Grup Yu can custmize the data set by changing varius parameters at Selectin tab as shwn in figure abve. Accrding t the parameters yu change, the URL can be generated at Exprt Tab-> Develper API tab -> Generate API Query buttn URL: Exprt -> Develper API tab -> Generate API Query buttn Fr ur API, we are interested in the Regin, Retail Industry Type and Time and Frequency Parameters. Other parameters can be left as fllws: Data Type: Current Prices ($Millin) Adjustment Type: Original Fr further clarificatins, given belw is a sample URL: Page 5

http://stat.data.abs.gv.au/sdmx-jsn/data/rt/0+1+2.2.41+42+43.10.m/all?starttime=2015-01&endtime=2015-12&dimensinatobservatin=alldimensins The highlighted part f the URL can be used t pass parameters t the ABS API. If we cnsider the part 0+1+2.2.41+42+43.10.M, each categry f parameter is separated by. In the rder f indexes f the Regin, Index f data type, ID fr retail industry, ID f adjustment type and Time & Frequence indicatr. + sign is used t separate a list f attributes passed t ne parameter. Fllwing table explains the parameters passed in the example URL. Explre the parameters further by explring the web page. Parameter Referred Meaning 0+1+2 Request data fr three regins (0: Australia, 1: New Suth Wales, 2: Victria). Yu can use frm 0 t 8 numbers. 2 Refer t the data type (2-Current Prices ($Millin)). Yu can keep this as default. 41+42+43 Refer t a list f IDs fr retail industry (20- Ttal, 41- Fd Retailing, 42-Husehld Gd Retailing). Explre further in web page. 10 Refer t the Adjustment type (10-Original). Yu can keep this as default. M Request Mnthly data starttime=2015-01&endtime=2015-12 Used t define the duratin, fr which data is requested. The ABS API will return dataset as JSON file, each data value indexed accrding t the parameters. The indexing is described at the end f the JSON file. Yu can type the abve given URL n the brwser and bserve the utput frmat. The data structure can be fund in fllwing link : http://stat.data.abs.gv.au/restsdmx/sdmx.ashx/getdatastructure/rt 5.2 Merchandise Exprt Data Fr Merchandise Exprt, the API needs the Mnthly Value f Exprts by Cmmdity. ABS prvide different mechanisms f filtering and acquiring the data as excel files, csv files r ver a REST API URL. Yu shuld use the REST API URL in the applicatin, t filter and acquire data dynamically, t match with the parameters prvided. T understand the API and data sets yu can visit page (http://stat.data.abs.gv.au/#) and navigate t ECONOMY -> Internatinal Trade -> Exprts -> Merchandise Exprts -> Key Figures, Exprts by SITC Page 6

Yu can custmize the data set by changing varius parameters at Selectin tab as shwn in figure abve. Accrding t the parameters yu change, the URL can be generated at Exprt Tab-> Develper API tab -> Generate API Query buttn Fr ur API, we are interested in the State Of Origin, Cmmdity by SITC and Time and Frequency Parameters. Other parameters can be left as fllws: Industry f rigin - Ttal Cuntry f destinatin Ttal Fr further clarificatins, given belw is a sample URL: http://stat.data.abs.gv.au/sdmx-jsn/data/merch_exp/-+1+2+9+f.0+1+2+3+4+5+6+7+8+9.-1.-.m/all?starttime=2015-01&endtime=2015-12&dimensinatobservatin=alldimensins The highlighted part f the URL can be used t pass parameters t the ABS API. If we cnsider the part -+1+2+9+F.0+1+2+3+4+5+6+7+8+9.-1.-.M, each categry f parameter is separated by. In the rder f IDs fr list f State f Origin, List f Cmmdity by SITC, List f Industry f Origin, List f Cuntry f Destinatin and Time & Frequency indicatr. + sign is used t separate a list f attributes passed t ne parameter. Fllwing table explains the parameters passed in the example URL. Explre the parameters further by explring the web page. Parameter Referred Meaning -+1+2 Request data fr State f Origin (- : ttal, 1 : New Suth Wales) Find IDs fr ther states using the ABS web site. -1+0 Refer t the cmmdity by SITC (-1:Ttal, 0 - Fd and Live Animals ) Find IDs fr ther cmmdities using the ABS web site. Page 7

-1 Refer t the industry f rigin. Keep 1 as default t cnsider all the industries. - Refer t the cuntry f destinatin. Keep as default t indicate ttal f exprts. M Request Mnthly data starttime=2015-01&endtime=2015-12 Used t define the duratin, fr which data is requested. The ABS API will return dataset as JSON file, each data value indexed accrding t the parameters. The indexing is described at the end f the JSON file. Example file type the given URL in the brwser and bserve the results returned. Appendix 6.1 Additinal Infrmatin: Teams have the chice f running their system n tw different platfrms: Standalne Prgram PC running Windws Unix/Linux platfrm Web service (accessible via a REST interface) Thrughut the wrkshp, each team will need t have a Web page. As a minimum, the page is shwing: The team name and members Cnsecutive releases f their mdule. Each release page must include a link t dwnlad the mdule and infrmatin abut: The date and versin f the release What has been implemented s far Differences with previus versin Clear instructins n hw t run the mdule in standalne mde Guidelines n hw t integrate the mdule with ther systems Any test sftware r data Page 8

{ 6.2 Sample Output Frmat fr Retail "MnthlyRetailData": [ { RetailIndustry :<>, ReginalData :[ { Mnth :<>, { Mnth :<>, ] } { RetailIndustry :<>, ReginalData :[ ] } Page 9

{ 6.3 Sample Output Frmat fr Merchandise Exprt "MnthlyCmmdityExprtData": [ { Cmmdity :<>, ReginalData :[ ] } { Cmmdity :<>, State :[ {Regin:<>, ] } Page 10

6.4 References: [1] ABS.Stat : http://stat.data.abs.gv.au/# Page 11