Skip to main content
GET
/
v2
/
transcripts
/
{transcriptId}
/
fragments
Get fragments of a transcript
curl --request GET \
  --url https://api.affinity.co/v2/transcripts/{transcriptId}/fragments \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "content": "I want the most intelligent hamster you've got.",
      "speaker": "Lisa Simpson",
      "startTimestamp": "00:00:01",
      "endTimestamp": "00:00:04"
    },
    {
      "content": "Okay. Uh-- this little guy writes mysteries under the name of J.D. MacGregor.",
      "speaker": "Sarcastic Clerk",
      "startTimestamp": "00:00:05",
      "endTimestamp": "00:00:11"
    },
    {
      "content": "How can a hamster write mysteries?",
      "speaker": "Lisa Simpson",
      "startTimestamp": "00:00:12",
      "endTimestamp": "00:00:13"
    },
    {
      "content": "Well he gets the ending first then he works backward.",
      "speaker": "Sarcastic Clerk",
      "startTimestamp": "00:00:15",
      "endTimestamp": "00:00:19"
    }
  ],
  "pagination": {
    "prevUrl": "https://api.affinity.co/v2/transcripts/1/fragments?cursor=ICAgICAgYmVmb3JlOjo6Nw",
    "nextUrl": "https://api.affinity.co/v2/transcripts/1/fragments?cursor=ICAgICAgIGFmdGVyOjo6NA",
    "totalCount": 4
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

transcriptId
integer<int32>
required

The id of the Transcript

Required range: 1 <= x <= 2147483647

Query Parameters

cursor
string

Cursor for the next or previous page

limit
integer<int32>
default:20

Number of items to include in the page

Required range: 0 <= x <= 100
totalCount
boolean
default:false

Include total count of the collection in the pagination response

Response

OK

transcripts.FragmentPaged model

data
transcripts.Fragment · object[]
required

A page of Fragments for a transcript

Maximum array length: 100
pagination
PaginationWithTotalCount · object
required
Example:
{
"prevUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgYmVmb3JlOjo6Nw",
"nextUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgIGFmdGVyOjo6NA"
}