Content API Documentation

This guide provides consumers with the information required to get started querying PLI library content through the public Content API endpoint. It outlines authentication, query structure, and filter options.

API Endpoint

  • Method: POST

  • URL: https://productsapi.pli.edu/content-graphql

  • Content-Type: application/json

Authentication

To get started, you will need to obtain a subscription key in order to secure API interaction. Contact your PLI account manager or email us at info@pli.edu to obtain a subscription key.

Send your subscription key in the request header:

  • Ocp-Apim-Subscription-Key: <your-subscription-key>

Or as a query parameter:

  • ?subscription-key=<your-subscription-key>

If the key is missing or invalid, the request will be rejected.

Exploring the API via GraphQL Introspection

The preferred way to explore this API is a Postman GraphQL request with schema introspection, or your preferred API client that supports GraphQL introspection.

Benefits:

  • Discover query fields and arguments from the live schema.

  • Inspect enum and input-object values before building integrations.

  • Validate your query and variables quickly before coding.

Suggested setup in Postman:

  1. Create a GraphQL request.

  2. Set URL to https://testproductsapi.pli.edu/content-graphql.

  3. Add headers:

    • Ocp-Apim-Subscription-Key: <your-subscription-key>

  4. Use GraphQL introspection to see fields and arguments available to query with.

For a more in-depth information about GraphQL itself, please visit the official documentation. For more information about the API itself, check out the API details. For specific examples, see GraphQL and cURL examples.