Support

Home Forums Event Espresso Premium Querying JSON API for event desc always returns zero events!

Querying JSON API for event desc always returns zero events!

Posted: May 4, 2014 at 5:10 pm

Viewing 2 reply threads


dm37ee

May 4, 2014 at 5:10 pm

If I search for the keyword “test” in the name of my events, it finds them all (name__like=%25test%25 but if I search for that in the description, it always returns 0 events (even though the descriptions all have the word “test”):

Both of these give 0 results:
event_desc__like=%25test%25
desc__like=%25test%25


dm37ee

May 4, 2014 at 5:13 pm

🙁 Again, the documentation is incorrect. PLEASE update the documentation for the API.

The correct query param name: description.

description__like=%25test%25


Tony

  • Support Staff

May 5, 2014 at 4:00 pm

Hi dm37ee,

I’m sorry for the confusion caused by the documentation. This looks like this came from the same code mentioned here https://eventespresso.com/topic/api-error-query-parameter-event_name-not-a-valid-parameter-of-resource-event/

The example code has been updated to show the correct querystring variables.

The querystring variables for each endpoint are listed further down the documentation page.

Viewing 2 reply threads

The support post ‘Querying JSON API for event desc always returns zero events!’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso