0

Is it possible to use the pinterest api (v5) to search across the site for pins or boards matching a keyword?

I tried doing this (but it only gives me my own pins):

   // Search for pins with the keyword
    const searchUrl = `https://api.pinterest.com/v5/search/pins?query=${encodeURIComponent(search)}&topic_based=true`;
    const res = await fetch(searchUrl, {
      headers: {
        'Authorization': `Bearer ${key}`,
      },
    });

    const pins = (await res.json()).items;
chovy
  • 72,281
  • 52
  • 227
  • 295

0 Answers0