A
P
I
_
D
A
T
A

<-- Back to Tags

{API_DATA(result_alias, data_field)}

Can also be used within an {API_FOR_EACH} loop.

To get nested fields use a "." to represent the next level. For example,
posts.title

You can access array elements in the same way starting from element zero. For example,
days.1

If returned data was XML, to get tag attributes use an "@". For example, to get value of the attribute "size" from the resource tag use,
resource.@.size

Parameters
Number Name Default Type Description
1 result_alias RESULT String The result to search.
2 data_field String The data field to return.
Log in to add a Comment.