---
title: "💭 Search | Stripe Documentation"
description: "!https://stripe.com/docs/search#search-query-language"
date: 2023-12-06
published: true
tags:
  - webdev
  - stripe
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://stripe.com/docs/search#search-query-language" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://d37ugbyn3rpeym.cloudfront.net/docs/og-image/search.ogimage.png" alt="Search — Use the search APIs to look up and retrieve objects in your Stripe data. Using search is a faster alternative to paginating through all resources." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Search</div>
      <div class="embed-card-description">Use the search APIs to look up and retrieve objects in your Stripe data. Using search is a faster alternative to paginating through all resources.</div>
      <div class="embed-card-meta">stripe.com</div>
    </div>
  </a>
</div>


Stripe has it's own query language for querying data.  I'm just getting into using it and it seems pretty good so far.  I needed to lookup the price for products.  I was able to find prices for my product using the python api as shown below.

``` python
stripe.Price.search(query="active: 'true' and product: 'prod_P8SfwtxJ45cWE2'")
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
