import requests
import json
url = 'https://ted.europa.eu/api/v3.0/notices/search'
api_key = TED_API_KEY
query_ = 'notice-type=[cn-standard or pin-cfc-social]'
headers = {
'Authorization': f'Bearer {TED_API_KEY}',
'fields': "['ND', 'PD', 'CONTENT']",
"query": "blah blah"
}
response = requests.get(url, headers=headers)
I receive a valid JSON with a 1000 results with this query. I have a query setup in Expert search and I used the same search query in my code but got the same results.
Discussed in #551
Originally posted by udaykeith June 28, 2023
Hi, I am trying to search for tenders which fulfill certain criteria via /api/v3.0/notices/search. However, I am not sure how to structure the value for the "query" argument. It seems that no matter what I pass as the value for "query" I receive the same response.
This is currently the code I am using:
I receive a valid JSON with a 1000 results with this query. I have a query setup in Expert search and I used the same search query in my code but got the same results.