Gov APIs: The Notorious Case of Official Statistics

6,868 views

Published on

Original (=longer) version of my presentation for APIdays Mediterranea 2014 on government APIs, with special reference to statistical offices. May 29, 2014. Barcelona.

Published in: Government & Nonprofit
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,868
On SlideShare
0
From Embeds
0
Number of Embeds
4,751
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Gov APIs: The Notorious Case of Official Statistics

  1. 1. Gov APIs The Notorious Case of Official Statistics APIdays Mediterranea May 29 & 30, 2014 Barcelona Xavier Badosa (@badosa)
  2. 2. 2009
  3. 3. “APIs 2013 for WhiteHouse.gov?”
  4. 4. “What in the heck 2013 does that mean?”
  5. 5. > 500 2014
  6. 6. Gov APIs Society as a distributed system enabled by government
  7. 7. Gov APIs ! Transform government into a platform
  8. 8. ·∙ is a very long word Gov ern ment·∙
  9. 9. Service provider
  10. 10. Teller Window Interface
  11. 11. Teller Window Interface
  12. 12. Digital Window Interface
  13. 13. API
  14. 14. Better user interfaces Integration into external processes API
  15. 15. API Write
  16. 16. API Write Not many
  17. 17. API Read
  18. 18. Service provider (data as a by-product)
  19. 19. Service provider (data as a by-product) open data ≠ gov as a platform
  20. 20. Service provider (data as a by-product) open data ≠ gov as a platform open services
  21. 21. Service provider (data as a by-product) Data provider
  22. 22. Service provider (data as a by-product) Data provider open data = gov as a platform
  23. 23. Book Interface
  24. 24. We put data in cells
  25. 25. data has no intrinsic value 3.2
  26. 26. public transit system
  27. 27. data as an infrastructure
  28. 28. An infrastructure is useless if nothing is built on top of it
  29. 29. Re-use as a matter of survival
  30. 30. To use again in a new way elsewhere
  31. 31. Mobility
  32. 32. Mobility widget
  33. 33. Mobility download
  34. 34. Mobility API
  35. 35. The Richness of Language verb object+ download API Get Get… all the data the data I want
  36. 36. website download API The Software Staircase access processing
  37. 37. maximum data exposure and reach accuracy preservation brand awareness the Business of Reference
  38. 38. maximum data exposure and reach API FOUR-­‐LETTER   WORDS   AHEAD FOUR-­‐LETTER   WORDS   AHEAD
  39. 39. maximum data exposure and reach FREE EASY OPEN API
  40. 40. maximum data exposure and reach as  in     free  beer FREE
  41. 41. maximum data exposure and reach OPEN as  in     open  air
  42. 42. Good for consumers Good for the government (savings, richer analytics)
  43. 43. Federated identity verification of developers?
  44. 44. maximum data exposure and reach EASY as  in     dead  easy 1+1
  45. 45. The Fifteen Minute Rule A person of reasonable ability should be able to get from zero to ‘Hello World’ in fifteen minutes. Michael E. Driscoll Metamarkets
  46. 46. maximum data exposure and reach EASY as  in     dead  easy Apps are already hard Getting the data should be dead simple
  47. 47. maximum data exposure and reach EASY as  in     dead  easy Docless APIs Standard endpoints, responses, errors
  48. 48. [        [  "P0010001",  "NAME",              "state"  ],        [  "710231",      "Alaska",          "02"        ],        [  "4779736",    "Alabama",        "01"        ],        [  "2915918",    "Arkansas",      "05"        ],        [  "6392017",    "Arizona",        "04"        ],        [  "37253956",  "California",  "06"        ],        ...   ]
  49. 49. {        ...,        "Results":  [{              "series":  [{                    "seriesID":  "LAUCN040010000000005",                    "data":  [                          {                                "year":  "2013",                                "period":  "M11",                                "periodName":  "November",                                "value":  "16393",                                "footnotes":  [...]                          },                          ...                    ]              }]        }]   }
  50. 50. {        "BEAAPI":  {              "Request":  {...},              "Results":  {                    "Statistic":  "Per  capita  personal  income",                    "UnitOfMeasure":"dollars",                    "PublicTable":"CA1-­‐3  Personal  income  summary",                    "UTCProductionTime":"2014-­‐05-­‐11T17:02:55.817",                    "NoteRef":"2",  "Dimensions":  [...],                    "Data":  [                          {                                "GeoFips":"00000",                                "GeoName":"United  States",                                "Code":"PCPI_CI",                                "TimePeriod":"2009",                                "CL_UNIT":"USD",                                "UNIT_MULT":"0",                                "DataValue":"39357"                          },                          ...                    ],  "Notes":  [...]              }        }   }
  51. 51. {        "JSONDataResult":  [              {                    "AgencyName":  "MCC",                    "Amount":  "-­‐6983525",                    "BenefitingLocation":  "Ghana",                    "Category":  "Economic  Development",                    "FiscalYear":  "2013",                    "Sector":  "Agriculture"              },              ...        ]   }
  52. 52. {      "columns":  [          {  "code":"region",  "text":  "Region"  },          {  "code":"ageG5",  "text":"Age",  "comment":  ...  },          {  "code":"period",  "text":"Time",  "type":"t"  },          {  "code":"x",  "text":"Population",  "type":"c",  "unit":"amount"  }      ],      "comments":  [...],      "data":[          {  "key":  ["02","0-­‐7","2003"],  "values":  [  100  ]  },          {  "key":  ["02","0-­‐7","2004"],  "values":  [  101  ]  },          ...      ]   }
  53. 53. [        {...},        [              {                    "indicator":  {                          "id":  "NY.GDP.MKTP.CD",                          "value":  "GDP  (current  US$)"                    },                    "country":  {  "id":  "BR",  "value":  "Brazil"  },                    "value":  "1620165226993.77",                    "decimal":  "0",                    "date":  "2009"              },              ...        ]   ]
  54. 54. SDMX, RDF, LGDx
  55. 55. SDMX
  56. 56. [        {              "area_name":  "Panama",              "measurement":  "tonnes",              "value":  1152.87890625,              "year":  2007,              "footnotes":  [...]        },        ...   ] Unofficial
  57. 57. A Data-to-Provider(s) Translation Protocol?
  58. 58. Service provider Data provider Write APIs Common APIs
  59. 59. JSON-­‐stat.org
  60. 60. {        "dataset":  {              "status":  {...},              "dimension":  {...},              "label":  "Value  (NOK  1  000)  by  imports/exports...",              "source":  "Statistics  Norway",              "updated":  "2014-­‐05-­‐13T18:36:18Z",              "value":  [  77287250,  70377617,  73499048,  ...  ]        }   }
  61. 61. Thank you ! Gov APIs The Notorious Case of Official Statistics Xavier Badosa (@badosa)
  62. 62. B&W  road  by  Niamor83  (CC  BY-­‐NC-­‐SA).  Color  road  by  Xavier  Badosa     (CC  BY).  Snake  by  Brewbooks  (CC  BY-­‐SA).  Teller  window  by  Lorianne   DiSabato  (CC  BY-­‐NC-­‐ND).  We're  closed  sign  by  Leol30  (CC  BY-­‐NC-­‐SA).     Book  by  Chris  “shutterhacks”  (CC  BY).  Metal  movable  type  by  Willi   Heidelbach  (CC  BY-­‐SA).  Zeros  and  ones  by  Josh  Bancroft  (CC  BY-­‐NC).     Prison  Cell  by  Donkeycart  (CC  BY-­‐NC).  Railroad  by  Xavier  Badosa  (CC  BY).   Dartboard  by  Jacob  Vance  (CC  BY-­‐NC).  Beers  by  Evil  Sivan  (CC  BY-­‐NC-­‐SA).   Sea  by  Grant  MacDonald  (CC  BY-­‐NC).  Clock  by  Christian  Cable  (CC  BY).   Bottle  by  Prizmatic  (CC  BY-­‐NC).  Reduce  Reuse  Recycle  by  Steve  Snodgrass   (CC  BY).  Computer  icon  by  Danilo  de  Marco.  Woman  profile  icon  by   VisualPharm  (http://www.visualpharm.com).  Spermatozoa,  author   unkown. Credits

×