# LLM Answers Prompt Library API Documentation

Returns the public prompt templates the logged-out ChatGPT offers, each with id, title, description, the full prompt text, a one-line summary and a category. These templates are not follow-up suggestions for a prompt.

- **Documentation:** [https://scrappa.co/docs/llm-answers-api/llm_answers_prompt_library](https://scrappa.co/docs/llm-answers-api/llm_answers_prompt_library)
- **API group:** LLM Answers API
- **Endpoint:** `GET https://scrappa.co/api/llm-answers/prompt-library`

## 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/llm-answers/prompt-library"
```

## Example response

```json
{
    "success": true,
    "data": {
        "prompts": [
            {
                "id": "94e4124e",
                "title": "Write a text",
                "description": "inviting my neighbors to a barbecue",
                "prompt": "Write a short-and-sweet text message inviting my neighbor to a barbecue.",
                "oneliner": "Text inviting neighbors to barbecue",
                "category": "write"
            }
        ],
        "total": 1
    },
    "meta": {
        "duration_ms": 700
    }
}
```

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