• Resolved juniorjef

    (@juniorjef)


    Hello and thank you for your help,

    I’m not an API/JSON specialist, so your answer will be very useful.

    I have a public end-point API: https://api.tech.ec.europa.eu/search-api/prod/rest/search?apiKey=SEDIA&text=***

    That API need to get parameter (in JSON format) as for example: {“bool”:{“must”:[{“terms”:{“type”:[“1″,”2”]}},{“terms”:{“status”:[“31094502”]}},{“terms”:{“frameworkProgramme”:[“43108390”]}},{“terms”:{“programmeDivision”:[“43108406”]}}]}}

    How can I fetch data from this API using your plugin?

    thank you SO much from Belgium!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hi,

    what you can do is this:

    [jsoncontentimporter url=https://api.json-content-importer.com/extra/json/juniorjef.json basenode=bool.must]
    {subloop:terms:-1}
    type: {subloop-array:terms.type:10}{0} {1}{/subloop-array:terms.type}
    status: {subloop-array:terms.status:10}{0}{/subloop-array:terms.status}
    frameworkProgramme: {subloop-array:terms.frameworkProgramme:10}{0}{/subloop-array:terms.frameworkProgramme}
    programmeDivision: {subloop-array:terms.programmeDivision:10}{0}{/subloop-array:terms.programmeDivision}
    <hr>
    {/subloop:terms}
    [/jsoncontentimporter]

    Bernhard

    Thread Starter juniorjef

    (@juniorjef)

    Hello Bernhard and thank you for your help,

    I think there was a misunderstanding.

    My problem is that I don’t have a .json file with json data inside.

    To get the json data i want to display, I need to query an API (the url of the public end point of the API is: https://api.tech.ec.europa.eu/search-api/prod/rest/search?apiKey=SEDIA&text=***) and I have to add parameter (and parameter has json structure: {“bool”:{“must”:[{“terms”:{“type”:[“1″,”2”]}},{“terms”:{“status”:[“31094502”]}},{“terms”:{“frameworkProgramme”:[“43108390”]}},{“terms”:{“programmeDivision”:[“43108406”]}}]}}) to my request .

    Is it possible? Do I need the PRO version?

    Plugin Author berkux

    (@berkux)

    Hi,

    ok. For sending JSON in a Header you need the pro plugin.
    Questions on that at
    https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no
    only

    Bernhard

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JSON data not directly from a JSON file’ is closed to new replies.