Filters documentation not in sync with your live API

Hi,

I’m trying to get my documentation in sync with the API described at https://api.crossref.org/ - it points readers to REST API filters - Crossref - which unfortunately lists some filters that DO NOT WORK with the actual API.

For example:

https://api.crossref.org/v1/works?filter=has-description:true (has-description is listed as a works filter, but gives a 400 filter not available error)

There’s probably other issues.

What I’m asking is could the documentation be in sync with the API somehow? Otherwise, I guess I can check every filter against the live API and see which give errors and which do not.

thx, Scott

Hi Scott,

Thanks for reporting, this is an error in the documentation. We’ll remove has-description from the website. The other documented filters should work. You can also see a list of valid filters in the error response when you use an invalid filter.

1 Like

Thanks. However, there’s more discrepancies. The following are all not in your docs, but are listed in the error response from the API. Could they be fully removed, or docs for them added to the documentation page?

  • directory
  • category-name
  • gte-citation
  • lte-citaiton
1 Like

Hi Scott. Thanks again, it looks like we need to do some tidying up. gte-citation and lte-citation seem to work but don’t do what you’d expect. We’ll take a look.

2 Likes

Thanks! Let me know if there’s a ticket I can follow for progress.