<Response [404]>

I am using a simple code snippet which was working fine for last 4 months. I have suddenly started getting error on this.


url = “https://api.nyse.com/api/market-events/?type=dividend

payload = {}
headers = {
‘Content-Type’: ‘application/json’,
‘x-api-key’: ‘XXXXX’

Params = {
‘published_after’: ‘2020-10-01T10:00:00.000’,
‘effective_date_before’: ‘2020-10-20T10:00:00.000’
response = requests.request(“GET”, url, headers=headers, params=Params, data = payload)
x = response.text
import json
y = json.loads(x)

Can anyone help me with this?

You’re getting a 404 with that request? Can you please share with us the response?

I was getting 200 before, when it was working fine.

Is your api key still valid?

Thats the only parameter I was not sure about. This API key was created a year before, I am not sure about the expiration time of API key. Can you provide me any link or details about how can I renew/upgrade it? That would really help.


No I cannot. Since that is an external API, that falls under your responsibility.

If you want help on how to use that API from within Postman, I’d be happy to help.