Skip to content

    v2_get_runs_run_id

    Read the state of one run or fetch a saved estimate. Pass the qualified ID returned by the API, including its prefix.

    See the REST reference for GET /v2/runs/{run_id}.

    Signature

    v2_get_runs_run_id(
        run_id: str,
        *,
        brand_id: str | None = None,
        cursor: str | None = None,
        include_answers: bool | None = None,
        limit: int | None = None,
        offset: int | None = None,
        simulation_only: bool | None = None,
    ) -> Response[Any]

    Parameters

    run_id
    Qualified run ID, including its prefix. Copy it from the run response.
    brand_id
    Identifier for the brand.
    cursor
    Pass the previous page's next cursor with the original filters.
    include_answers
    Include available answer records. The key needs analytics:read.
    limit
    Maximum number of records per page. Each view sets its own limit.
    offset
    Number of records to skip. For draft lists, send the returned next_offset.
    simulation_only
    Set to true to restrict the read to a simulation run.

    Return value

    For a job, response.data includes state, progress, poll_url, result and error. A completed HTTP request can still describe a running job.

    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.
    • PreconditionFailedError means the revision has changed. Read the current record before editing it again.
    • For a conflict, read the error message before repeating the write. Check the saved record for a competing edit or a repeated request.

    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_runs_run_id(
            run_id='job: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_runs_run_id(
                run_id='job:00000000-0000-4000-8000-000000000001',
            )
            print(response.body)
    
    asyncio.run(main())

    Requests by feature

    AI answer collection and runs

    Site audits and page checks

    Citations

    Answer accuracy

    Retrieval simulator and content testing

    Recommendations and visibility analyst

    Content drafts and editorial generation

    AI search topics

    Submit to Brave

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