> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-beta.marqii.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-beta.marqii.com/_mcp/server.

# Get FAQ Widget

GET https://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E

Loads a published **faq** widget.

`data`: `title` and `faq[]` of `{ id, question, answer, position }`.

`config`:

* `layout`: `accordion` | `list` | `twoColumns`
* `borderEnabled`, `dividerEnabled`
* `openFirstQuestionByDefault`, `multipleActiveQuestions` (accordion behavior)
* `accentColor`, `backgroundColor`, `transparentBackground`
* title, question and answer font family, size and color

`store` is optional.

Set the `faqWidgetId` collection variable to a published FAQ widget id.

Reference: https://docs-beta.marqii.com/marqii-public-widget-api/get-faq-widget

## Request

### Query parameters

- `widgetType` (string, required) — Required. Must be `faq`.

## Response

### 200

OK

- `id` (string, required)
- `geo` (ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaGeo, required)
- `data` (ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaData, required)
- `type` (string, required)
- `store` (ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaStore, required)
- `config` (ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaConfig, required)
- `createdAt` (integer, required)
- `updatedAt` (integer, required)

## Types

### ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaGeo

- `ip` (any, optional)
- `city` (any, optional)
- `country` (any, optional)
- `latitude` (any, optional)
- `longitude` (any, optional)

### ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaData

- `faq` (list of ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaDataFaqItems, required)
- `title` (string, required)

### ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaStore

- `id` (string, required)
- `title` (string, required)
- `address` (ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaStoreAddress, required)

### ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaConfig

- `layout` (string, required)
- `accentColor` (string, required)
- `borderEnabled` (boolean, required)
- `titleFontSize` (integer, required)
- `answerFontSize` (integer, required)
- `dividerEnabled` (boolean, required)
- `titleFontColor` (string, required)
- `answerFontColor` (string, required)
- `titleFontFamily` (string, required)
- `answerFontFamily` (string, required)
- `questionFontSize` (integer, required)
- `questionFontColor` (string, required)
- `questionFontFamily` (string, required)
- `transparentBackground` (boolean, required)
- `multipleActiveQuestions` (boolean, required)
- `openFirstQuestionByDefault` (boolean, required)
- `backgroundColor` (any, optional)

### ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaDataFaqItems

- `id` (string, required)
- `answer` (string, required)
- `position` (integer, required)
- `question` (string, required)

### ApiV2PublicWidget3Cpublished20Faq20Widget20Id3EGetResponsesContentApplicationJsonSchemaStoreAddress

- `country` (string, required)
- `postalCode` (string, required)
- `addressRegion` (string, required)
- `streetAddress` (string, required)
- `addressLocality` (string, required)

## Examples

**Response**

```json
{
  "id": "2c7a9e4b-1d5f-4b3a-8e6c-7a0f1d9b3e25",
  "geo": {
    "ip": null,
    "city": null,
    "country": null,
    "latitude": null,
    "longitude": null
  },
  "data": {
    "faq": [
      {
        "id": "f1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
        "answer": "Yes. Book online or call us during business hours.",
        "position": 0,
        "question": "Do you take reservations?"
      },
      {
        "id": "a6b7c8d9-e0f1-4a2b-9c3d-4e5f6a7b8c9d",
        "answer": "Free parking is available behind the building after 5pm.",
        "position": 1,
        "question": "Is there parking?"
      },
      {
        "id": "0e1f2a3b-4c5d-4e6f-a7b8-c9d0e1f2a3b4",
        "answer": "Yes, vegan dishes are marked on the menu.",
        "position": 2,
        "question": "Do you have vegan options?"
      }
    ],
    "title": "Frequently Asked Questions"
  },
  "type": "faq",
  "store": {
    "id": "5e2a9c1d-3b7f-4e8a-9d6c-1f4b8a2e7c50",
    "title": "Example Bistro - Downtown",
    "address": {
      "country": "US",
      "postalCode": "78701",
      "addressRegion": "TX",
      "streetAddress": "100 Main St",
      "addressLocality": "Austin"
    }
  },
  "config": {
    "layout": "accordion",
    "accentColor": "#2563EB",
    "borderEnabled": true,
    "titleFontSize": 32,
    "answerFontSize": 16,
    "dividerEnabled": true,
    "titleFontColor": "#111827",
    "answerFontColor": "#4B5563",
    "titleFontFamily": "Playfair Display",
    "answerFontFamily": "Inter",
    "questionFontSize": 18,
    "questionFontColor": "#111827",
    "questionFontFamily": "Inter",
    "transparentBackground": true,
    "multipleActiveQuestions": false,
    "openFirstQuestionByDefault": true,
    "backgroundColor": null
  },
  "createdAt": 1758574657934,
  "updatedAt": 1794269120268
}
```

**SDK Code**

```python
import requests

url = "https://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E"

querystring = {"widgetType":"faq"}

response = requests.get(url, params=querystring)

print(response.json())
```

```javascript
const url = 'https://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E?widgetType=faq';
const options = {method: 'GET'};

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://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E?widgetType=faq"

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

	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://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E?widgetType=faq")

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

request = Net::HTTP::Get.new(url)

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

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E?widgetType=faq")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E?widgetType=faq');

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

```csharp
using RestSharp;

var client = new RestClient("https://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E?widgetType=faq");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://embed.marqii.com/api/v2/public/widget/%3Cpublished%20faq%20widget%20id%3E?widgetType=faq")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
```