Skip to main content
This page documents every query available in the Hexagraph GraphQL API with their arguments, return types, and complete usage examples. All queries are sent as POST requests to https://api.hexagraph.in/graphql.
All IDs passed to GraphQL queries must use the full HX_ prefix format — for example, HX_W2107277218 for a work or HX_A5086208034 for an author. Bare numeric IDs are not accepted.

output(id)

Fetches a single scholarly work by its unique identifier.

Arguments

String!
required
The HX_W-prefixed identifier of the scholarly work. Example: "HX_W2107277218".

Return Fields

Example Query

Example Response


outputs(query)

Searches and filters the Hexagraph works index. Supports full-text search, structured filter expressions, and pagination.

Arguments

Object
required
A query configuration object. All subfields are optional.

Return Fields

Returns an array of output objects. Each object supports the same fields as output(id), plus affiliations on nested author objects:

Example Query

Example Response


author(id)

Fetches a researcher’s profile by their unique author identifier.

Arguments

String!
required
The HX_A-prefixed identifier of the author. Example: "HX_A5086208034".

Return Fields

Example Query

Example Response


Batching Multiple Queries

GraphQL allows you to combine multiple top-level queries into a single request. The example below fetches a work and an author profile simultaneously:

Example Response

This single request counts as one request against the rate limit (30 req/min, 1,000/day), regardless of how many entity lookups are included. Batching is the recommended pattern whenever your application needs data about multiple entities at the same time.