If you can use the unofficial API, with py3-pinterest you can do it like this in Python
results = [] search_batch = pinterest.search(scope='boards', query='food') while len(search_batch) > 0: results += search_batch # do whatever with results
full code example
source share