> For the complete documentation index, see [llms.txt](https://gp0.gitbook.io/graphql-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gp0.gitbook.io/graphql-docs/bibliographic/works_and_marketing_material.md).

# Select works and their relevant marketing material

Select works and their marketing material

## Explanation

Products within a work are listed along with relevant marketing material such as description copy, prizes and subject classifications.

```
query GetWorkDetailsById($workId: Int!) {
  work(workSearch: {idEq: $workId}) {
    id
    identifyingDoi
    inHouseWorkReference
    title
    subtitle
    authorshipDescription
    contributorPrettyList
    contributions {
      id
      productIds
      onixContributorRoleCode
      onixContributorRole {description}
      contributor {
        __typename
        name
      }
    }
    editionNumber
    mainBicCode: subjectCodes(schemesIn: [BIC], mainOnly: true) {
      __typename
      code
      description
      main
    }
    mainThema: subjectCodes(schemesIn: [THEMA], mainOnly: true) {
      __typename
      code
      description
      main
      ... on Thema {
        parentCode
      }
    }
    mainBisac: subjectCodes(schemesIn: [BISAC], mainOnly: true) {
      __typename
      code
      description
    }
    marketingTexts {
      onixContentAudienceCodes
      onixContentAudiences {description}
      id
      fromDate
      externalTextNumberOfCharacters
      externalText
      internalTextNumberOfCharacters
      internalText
    }
    marketingTier
    onixEditionTypeCodes
    prizes {
      id
      prizeName
      onixPrizeAchievementCode
      prizeJury
      prizeYear
      prizeStatement
      prizeable {id}
      onixPrizeAchievement {
        __typename
        value
        code
        description
        notes
      }
      productIds
    }
    season
    seriesMemberships {
      series {
        __typename
        name
        subtitle
        id
      }
    }
    similarProducts {
      inHouseEdition {id}
      contributions {
        __typename
        contributor {name}
        onixContributorRole {description}
      }
      authorshipDescription
      id
      isbn {isbn13}
      fullTitle
    }
  }
}
```

Define your work ID variable:

```
{
  "workId": YOUR_WORK_ID_HERE
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gp0.gitbook.io/graphql-docs/bibliographic/works_and_marketing_material.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
