Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search keywords with a specific time frame #26

Open
toledobastos opened this issue Jun 4, 2013 · 0 comments
Open

Search keywords with a specific time frame #26

toledobastos opened this issue Jun 4, 2013 · 0 comments

Comments

@toledobastos
Copy link

I've been trying to query Zeit API with any given time frame, but no luck so far. Has anyone managed to get the content API to let you set starting and end dates? Here's some o what I tried:

http://api.zeit.de/content?q=turkei&release_date=2012-10-01T00:00:00ZTO2012-10-14T23:59:59Z&api_key=your_key # returns results from 2009 (??)

http://api.zeit.de/svc/search/v2/articlesearch.json?q=turkei&release_date=2012-10-01T00:00:00ZTO2012-10-14T23:59:59Z&api_key=your_key # returns "The requested resource can not be found."

http://api.zeit.de/content?q=turkei&release_date:[2012-10-01T00:00:00Z%20TO%202012-10-14T23:59:59.999Z]&api_key=your_key # same as above

I also tried with &facet_date and the formats described in the documentation (i.e. "Kennedy" AND release_date:[1960-01-01T00:00:00Z TO 1969-12-31T23:59:59.999Z]). None of these work for me, as release_date won't return the requested dates.

In fact I haven't managed to use any string that returns the correct date.

Anything I might be missing with the request?

Cheers,
Marco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant