JSON Link
The JSONLink engine reads a JSON document from a URL, such as a REST API or a data export, and returns one item per record.
Output fields [oe]
The fields depend on your JSON. Each key of a record becomes a field. JoomGrabber reads the document when you save the pipe and lists the fields it found in Engine Output [oe].
Basic tab
- JSON Link: the address of the JSON document.
- Token authentication: for APIs that need a token. JoomGrabber sends it as
Authorization: Bearer <token>. - Items Limit: the most records read per run. Default 100.
Advanced tab
- JSON Childs Path: where the list of records is, when it is not at the top of the document. Use dots between the keys. For
{"data": {"items": [ ... ]}}enterdata.items. - Extra Inputs: values deeper inside each record that you want as their own fields. Add a row with a Label (the field name) and a Path inside the record, with dots, such as
author.nameorimages.0.url.
Example
{
"data": {
"items": [
{ "id": 7, "title": "Opening hours", "body": "<p>...</p>", "author": { "name": "Sara" } }
]
}
}
| Setting | Value |
|---|---|
| JSON Childs Path | data.items |
| Extra Inputs | Label author_name, Path author.name |
The fields are id, title, body and author_name.
Tips
- Use Preview to check the records and fields.
- The JSON must be a list of records at the path you give. An object of objects is not read as a list.
- Keep the token private: it is stored in the pipe and in exported
.pipefiles.