{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/address/:address_id","auth":"never","examples":{"codes":[]},"method":"get","params":[{"name":"address_id","type":"text","default":"22ee3b1c3ad1522509acf00eadd9abb8","desc":"The ID for the address that you stored when the user first created it.","required":true,"in":"path","ref":"","_id":"53e87ebd8c28a7151d2e0c59"},{"name":"api_key","type":"text","default":"","desc":"Your API key","required":false,"in":"query","ref":"","_id":"53e87ebd8c28a7151d2e0c58"}],"results":{"codes":[{"language":"json","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}","name":"Success"},{"code":"{\n    \"error\": \"Could not find address\"\n}","name":"Failure","language":"json"}]},"settings":""},"next":{"description":"","pages":[]},"title":"/api/address/:address_id","type":"endpoint","slug":"apiaddressaddress_id","excerpt":"Get raw data for an address","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]","updates":["585c913bb9befada70c3ef01"],"order":2,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"53de86be84ab2b1c5eb2dd7b","editedParams":true,"comments":[],"user":"53de5a0384ab2b1c5eb2dd6a","project":"53de5ae684ab2b1c5eb2dd6b","createdAt":"2014-08-03T19:00:14.419Z","__v":3,"tags":[],"category":{"sync":{"isSync":false,"url":""},"pages":["53de638784ab2b1c5eb2dd77","53de653284ab2b1c5eb2dd79","53de86be84ab2b1c5eb2dd7b"],"title":"Documentation","slug":"documentation","order":0,"from_sync":false,"reference":true,"_id":"53de5ae684ab2b1c5eb2dd6f","project":"53de5ae684ab2b1c5eb2dd6b","version":"53de5ae684ab2b1c5eb2dd6e","__v":5,"createdAt":"2014-08-03T15:53:10.868Z"},"is_link":false,"version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["53de5ae684ab2b1c5eb2dd6f","53de5fed84ab2b1c5eb2dd72","53de61e584ab2b1c5eb2dd75"],"_id":"53de5ae684ab2b1c5eb2dd6e","__v":3,"project":"53de5ae684ab2b1c5eb2dd6b","releaseDate":"2014-08-03T15:53:10.797Z","createdAt":"2014-08-03T15:53:10.797Z"},"editedParams2":true,"githubsync":""}

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 }}