> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fireflies.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bites

> Querying list of bites

## Overview

The bites query is designed to fetch a list of bites against input arguments.

## Arguments

**mine** `Boolean` *required*

The `mine` parameter, when set to true, fetches results specific to the owner of the API key

**transcript\_id** `ID`

You can use `transcript_id` to query all bites against a specific transcript.

**my\_team** `Boolean`

The `my_team` parameter, when set to true, fetches results for the owner of the API key

**limit** `Int`

Maximum number of bites to fetch in a single query. Maximum of 50

**skip** `Int`

Number of records to skip over. Helps paginate results when used in combination with the `limit`
param.

## Schema

Fields available to the [Bites](https://docs.fireflies.ai/schema/bite.md) query

## Usage Example

```graphql theme={null}
query Bites($mine: Boolean) {
  bites(mine: $mine) {
    transcript_id
    name
    id
    thumbnail
    preview
    status
    summary
    user_id
    start_time
    end_time
    summary_status
    media_type
    created_at
    created_from {
      description
      duration
      id
      name
      type
    }
    captions {
      end_time
      index
      speaker_id
      speaker_name
      start_time
      text
    }
    sources {
      src
      type
    }
    privacies
    user {
      first_name
      last_name
      picture
      name
      id
    }
  }
}
```

```bash curl theme={null}
curl -X POST \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer your_api_key" \
	--data '{ "query": "query Bites($mine: Boolean) { bites(mine: $mine) { user_id name end_time } }", "variables": { "mine": true } }' \
	https://api.fireflies.ai/graphql
```

```javascript javascript theme={null}
const axios = require('axios');

const url = 'https://api.fireflies.ai/graphql';
const headers = {
  'Content-Type': 'application/json',
  Authorization: 'Bearer your_api_key'
};
const data = {
  query: 'query Bites($mine: Boolean) { bites(mine: $mine) { user_id name end_time } }',
  variables: { mine: true }
};

axios
  .post(url, data, { headers: headers })
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.error('Error:', error);
  });
```

```python python theme={null}
import requests

url = 'https://api.fireflies.ai/graphql'
headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer your_api_key'
}
data = '{"query": "query Bites($mine: Boolean) { bites(mine: $mine) { user_id name end_time } }", "variables": {"mine": true }}'

response = requests.post(url, headers=headers, data=data)
print(response.json())
```

```java java theme={null}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpRequest.BodyPublishers;

public class ApiRequest {
    public static void main(String[] args) {
        HttpClient client = HttpClient.newHttpClient();
        String jsonRequest = "{\"query\": \"query Bites($mine: Boolean) { bites(mine: $mine) { user_id name end_time } }\", \"variables\": {\"mine\": true}}";
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://api.fireflies.ai/graphql"))
            .header("Content-Type", "application/json")
            .header("Authorization", "Bearer your_api_key")
            .POST(BodyPublishers.ofString(jsonRequest))
            .build();

        client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
            .thenApply(HttpResponse::body)
            .thenAccept(System.out::println)
            .join();
    }
}

```

```json Response theme={null}
{
  "data": {
    "bites": [
		{
			"user_id": "user-id",
			"id": "bite-id",
    	},
		{
			"user_id": "user-id",
			"id": "bite-id-2",
    	}
	]	
  }
}
```

## Error Codes

List of possible error codes that may be returned by the `bites` query. Full list of error codes can be found [here](https://docs.fireflies.ai/miscellaneous/error-codes.md).

> [accordion] args\_required
>
> You must provide at least one of the following arguments: `mine`, `transcript_id`, `my_team` to the bites query

## Audit Trail

A successful call records a [`SOUNDBITES_LISTED`](https://docs.fireflies.ai/graphql-api/query/audit-events) audit event with the returned bite count and query level in metadata.

## Additional Resources

> [card] [Bite](https://docs.fireflies.ai/graphql-api/query/bite.md)
>
> Querying bite details

> [card] [Create Bite](https://docs.fireflies.ai/graphql-api/mutation/create-bite.md)
>
> Use the API to create a bite


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.