{"_id":"53de86be84ab2b1c5eb2dd7b","editedParams":true,"comments":[],"user":"53de5a0384ab2b1c5eb2dd6a","project":"53de5ae684ab2b1c5eb2dd6b","__v":3,"tags":[],"category":{"_id":"53de5ae684ab2b1c5eb2dd6f","pages":["53de638784ab2b1c5eb2dd77","53de653284ab2b1c5eb2dd79","53de86be84ab2b1c5eb2dd7b"],"project":"53de5ae684ab2b1c5eb2dd6b","version":"53de5ae684ab2b1c5eb2dd6e","__v":5,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2014-08-03T15:53:10.868Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"is_link":false,"version":{"_id":"53de5ae684ab2b1c5eb2dd6e","__v":3,"project":"53de5ae684ab2b1c5eb2dd6b","createdAt":"2014-08-03T15:53:10.797Z","releaseDate":"2014-08-03T15:53:10.797Z","categories":["53de5ae684ab2b1c5eb2dd6f","53de5fed84ab2b1c5eb2dd72","53de61e584ab2b1c5eb2dd75"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"editedParams2":true,"githubsync":"","updates":["585c913bb9befada70c3ef01"],"next":{"pages":[],"description":""},"createdAt":"2014-08-03T19:00:14.419Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"name":"Success","code":"{\n    \"pretty\": \"615 Cole St Apt 1\\nSan Francisco, CA, US\\n94117-2827\",\n    \"raw\": {\n        \"object\":\"address\",\n        \"address_country\":\"US\",\n        \"address_zip\":\"94117-2827\",\n        \"address_state\":\"CA\",\n        \"address_city\":\"SAN FRANCISCO\",\n        \"address_line2\":\"APT 1\",\n        \"address_line1\":\"615 COLE ST\"\n        \n    },\n    \"id\":\"22ee3b1c3ad1522509acf00eadd9abb8\"\n}","language":"json"},{"language":"json","name":"Failure","code":"{\n    \"error\": \"Could not find address\"\n}"}]},"settings":"","auth":"never","params":[{"_id":"53e87ebd8c28a7151d2e0c59","ref":"","in":"path","required":true,"desc":"The ID for the address that you stored when the user first created it.","default":"22ee3b1c3ad1522509acf00eadd9abb8","type":"text","name":"address_id"},{"_id":"53e87ebd8c28a7151d2e0c58","ref":"","in":"query","required":false,"desc":"Your API key","default":"","type":"text","name":"api_key"}],"url":"/address/:address_id"},"isReference":true,"order":2,"body":"If you store the `address_id`, you can retrieve a raw data dump of the address using the API.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$.get('https://api.addresspicker.io/api/address/' + address_id, function(data)  {\\n    console.log(data);\\n});\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","excerpt":"Get raw data for an address","slug":"apiaddressaddress_id","type":"endpoint","title":"/api/address/:address_id"}

get/api/address/:address_id

Get raw data for an address

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

address_id:
required
text22ee3b1c3ad1522509acf00eadd9abb8
The ID for the address that you stored when the user first created it.

Query Params

api_key:
text
Your API key

Result Format


Documentation

If you store the `address_id`, you can retrieve a raw data dump of the address using the API. [block:code] { "codes": [ { "code": "$.get('https://api.addresspicker.io/api/address/' + address_id, function(data) {\n console.log(data);\n});", "language": "javascript" } ] } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}