---
title: "302/3XX Redirects to the given URL."
url: "https://seriousmonkeybusiness.shermett.me/apis/httpbinorg-0/versions/cf5887fc-2a8e-440f-bf06-cb4d956f625f/operations/get_redirect-to"
---

> Full API specification: https://seriousmonkeybusiness.shermett.me/apis/httpbinorg-0/versions/cf5887fc-2a8e-440f-bf06-cb4d956f625f.md

# 302/3XX Redirects to the given URL.

`GET` `/redirect-to`

Operation ID: `get_redirect-to`

## Query parameters

- `url` (string, required)
- `status_code` (integer, optional)

## Responses

- `302` - A redirection.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: httpbin.org
  version: 0.9.2
servers:
  - url: https://httpbin.org
paths:
  /redirect-to:
    get:
      parameters:
        - in: query
          name: url
          required: true
          schema:
            type: string
        - in: query
          name: status_code
          schema:
            type: integer
      responses:
        "302":
          description: A redirection.
      summary: 302/3XX Redirects to the given URL.
      tags:
        - Redirects
      operationId: get_redirect-to
```
