# Get Site Plan

GET https://api.webflow.com/v2/sites/{site_id}/plan

Get site plan details for the specified Site.

<Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>

Required scope | `sites:read`


Reference: https://developers.webflow.com/data/reference/enterprise/workspace-management/get-site-plan

## OpenAPI Specification

```yaml
openapi: 3.1.1
info:
  title: Get Site Plan
  version: endpoint_sites/plans.get-site-plan
paths:
  /sites/{site_id}/plan:
    get:
      operationId: get-site-plan
      summary: Get Site Plan
      description: >
        Get site plan details for the specified Site.


        <Warning title="Enterprise Only">This endpoint requires an Enterprise
        workspace.</Warning>


        Required scope | `sites:read`
      tags:
        - - subpackage_sites
          - subpackage_sites/plans
      parameters:
        - name: site_id
          in: path
          description: Unique identifier for a Site
          required: true
          schema:
            type: string
            format: objectid
        - name: Authorization
          in: header
          description: >-
            Bearer authentication of the form `Bearer <token>`, where token is
            your auth token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sites_plans_get-site-plan_Response_200'
        '400':
          description: Request body was incorrectly formatted.
          content: {}
        '401':
          description: >-
            Provided access token is invalid or does not have access to
            requested resource
          content: {}
        '404':
          description: Requested resource not found
          content: {}
        '429':
          description: >-
            The rate limit of the provided access_token has been reached. Please
            have your application respect the X-RateLimit-Remaining header we
            include on API responses.
          content: {}
        '500':
          description: We had a problem with our server. Try again later.
          content: {}
components:
  schemas:
    SitesSiteIdPlanGetResponsesContentApplicationJsonSchemaId:
      type: string
      enum:
        - value: hosting-basic-v3
        - value: hosting-cms-v3
        - value: hosting-business-v3
        - value: hosting-ecommerce-standard-v2
        - value: hosting-ecommerce-plus-v2
        - value: hosting-ecommerce-advanced-v2
        - value: hosting-basic-v4
        - value: hosting-cms-v4
        - value: hosting-business-v4
        - value: hosting-ecommerce-standard-v3
        - value: hosting-ecommerce-plus-v3
        - value: hosting-ecommerce-advanced-v3
    SitesSiteIdPlanGetResponsesContentApplicationJsonSchemaName:
      type: string
      enum:
        - value: Basic Hosting
        - value: CMS Hosting
        - value: Business Hosting
        - value: ECommerce Standard Hosting
        - value: ECommerce Plus Hosting
        - value: ECommerce Advanced Hosting
    sites_plans_get-site-plan_Response_200:
      type: object
      properties:
        id:
          $ref: >-
            #/components/schemas/SitesSiteIdPlanGetResponsesContentApplicationJsonSchemaId
          description: ID of the hosting plan.
        name:
          $ref: >-
            #/components/schemas/SitesSiteIdPlanGetResponsesContentApplicationJsonSchemaName
          description: Name of the hosting plan.
        pricingInfo:
          type: string
          description: URL for more information about Webflow hosting plan pricing.

```

## SDK Code Examples

```python
from webflow import Webflow

client = Webflow(
    access_token="YOUR_ACCESS_TOKEN",
)
client.sites.plans.get_site_plan(
    site_id="580e63e98c9a982ac9b8b741",
)

```

```typescript
import { WebflowClient } from "webflow-api";

const client = new WebflowClient({ accessToken: "YOUR_ACCESS_TOKEN" });
await client.sites.plans.getSitePlan("580e63e98c9a982ac9b8b741");

```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/plan"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	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.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/plan")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
HttpResponse<String> response = Unirest.get("https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/plan")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/plan', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
var client = new RestClient("https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/plan");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/plan")! 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()
```