def get_shard(org):
    """
     Gets the org shard to build and return the API URL
    :param org: organization dictionary
    :return: base url with correct shard
    """
    urlLength = org['url'].find('com') + 3
    orgShard = org['url'][8:urlLength]
    base_url = 'https://' + orgShard + '/api/v1'
    return base_url