Skip to content

Script/placeholder to fetch and parse JSON data#63

Closed
zefir-git wants to merge 1 commit into
PlaceholderAPI:masterfrom
zefir-git:feature/fetch_json
Closed

Script/placeholder to fetch and parse JSON data#63
zefir-git wants to merge 1 commit into
PlaceholderAPI:masterfrom
zefir-git:feature/fetch_json

Conversation

@zefir-git
Copy link
Copy Markdown

@zefir-git zefir-git commented May 26, 2022

Description

This script fetches JSON data from an online resource (e.g. REST API), parses it, and returns any element from the data that you request.

Usage

Syntax

%javascript_fetch_json_<URL>,<JSON PATH>%

Examples

  • /papi parse me %javascript_fetch_json_https://eu.mc-api.net/v3/server/ping/mc.hypixel.net,description%
    image
  • /papi parse me %javascript_fetch_json_https://eu.mc-api.net/v3/server/ping/mc.hypixel.net,players.online%
    image

@zefir-git zefir-git closed this Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant