McMain icon

McMain

Interact with McMain API

Crew → Get List

AI-generated

Summary

Retrieves a list of crews from the McMain API

Inputs

  • returnAll — Whether to return all results or only up to a given limit
  • limit — Maximum number of results to return (default 50, up to 500)
  • requestOptions — Additional HTTP request settings such as batching, SSL verification, proxy, and timeout

Output shape

an array of crew objects

The response body contains the list of crews returned by the API; fields match the crew data structure

Examples

Example 1: Get the first page of crews using default settings

returnAll = false, limit = 50, default request options

Example 2: Fetch all crews in batches, ignoring SSL errors

returnAll = true, allowUnauthorizedCerts = true, batchSize = 100

Discussion