# List all studies in a project GET https://api.prolific.com/api/v1/projects/{project_id}/studies/ List all of your studies in a project. For projects with a large number of studies, pagination can be used to optimize the response size and performance. To paginate, use the `page`, `page_size` and `ordering` query parameters. For example, to retrieve the first 10 studies, use `/api/v1/projects/{project_id}/studies/?page=1&page_size=10&ordering=-date_created`. Reference: https://beta-docs.prolific.com/api-reference/studies/get-project-studies ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: List all studies in a project version: endpoint_studies.GetProjectStudies paths: /api/v1/projects/{project_id}/studies/: get: operationId: get-project-studies summary: List all studies in a project description: >- List all of your studies in a project. For projects with a large number of studies, pagination can be used to optimize the response size and performance. To paginate, use the `page`, `page_size` and `ordering` query parameters. For example, to retrieve the first 10 studies, use `/api/v1/projects/{project_id}/studies/?page=1&page_size=10&ordering=-date_created`. tags: - - subpackage_studies parameters: - name: project_id in: path description: Project id required: true schema: type: string - name: page in: query description: The page number to retrieve. required: false schema: type: integer - name: page_size in: query description: The number of studies to retrieve per page. required: false schema: type: integer - name: ordering in: query description: >- The ordering of the studies. Use `-date_created` to order by date created in descending order. required: false schema: type: string - name: Authorization in: header description: Header authentication of the form `undefined ` required: true schema: type: string responses: '200': description: List of studies for the given project content: application/json: schema: $ref: '#/components/schemas/StudiesListResponse' '400': description: Error content: {} components: schemas: StudyShortStatus: type: string enum: - value: UNPUBLISHED - value: SCHEDULED - value: PUBLISHING - value: ACTIVE - value: AWAITING REVIEW - value: PAUSED - value: COMPLETED StudyShortStudyType: type: string enum: - value: SINGLE - value: UK_REP_SAMPLE - value: US_REP_SAMPLE StudyShort: type: object properties: id: type: string description: Study id. It is created by Prolific. name: type: string description: Public name or title of the study internal_name: type: - string - 'null' description: Internal name of the study, not shown to participants status: $ref: '#/components/schemas/StudyShortStatus' description: Status of the study. study_type: $ref: '#/components/schemas/StudyShortStudyType' description: Deprecated. Type of study. total_available_places: type: number format: double description: How many participants are you looking to recruit places_taken: type: number format: double description: >- Places already taken, number of submission started excluding timed out and returned submissions number_of_submissions: type: number format: double reward: type: number format: double description: >- How much are you going to pay the participants in cents. We use the currency of your account total_cost: type: number format: double description: Total cost of the study including fees published_at: type: - string - 'null' format: date-time description: Date time when the study was published. publish_at: type: - string - 'null' format: date-time description: Date time when the study was scheduled to be published. date_created: type: string format: date-time description: Date time when the study was created credential_pool_id: type: - string - 'null' description: The ID of the credential pool associated with this study, if any required: - id - name StudiesListResponse: type: object properties: results: type: array items: $ref: '#/components/schemas/StudyShort' description: List of all studies matching the criteria. required: - results ``` ## SDK Code Examples ```python import requests url = "https://api.prolific.com/api/v1/projects/project_id/studies/" headers = {"Authorization": ""} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.prolific.com/api/v1/projects/project_id/studies/'; const options = {method: 'GET', headers: {Authorization: ''}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.prolific.com/api/v1/projects/project_id/studies/" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.prolific.com/api/v1/projects/project_id/studies/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = '' response = http.request(request) puts response.read_body ``` ```java HttpResponse response = Unirest.get("https://api.prolific.com/api/v1/projects/project_id/studies/") .header("Authorization", "") .asString(); ``` ```php request('GET', 'https://api.prolific.com/api/v1/projects/project_id/studies/', [ 'headers' => [ 'Authorization' => '', ], ]); echo $response->getBody(); ``` ```csharp var client = new RestClient("https://api.prolific.com/api/v1/projects/project_id/studies/"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", ""); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api.prolific.com/api/v1/projects/project_id/studies/")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```