PRO: Pagination by twig – 1 feed, many pages

This page demonstrates how you can paginate data. All data comes in 1 feed (see here for data in several feeds) Create a new JCI-Template for that: Name of Template: paginationURL: http://api.json-content-importer.com/extra/paginationdata.phpurlparam4twig: notwig template: Shortcode: Example in action:

Free: API Wikipedia.org

API-Source: Wikipedia API is at https://www.mediawiki.org/wiki/API:Main_pageAPI-Example: https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles=munichsee Wikipedia: https://en.wikipedia.org/wiki/Munich Local stored JSON: http://api.json-content-importer.com/extra/json/wikipedia-munich-api-result.json JCI-Syntax for free Plugin: In Action:

PRO: Basic JSON-/Twig-Usage with “_context” or “_parent”

API-Source: http://api.json-content-importer.com/extra/json/2.json If your JSON starts with “[{” try this: JCI-template: Name: contextparentURL: http://api.json-content-importer.com/extra/json/2.json Shortcode: twig defines some Global Variables _self: references the current template name;_context: references the current context;_charset: references the current charset. _parent is almost the same as _context but: note the differnce of _context and _parent loops In Action:

Free & PRO: API Stadt Köln open-data

API-Source:https://www.stadt-koeln.de/externe-dienste/open-data/traffic.phpandhttps://www.stadt-koeln.de/leben-in-koeln/verkehr/verkehrskalender/ JSON stored locally: http://api.json-content-importer.com/extra/json/koeln-20220130-traffic.json In Action: Free Plugin (show the first four items) PRO-Plugin (show only >0 values and only 6 items): URL: https://www.stadt-koeln.de/externe-dienste/open-data/traffic.phptwig-Template:

API: data.sportlink.com

API-Source: http://www.sportlinkclub.nl/ledenadministratie/club-dataservice/ API-Syntax: https://data.sportlink.com/teams?client_id=… or https://data.sportlink.com/poulestand?client_id=…&poulecode=…. JCI-Syntax: [jsoncontentimporterpro url=https://data.sportlink.com/teams?client_id=… parser=twig] {% for item in _context %} {% if item.poulecode>0 %} poulecode: {{item.poulecode}} [jsoncontentimporter url=https://data.sportlink.com/poulestand?client_id=…&poulecode={{item.poulecode}}] {teamnaam:ifNotEmptyAddLeft:teamnaam }{clubrelatiecode:ifNotEmptyAddLeft:clubrelatiecode } [/jsoncontentimporter] {% endif %} {% endfor %} [/jsoncontentimporterpro] Settings of jsoncontentimporterpro: The Plugin-Option-Tab “Settings” > “Usage of other shortcodes:” must be “first JSONContentImporter-Shortcode, 2nd: third-party-Shortcodes (default)” Example:

NYT newswire

[jci_nytapi api=”newswire” ]{thumbnail_standard:ifNotEmptyAddLeftRight:##}{title} ({section}){abstract}({updated_date:datetime,Y.m.d H:i,0}) [/jci_nytapi]

ICI: Jeu de sens

{“id”:27484,”name”:”ICI: Jeu de sens”,”start_date”:”2022-03-17″,”end_date”:”2022-03-19″,”production_period”:{“start”:”2022-03-17 15:00:00″,”end”:”2022-03-19 21:00:00″},”fields”:[{“value”:”Konsert for 1: ICI: Benjamin Soistier u2013 Jeu de sens”,”id”:171071,”show_time_id”:null},{“value”:”Concert for 1: ICI: Benjamin Soistier u2013 Jeu de sens”,”id”:171072,”show_time_id”:null},{“value”:”https://borealis.ticketco.events/no/nb/e/boreali_2022_jeudesens_tors”,”id”:171062,”show_time_id”:null},{“value”:”https://borealis.ticketco.events/no/nb/e/borealis_2022_jeudesens_fre”,”id”:503205,”show_time_id”:null},{“value”:”https://borealis.ticketco.events/no/nb/e/borealis_2022_jeudesens_sat”,”id”:503135,”show_time_id”:null},{“value”:”100,u2013″,”id”:204548,”show_time_id”:null},{“value”:”NOK 100″,”id”:204566,”show_time_id”:null},{“value”:null,”id”:171066,”show_time_id”:null},{“value”:null,”id”:171065,”show_time_id”:null},{“value”:null,”id”:172301,”show_time_id”:null},{“value”:null,”id”:172305,”show_time_id”:null},{“value”:”Verket fremfu00f8res for 1 publikummer om gangen, og varer i 30 minutter. Benjamin Soistier u2013 konsept & musikerNicolas Perrin u2013 elektronikkVerket er en del av konseptet ICI i Kulturhuset i Bergen, skapt av … Continue reading “ICI: Jeu de sens”

Catherine Lamb – inter-spatia

{“id”:19026,”name”:”Catherine Lamb u2013u00a0inter-spatia”,”start_date”:”2022-03-17″,”end_date”:”2022-03-18″,”production_period”:{“start”:”2022-03-17 17:00:00″,”end”:”2022-03-18 22:30:00″},”fields”:[{“value”:”1″,”id”:490265,”show_time_id”:null},{“value”:”1″,”id”:490265,”show_time_id”:null},{“value”:null,”id”:503135,”show_time_id”:null},{“value”:null,”id”:503135,”show_time_id”:null},{“value”:null,”id”:503205,”show_time_id”:null},{“value”:null,”id”:503205,”show_time_id”:null},{“value”:”Catherine Lamb u2013u00a0inter-spatia”,”id”:171071,”show_time_id”:null},{“value”:”Catherine Lamb u2013u00a0inter-spatia”,”id”:171072,”show_time_id”:null},{“value”:”https://borealis.ticketco.events/no/nb/e/borealis_2022_cathrinelamb”,”id”:171062,”show_time_id”:null},{“value”:”200,u2013/175,u2013/125,u2013″,”id”:204548,”show_time_id”:null},{“value”:”NOK 200/175/125″,”id”:204566,”show_time_id”:null},{“value”:”*World Premiere*”,”id”:171066,”show_time_id”:null},{“value”:”*verdenspremiere*”,”id”:171065,”show_time_id”:null},{“value”:”Den amerikanske komponisten Catherine Lamb dedikerer dette bestillingsverket til en pioner innen elektronisk musikk; Maryanne Amacher, som er kjent for sine banebrytende og komplekse komposisjoner. Lamb fikk aldri mu00f8tt Amacher som gikk bort i 2009, men Lamb har siden da benyttet henne som en imaginu00e6r … Continue reading “Catherine Lamb – inter-spatia”

Delegates: Dinner

{“id”:25517,”name”:”Delegates: Dinner”,”start_date”:”2022-03-19″,”end_date”:”2022-03-19″,”production_period”:{“start”:”2022-03-19 17:00:00″,”end”:”2022-03-19 18:30:00″},”fields”:[],”show_times”:[{“id”:2643,”start”:”2022-03-19 17:00:00″,”end”:”2022-03-19 18:30:00″,”title”:null}],”festival_resources”:[],”rooms”:[],”performances”:[{“id”:469,”name”:”Delegates”}],”venue”:{“id”:null,”name”:”N/A”}}