app qparas

Query the Paras.id API, returning unpaginated JSON data

1 unstable release

0.1.0 Apr 22, 2022

MIT/Apache

175KB
193 lines

QParas

Query the Paras API, returning unpaginated JSON data.

See https://parashq.github.io for a broader list of queries and their respective parameters.

Demo

ASCII Demo

Installation

First, install Rust and Cargo. See https://rustup.rs/.

cargo install qparas

Usage

qparas [query] [params...]

Examples

See https://parashq.github.io for a broader list of queries and their respective parameters.

  • List all tokens for a particular collection that are for sale.

    qparas token-series collection_id=mint.havendao.near min_price=0 __sort=metadata.score::-1
    
    • __sort=metadata.score::-1: Sort by rarity score in descending order.
  • Get the two most recent price updates for a single token.

    qparas activities contract_id=mint.havendao.near token_id=253 type=add_market_data __limit=2 __min=2
    
    • __limit=2: Ask the server to return two results per page.
    • __min=2: Return at least 2 results.
  • Get the 50 most recent activities for a collection.

    qparas collection-activities collection_id=mint.havendao.near __limit=25 __min=50
    
    • __limit=50: Ask the server to return 25 results per page.
    • __min=50: Return at least 50 results.

Dependencies

~8–21MB
~316K SLoC