Skip to content

    v2_get_brands_brand_id

    Read one brand's profile. Set view to read locations, voice, connection settings, schedules or content events for the same brand.

    See the REST reference for GET /v2/brands/{brand_id}.

    Signature

    v2_get_brands_brand_id(
        brand_id: str,
        *,
        after: int | None = None,
        audit_id: str | None = None,
        city: str | None = None,
        cursor: str | None = None,
        kind: Literal['managed', 'cited_page_sweep', 'answer_accuracy'] | None = None,
        limit: int | None = None,
        postal_code: str | None = None,
        property: str | None = None,
        provider: Literal['bing', 'webhook'] | None = None,
        region: str | None = None,
        status: Literal['active', 'paused', 'archived'] | None = None,
        store_code: str | None = None,
        view: Literal['profile', 'locations', 'voice', 'suggestions', 'connection', 'schedule', 'content_events'] | None = None,
        website: str | None = None,
    ) -> Response[Any]

    Parameters

    brand_id
    Identifier for the brand.
    after
    Start after the given position in the content event list.
    audit_id
    Identifier for the audit.
    city
    Filter results by city.
    cursor
    Pass the previous page's next cursor with the original filters.
    kind
    Selects the kind of record. The accepted values depend on the operation.
    limit
    Maximum number of records per page. Each view sets its own limit.
    postal_code
    Filter results by postal code.
    property
    Property identifier for the selected connection.
    provider
    Connection type or source label for the selected view.
    region
    Filter results by region.
    status
    Only return records with this status.
    store_code
    Filter results by store code.
    view
    Choose the result to read. See the linked REST reference for the fields and access each view requires.
    website
    Website for the selected brand or connection.

    Return value

    For the profile view, response.data includes the brand's competitor settings. Other views return their own records.

    Errors

    • AeoApiError includes the HTTP status, error code and request ID. An invalid key raises UnauthenticatedError. Check the key’s scopes if you receive ForbiddenError.
    • Invalid arguments can raise ValueError or TypeError before the SDK sends a request.
    • AeoTransportError means the request could not reach the API after any allowed retries, or the response could not be read as JSON.

    Python example

    import os
    from aeo_sdk import AeoClient
    
    with AeoClient(os.environ["AEO_API_KEY"], base_url=os.environ["AEO_API_BASE_URL"]) as client:
        response = client.v2_get_brands_brand_id(
            brand_id='00000000-0000-4000-8000-000000000001',
        )
        print(response.body)

    Async example

    import asyncio
    import os
    from aeo_sdk import AsyncAeoClient
    
    async def main():
        async with AsyncAeoClient(os.environ["AEO_API_KEY"], base_url=os.environ["AEO_API_BASE_URL"]) as client:
            response = await client.v2_get_brands_brand_id(
                brand_id='00000000-0000-4000-8000-000000000001',
            )
            print(response.body)
    
    asyncio.run(main())

    Requests by feature

    Brands, locations and connections

    Content drafts and editorial generation

    See Python client setup for the environment variables, response properties and retry settings.