{
	"info": {
		"name": "Haunt API",
		"_postman_id": "haunt-api-collection",
		"description": "Web extraction API by hauntapi.com. Extract structured data from public and authorised URLs, with JavaScript rendering where supported and clear failures for login walls or human verification. Get your free API key at hauntapi.com.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"auth": {
		"type": "apikey",
		"apikey": [
			{ "key": "key", "value": "{{api_key}}", "type": "string" },
			{ "key": "in", "value": "header", "type": "string" },
			{ "key": "name", "value": "X-API-Key", "type": "string" }
		]
	},
	"variable": [
		{
			"key": "base_url",
			"value": "https://hauntapi.com/v1"
		},
		{
			"key": "api_key",
			"value": "YOUR_API_KEY_HERE"
		}
	],
	"item": [
		{
			"name": "Extract Full Content",
			"request": {
				"method": "POST",
				"header": [
					{ "key": "Content-Type", "value": "application/json" }
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"url\": \"https://example.com\",\n\t\"prompt\": \"Extract the full article content including title, author, date, and body text. Return as clean markdown.\"\n}"
				},
				"url": {
					"raw": "{{base_url}}/extract",
					"host": ["{{base_url}}"],
					"path": ["extract"]
				},
				"description": "Extract structured content from a public or authorised URL. Supports JavaScript rendering where available and returns clear failures for login walls or human verification. Requires a `prompt` describing what to extract."
			},
			"response": []
		},
		{
			"name": "Extract Article Only",
			"request": {
				"method": "POST",
				"header": [
					{ "key": "Content-Type", "value": "application/json" }
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"url\": \"https://news.example.com/article/123\",\n\t\"prompt\": \"Extract only the main article text. Remove navigation, ads, sidebars, and footer.\"\n}"
				},
				"url": {
					"raw": "{{base_url}}/extract",
					"host": ["{{base_url}}"],
					"path": ["extract"]
				},
				"description": "Extract just the article content, stripping away boilerplate like navigation, ads, and sidebars."
			},
			"response": []
		},
		{
			"name": "Extract Metadata",
			"request": {
				"method": "POST",
				"header": [
					{ "key": "Content-Type", "value": "application/json" }
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"url\": \"https://example.com\",\n\t\"prompt\": \"Extract the page metadata: title, description, og tags, author, published date, and canonical URL. Return as JSON.\"\n}"
				},
				"url": {
					"raw": "{{base_url}}/extract",
					"host": ["{{base_url}}"],
					"path": ["extract"]
				},
				"description": "Extract structured metadata from a page — OpenGraph tags, author info, dates, canonical URLs."
			},
			"response": []
		},
		{
			"name": "Extract Product Info",
			"request": {
				"method": "POST",
				"header": [
					{ "key": "Content-Type", "value": "application/json" }
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"url\": \"https://shop.example.com/product/xyz\",\n\t\"prompt\": \"Extract product information: name, price, description, availability, images, and specifications. Return as structured JSON.\"\n}"
				},
				"url": {
					"raw": "{{base_url}}/extract",
					"host": ["{{base_url}}"],
					"path": ["extract"]
				},
				"description": "Extract structured product data from e-commerce pages — price, availability, images, specs."
			},
			"response": []
		},
		{
			"name": "Health Check",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{base_url}}/health",
					"host": ["{{base_url}}"],
					"path": ["health"]
				},
				"description": "Check if the API is up and running. No auth required."
			},
			"response": []
		}
	]
}
