2022-05-17 13:26:34 -04:00
---
description: |
2025-01-21 19:30:41 -08:00
The `http` data source makes an HTTP `GET` request to the specified URL and exports information about the response.
page_title: http data source reference
2022-05-17 13:26:34 -04:00
---
2025-11-19 16:24:25 -06:00
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
> [!IMPORTANT]
> **Documentation Update:** Product documentation previously located in `/website` has moved to the [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs) repository, where all product documentation is now centralized. Please make contributions directly to `web-unified-docs`, since changes to `/website` in this repository will not appear on developer.hashicorp.com.
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
2022-05-17 13:26:34 -04:00
<BadgesHeader>
<PluginBadge type="official" />
<PluginBadge type="hcp_packer_ready" />
</BadgesHeader>
2025-01-21 19:30:41 -08:00
# `http`
2022-05-17 13:26:34 -04:00
2025-01-21 19:30:41 -08:00
The `http` data source makes an HTTP `GET` request to the specified URL and exports information about the response.
2022-05-17 13:26:34 -04:00
## Basic Example
2022-05-17 20:11:26 +02:00
```hcl
2022-05-17 13:26:34 -04:00
data "http" "example" {
url = "https://checkpoint-api.hashicorp.com/v1/check/terraform"
# Optional request headers
request_headers = {
Accept = "application/json"
}
}
2022-05-17 20:11:26 +02:00
```
2022-05-17 13:26:34 -04:00
## Configuration Reference
Configuration options are organized below into two categories: required and
optional. Within each category, the available options are alphabetized and
described.
### Required:
@include 'datasource/http/Config-required.mdx'
### Not Required:
@include 'datasource/http/Config-not-required.mdx'
## Datasource outputs
The outputs for this datasource are as follows:
@include 'datasource/http/DatasourceOutput.mdx'