# Web Share API

## Overview

Web Share API allows web apps to implement sharing functionality using the device's native sharing capabilities instead of having to resort to scripts from the individual sharing platforms.

## Demo

<https://nectar.website/demo/web-apis/web-share/>

## Usage

You can refer to the code present in `/partials/web-apis/web-share.html` file and use it accordingly.

If Web Share API is not supported, then you can use third-party social sharing libraries as fallback.

## Reference

<https://developer.mozilla.org/en-US/docs/Web/API/Web_Share_API>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pmsgz.gitbook.io/nectar/advanced/web-apis/web-share.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
