# Group Performance

Return group performance for sectors, industries or countries with weekly to yearly changes, count, market cap, P/E, dividend and margins. The group parameter selects the data. The view code is kept for compatibility and does not change the data.

- **Documentation:** [https://scrappa.co/docs/finviz-api/finviz_groups](https://scrappa.co/docs/finviz-api/finviz_groups)
- **API group:** Finviz API
- **Endpoint:** `GET https://scrappa.co/api/finviz/groups`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `view` | string | No | Finviz group view code, for example 110 sectors. |
| `group` | string | No | sector, industry, country or capitalization. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/finviz/groups?view=110&group=sector"
```

## Example response

```json
{
    "groups": [
        {
            "ticker": "TECH",
            "label": "Technology",
            "perfW": 1.2
        }
    ],
    "source": "finviz"
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | No groups | No groups were returned. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
