Skip to main content
Hexagraph provides a code-first GraphQL gateway at https://api.hexagraph.in/graphql. The same URL doubles as an interactive browser playground powered by Apollo Sandbox, so you can explore the schema, write queries, and inspect responses without leaving your browser — no client setup required. For programmatic access, send a standard POST request with a JSON body.

The GraphQL Playground

Navigate to https://api.hexagraph.in/graphql in your browser to open the Apollo Sandbox. The playground gives you:
  • Schema explorer — browse all available query types, arguments, and return fields in the left-hand panel.
  • Autocomplete — the query editor surfaces field suggestions as you type, so you can discover the full data model interactively.
  • Live execution — click Run to fire a query against the live Hexagraph API and inspect the response inline.
No sign-in or API key is needed. The playground is the fastest way to prototype a query before wiring it into your application.

Making GraphQL Requests

All GraphQL operations use a single endpoint and HTTP method. Send your query as the query property of a JSON body in a POST request:
Example response
Because you asked only for id, title, and year, those are the only three fields returned — the response is exactly as wide as you declared, no more.

Available Queries

output(id)

Fetch a single scholarly work by its HX_ID. Use this when you have a known identifier and need its full metadata record.
Example response

outputs(query)

Search and filter the full outputs index. The query argument mirrors the REST endpoint’s search, filter, page, and per_page parameters, but returns only the fields you declare.
Example response

author(id)

Fetch a complete researcher profile by HX_ID, including citation metrics and institutional affiliations.
Example response

Batching Multiple Lookups

One of GraphQL’s most practical advantages is the ability to resolve multiple independent entities in a single HTTP request. The example below fetches both a scholarly output and an author profile in one round trip, using aliases to give each field a distinct key in the response:
Example response
Two records retrieved — one API call charged against your rate limit quota.

Benefits over REST

Using GraphQL to batch multiple entity lookups into a single request is the most efficient way to stay within Hexagraph’s rate limits (30 requests/min, 1,000/day) when building integrations. A single query that fetches ten outputs and five author profiles counts as just one request against your quota.