# Get Public Id Source

List public ticker and story URLs from the MarketWatch sitemap. Use a returned ticker unchanged in the History endpoint. This is the public id source for the other MarketWatch routes.

- **Documentation:** [https://scrappa.co/docs/marketwatch-api/marketwatch_sitemap](https://scrappa.co/docs/marketwatch-api/marketwatch_sitemap)
- **API group:** MarketWatch API
- **Endpoint:** `GET https://scrappa.co/api/marketwatch/sitemap`

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

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/marketwatch/sitemap"
```

## Example response

```json
{
    "tickers": [
        "AAPL",
        "MSFT"
    ],
    "stories": [
        "1234567"
    ],
    "urls": [
        "https://www.marketwatch.com/investing/stock/AAPL"
    ],
    "source": "marketwatch"
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Not found | No tickers 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)
