'Process child API data.'

def extract_data(self, data):

    children = []
    if data[u'subpages']:
        new_opts = self.current_options()
        depth = new_opts.get(u'depth')
        if (depth and (depth != u'all')):
            if (depth == 1):
                del new_opts[u'depth']
            else:
                new_opts[u'depth'] -= 1
        for subpage in data[u'subpages']:
            url = self.decode_href(subpage[u'url'])
            children.append((u'document', url, new_opts))
    return children
