getTranscript returns 200 OK but no content

swtb-ryder 0 Reputation points
2025-03-19T09:46:10.62+00:00

Hello,

as the title says...I have listed transcripts in our organisation using:

https://learn.microsoft.com/en-us/graph/metered-api-setup

This leaves me with a list of contentUrls:

https://graph.microsoft.com/v1.0/users/{organising_user_id}/onlineMeetings/{content_id}/metadataContent

When I call this endpoint I get 200 OK but nothing comes back.

def get_from_url(url: str = None):
    try:
        access_token = authenticate()
        headers = {
            "Authorization": f"Bearer {access_token}",
            "Accept": "text/vtt",
        }

        response = requests.get(url, headers=headers)

        if response.status_code == 200:
            data = response.text

        else:
            raise Exception(f"Error {response.status_code}: {response.text}")

        return data
    except:
        return []

Any guidance is appreciated :)

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,538 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 2,295 Reputation points Microsoft External Staff
    2025-03-27T08:20:57.7733333+00:00

    Hi swtb-ryder,

    Thanks for reaching out to Microsoft!

    Get callTranscript : Retrieving the transcript returns the metadata of the single transcript associated with the online meeting. Retrieving the content of the transcript returns the stream of text associated with the transcript.

    To retrieve the transcript content of an online meeting using Microsoft Graph API, you can use the following endpoint:

    GET https://graph.microsoft.com/v1.0/users/{userId}/onlineMeetings/{meetingId}/transcripts/{transcriptId}/content
    

    Ensure you have the necessary permissions and payment models to access the transcript content.

    Note: API doesn't support getting call transcripts from channel meetings.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.