?include query parameter. Scholarly implements this parameter on all GET endpoints.
Bringing in these related resources is a great way to make fewer requests against the Scholarly API while still accomplishing your goal. Rather than needing to issue 1 request to fetch a list of users, and then N requests for their attached profiles, API clients are able to pull all of that down in one request.
These extra records are written to the top-level included JSON key. Here’s an example response to the GET /api/v1/users?include=profile endpoint:
Limitations
To prevent runaway queries, Scholarly limits all?include parameters to a depth of 2. Any request specifying more than that will receive a 400 Bad Request. Note, a depth of 2 means the ?include parameter will have at most 1 period (.).
Here are a few examples: