Text Search through the API

Home Forums Calendar Products Events Calendar PRO Text Search through the API

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1391195
    Matthew Jasko
    Participant

    When we perform a search using the API, we get every single event on the calendar in the results, regardless of whether the search string is present in the event title or description.
    What is the correct approach to filter the events retrieved through the API with a string search?

    #1393549
    Andras
    Keymaster

    Hello Matthew,

    Thanks for reaching out!

    How are you trying to run the search? Are you using the right parameter? In WP the search URL parameter is s but in the REST API (WP and ours) is search.

    So, if I want to search https://domain.com, using TEC REST API, to look for all events that container “Foo” in the title or description I will use https://domain.com/wp-json/tribe/events/v1/events?search=foo (case insesitive).

    Can you share with me the full URL you are using to fetch results?

    Let me know and we’ll figure this one out.

    Cheers,
    Andras

    #1409829
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Text Search through the API’ is closed to new replies.