# Get Market Indices

Get real-time data for major market indices including S&P 500, Dow Jones, NASDAQ, and Russell 2000. For individual stock detail after checking market benchmarks, use the [Google Finance quote API](/docs/google-finance-api/google_finance_quote).

- **Documentation:** [https://scrappa.co/docs/google-finance-api/google_finance_indices](https://scrappa.co/docs/google-finance-api/google_finance_indices)
- **API group:** Google Finance API
- **Endpoint:** `GET https://scrappa.co/api/google-finance/indices`

## 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 |
| --- | --- | --- | --- |
| `indices` | string | No | Comma-separated list of index symbols (default: S&P 500, Dow Jones, NASDAQ, Russell 2000) |
| `hl` | string | No | Language code (default: en) |
| `gl` | string | No | Country code (default: us) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/google-finance/indices?indices=INDEXSP%3A.INX%2CINDEXDJX%3A.DJI"
```

## Example response

```json
{
    "indices": [
        {
            "symbol": ".INX",
            "name": "S&P 500",
            "exchange": "INDEXSP",
            "full_symbol": ".INX:INDEXSP",
            "currency": "USD",
            "current_price": 6051.97,
            "price_change": -16.53,
            "percent_change": -0.27,
            "previous_close": 6068.5,
            "price_movement": {
                "direction": "Down",
                "value": -16.53,
                "percentage": -0.27
            }
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Invalid indices parameter |  |
|  | Google Finance request failed |  |

## 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)
