-
Hello TED Dev community, I am working on transforming our old TED xml data into the new eForm format. Therefore, my aim is to use one of the APIs, but I have some issues figuring out how. my current script looks like this:
it uses three API endpoints: But I can't get any of them to work. Note: I saw the xml_converter, but it is not a usable solution for my project unfortunately. I hope you are well and thank you in advance for your help and ideas. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Dear Flo, In your request, the Host parameter is not set correctly. To use the API, you need to have a valid API key for the given environment (Prod or Preview) and also Enotices2 account - please have a look at https://docs.ted.europa.eu/api/index.html#_api_keys Have a nice day, |
Beta Was this translation helpful? Give feedback.
Dear Flo,
In your request, the Host parameter is not set correctly.
The correct value is enotices2.ted.europa.eu or enotices2.preview.ted.europa.eu depending on the chosen environment.
To use the API, you need to have a valid API key for the given environment (Prod or Preview) and also Enotices2 account - please have a look at https://docs.ted.europa.eu/api/index.html#_api_keys
In your request you need to include header parameter
"Authorization": "Bearer value-of-your-api-key"
Have a nice day,
Stefan