Inline Labels

Use Inline Labels to easily access the label of a lookup value. For example, primary_sic_code_id: "581208" means that the place is a "Restaurant".

Inline Labels in APIs

To enable Inline Labels in API responses, add the include_labels=true option to any Data Axle API that returns document records:

curl https://data-axle.com/api/1/places/changes?include_labels=true

A "labels" field is added to each document in the response:

{"next_token":"13835315192676945401741312","changes":[{"infogroup_id":"985166431","type":"update","current":{"name":"New York Pizza","primary_sic_code_id":"581208","labels":{"primary_sic_code_id":"Restaurants"}},"previous":{"primary_sic_code_id":"581301","labels":{"primary_sic_code_id":"Bars"}},"timestamp":"2015-12-20T05:45:15Z"}]}