# \[API\] Trying to get a specific character's parses from a specific report

**URL:** <https://forums.combatlogforums.com/t/api-trying-to-get-a-specific-characters-parses-from-a-specific-report/13426>\
**Category:** Warcraft Logs\
**Created:** [December 13, 2022, 12:46am UTC](https://forums.combatlogforums.com/t/api-trying-to-get-a-specific-characters-parses-from-a-specific-report/13426 "2022-12-13T00:46:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timmaythee](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@timmaythee](https://forums.combatlogforums.com/u/timmaythee)\
**Post date:** [December 13, 2022, 12:46am UTC](https://forums.combatlogforums.com/t/api-trying-to-get-a-specific-characters-parses-from-a-specific-report/13426/1 "2022-12-13T00:46:04Z")

</div>

Hello!

I’m trying to query the GraphQL API to return all the parses of a specific character from a specific report.

Right now my query looks like this:

```auto
query($reportId: String) {
  reportData {
    report(code: $reportId) {
      fights(difficulty: 3, killType: Kills) {
        name
        encounterID
      }
    }
  }
}

```

I have the report code that I’m passing in through a variable.  
Assuming I already have the canonical ID of the character (or at least a way to retrieve whatever character data I need) - how would I get a filtered response from the API that includes the parses of that character for all of the filtered fights from this query?

Thank you to whoever can help!

---

<div class="post-metadata">

**Author:** ![timmaythee](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@timmaythee](https://forums.combatlogforums.com/u/timmaythee)\
**Post date:** [December 13, 2022, 1:39am UTC](https://forums.combatlogforums.com/t/api-trying-to-get-a-specific-characters-parses-from-a-specific-report/13426/2 "2022-12-13T01:39:38Z")

</div>

Found that I can query the rankings from the report, which returns the ranking for every character, and then can just filter it on my end. The query would look like:

```auto
query($reportId: String) {
  reportData {
    report(code: $reportId) {
      fights(difficulty: 3, killType: Kills) {
        name
        id
        encounterID
      }
      rankings(compare: Parses, playerMetric: dps, difficulty: 3)
    }
  }
} 

```

If anyone has a better way of going about it, that’d be greatly appreciated!
