> ## Documentation Index
> Fetch the complete documentation index at: https://requestly-mintlify-changelog-requestly-past-week-38456.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Client Code

> Easily generate client code snippets for API requests with Requestly. Supports multiple languages including Python, Ruby, PHP, R, and shell.

Requestly can convert an API request into a client code snippet, making integrating API calls into application code easy. Requestly supports multiple programming languages and frameworks like Python, Ruby, R, PHP, and Shell.

## How to Generate Client Code

Follow these steps to generate client code for your API request:

<Steps>
  <Step title="Open API Request">
    Navigate to the API request for which you want to generate code.

    <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/UhN5Eh5FO_C7QFYI/images/generate-client-code/25955bc2-a37e-4300-a12d-c980ca562db8.png?fit=max&auto=format&n=UhN5Eh5FO_C7QFYI&q=85&s=c7ba26083c8665e0006fbcaf1fa8fd69" align="center" fullwidth="false" width="2400" height="1344" data-path="images/generate-client-code/25955bc2-a37e-4300-a12d-c980ca562db8.png" />
  </Step>

  <Step title="Access Code Generation Menu">
    Click on the **three dots** next to the **Save** button, and then, from the dropdown menu, click on **Copy As**.

    <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/UhN5Eh5FO_C7QFYI/images/generate-client-code/4f431083-0dc2-42af-94f2-aef5824a8533.png?fit=max&auto=format&n=UhN5Eh5FO_C7QFYI&q=85&s=7b5a1e72d32ffc8902b89f905ffe13e6" align="center" fullwidth="false" width="2400" height="1344" data-path="images/generate-client-code/4f431083-0dc2-42af-94f2-aef5824a8533.png" />
  </Step>

  <Step title="Choose a Programming Language">
    A modal will open displaying the client code for the selected programming language. You can **switch between languages** using the dropdown at the top left of the modal.

    <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/UhN5Eh5FO_C7QFYI/images/generate-client-code/ae31c8af-dac9-478d-8ec2-422b1f5cf462.png?fit=max&auto=format&n=UhN5Eh5FO_C7QFYI&q=85&s=4c7e225c922693beed8c78b662de029a" align="center" fullwidth="false" width="2400" height="1364" data-path="images/generate-client-code/ae31c8af-dac9-478d-8ec2-422b1f5cf462.png" />
  </Step>

  <Step title="Copy the Code">
    Click the **Copy** button in the top right corner of the modal to copy the generated code snippet to your clipboard.

    <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/UhN5Eh5FO_C7QFYI/images/generate-client-code/252eed1c-d8bc-4d01-886e-385eee8b89c9.png?fit=max&auto=format&n=UhN5Eh5FO_C7QFYI&q=85&s=d5f89a8a3f0537ca59eb7943fafa205e" align="center" fullwidth="false" width="2400" height="1344" data-path="images/generate-client-code/252eed1c-d8bc-4d01-886e-385eee8b89c9.png" />
  </Step>
</Steps>

## Supported Languages

Requestly supports generating client code in multiple programming languages, covering a wide range of use cases:

* **PHP - Guzzle**

* **PHP - HTTP v1**

* **PHP - HTTP v2**

* **PowerShell - Invoke-WebRequest**

* **PowerShell - Invoke-RestMethod**

* **Python - Requests**

* **R - httr**

* **Ruby - net::http**

* **Shell - cURL**

* **Shell - HTTPie**

* **Shell - Wget**

<Info>
  We are expanding the list of support languages, if you want to see a particular language here you can either open an issue or directly open a PR on <a target="_blank" href="https://github.com/requestly/requestly">our GitHub repo</a>.
</Info>
