# Download TrafficAdvice



Operation: downloadTrafficAdvice
GET /.well-known/traffic-advice

Access: anonymous. Automatic retries: none. Redirects: manual. Request body limit: 0 bytes.
Default timeout: 30 seconds. Response limit: 16 MiB. Pagination is opt-in and bounded; an exhausted bound reports incomplete execution.

[HTML reference](/developers/api/downloadTrafficAdvice) · [Authoritative schemas](/api/openapi.json)

## Wire contract

```json
{
  "operationId": "downloadTrafficAdvice",
  "summary": "Download TrafficAdvice",
  "tags": [
    "discovery"
  ],
  "parameters": [],
  "responses": {
    "200": {
      "description": "Public representation",
      "content": {
        "application/trafficadvice+json": {
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "user_agent",
                "fraction"
              ],
              "properties": {
                "user_agent": {
                  "type": "string",
                  "const": "prefetch-proxy"
                },
                "fraction": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                }
              }
            }
          }
        }
      }
    }
  }
}
```

## Synthetic examples

### curl

```bash
curl --fail-with-body --max-time 30 --max-filesize 16777216 --request GET 'https://irvinebroque.com/.well-known/traffic-advice' --header 'Accept: application/trafficadvice+json'
```

### TypeScript

```typescript
import { PublicApi } from '@irvinebroque/public-api';
const api = new PublicApi();
const result = await api.discovery.trafficAdvice({});
console.log(result.status, result.headers.get('content-type')); // Keep transient capabilities in memory.
```

### CLI

```bash
irvinebroque discovery traffic-advice
```
