README file from
GithubObsidian Request
An Obsidian plugin for adding web requests to your notes.
- Simple and forgiving markdown codeblock for configuration.
- JSONPath for targeting the value in the response.
- Handlebars for templating the result.
- Request chaining
See the full documentation here
Quick example
```request
url: https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY
---
<img src="https://raw.githubusercontent.com/joepetrakovich/obsidian-request/HEAD/{{url}}" alt="{{title}}" />
<details>
<summary>{{title}}</summary>
{{explanation}}
</details>
```
Configuration
| field | type | required | description |
|---|---|---|---|
| url | URL | yes | The HTTP/HTTPS endpoint to request |
| method | string | no | HTTP method: GET, POST, PUT, or DELETE (default: GET) |
| headers | array | no | Request headers as key-value pairs |
| body | JSON | no | Request body (for POST/PUT requests) |
| path | string | no | JSONPath expression to extract data from response |
| then | object | no | Chain another request using data from the previous response |
| — | string | no | Separator between config and template. Use Handlebars JS templates below |