• Resolved rachinger

    (@rachinger)


    Hello,

    I currently try to read data from the Lions API
    https://api.lions.at/index.php?eID=lionsbase_api&eID=lionsbase_api&route=/clubs

    If I enter the following code it shows me the first entry of my list:
    [jsoncontentimporter url="https://api.lions.at/?eID=lionsbase_api&route=/clubs" numberofdisplayeditems="1" basenode="clubs"] {name}[/jsoncontentimporter]

    That works as it should but my usecase is different:
    In my usecase i need to show the “name” with the “id” = 6
    So the output here should be “Alpina”.

    Is it possible to filter the result so i get the right result which is not the first result?

Viewing 1 replies (of 1 total)
  • Plugin Author berkux

    (@berkux)

    Hi,

    the free-version can do this by “oneOfTheseWordsMustBeIn” and “oneOfTheseWordsMustBeInDepth”: Thisd chekcs the output text on a keyword:

    [jsoncontentimporter url=https://api.lions.at/?eID=lionsbase_api&route=/clubs knumberofdisplayeditems=1 oneOfTheseWordsMustBeIn=”Pintergasse” oneOfTheseWordsMustBeInDepth=2 basenode=clubs]{name} {address} {id}
    [/jsoncontentimporter]

    see also
    http://api.json-content-importer.com/api-lions-at/

    The pro-version allows you to pick the 6th item direct. Or the item with the id of your club.
    This is more safe, what if another clubs also is in the Pintergasse or another keyword matches by accident…

    Bernhard

Viewing 1 replies (of 1 total)

The topic ‘Filter Data’ is closed to new replies.