yelpapi
LICENSE
This software is licensed under the BSD 3-Clause License. Please refer to the separate LICENSE file for the exact text of the license. You are obligated to give attribution if you use this code.
ABOUT
yelpapi is a pure Python implementation of the Yelp Fusion API. It is simple, fast, and robust to any changes Yelp may make to the API in the future.
REQUIREMENTS
This code requires Python 3.9 or higher and requests.
INSTALL
yelpapi is available on PyPI at https://pypi.org/project/yelpapi/.
Install using pip:
pip install yelpapi
USING THIS CODE
This API is demonstrated more thoroughly in examples.py, but the following chunk of code demonstrates basic use of yelpapi:
from yelpapi import YelpAPI
with YelpAPI(api_key) as yelp_api:
search_results = yelp_api.search_query(args)
You can also set timeouts so API calls do not block indefinitely in degraded network conditions:
from yelpapi import YelpAPI
with YelpAPI(api_key, timeout_s=3.0) as yelp_api:
search_results = yelp_api.search_query(args)
Under the covers, this module uses a requests.Session object for issuing all API calls, which offers potentially significant performance benefits over issuing separate API calls outside of a session. You should be sure to close the underlying session when all API interactions are complete. The above examples demonstrate using the class as a context manager, which will automatically close the connection when you're done and is the preferred way of using the class, but you can also manually close it like this if a context manager won't work for your use case:
from yelpapi import YelpAPI
try:
yelp_api = YelpAPI(api_key)
search_results = yelp_api.search_query(args)
finally:
yelp_api.close()
METHODS
- Autocomplete API -
autocomplete_query(...) - Business API -
business_query(...) - Business Engagement Metrics API -
business_engagement_query(...) - Business Match API -
business_match_query(...) - Business Service Offerings API -
business_service_offerings_query(...) - Categories API -
categories_query(...) - Category API -
category_query(...) - Event Lookup API -
event_lookup_query(...) - Event Search API -
event_search_query(...) - Featured Event API -
featured_event_query(...) - Phone Search API -
phone_search_query(...) - Review Highlights API -
review_highlights_query(...) - Reviews API -
reviews_query(...) - Search API -
search_query(...) - Transaction Search API -
transaction_search_query(...)
Release files for yelpapi 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yelpapi-2.6.0.tar.gz | 12.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yelpapi-2.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 kB
Release files / yelpapi-2.6.0.tar.gz
| Download URL | yelpapi-2.6.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
739c0a99f4a528cca167fc27c19d448cdcf9ec4b24bf2bb39aa7e2e48b3897cb
|
|
BLAKE2b-256 checksum How to use checksums |
752e99c487e35a17b5481a7dffdf95eb9d7ede2945f4a8af5bf1f05f90e57cc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logRelease files / yelpapi-2.6.0-py3-none-any.whl
| Download URL | yelpapi-2.6.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0d6b16756152f679675f9c88421895954bcfc3a3a9318635b8bef0cd5d5417c
|
|
BLAKE2b-256 checksum How to use checksums |
46540711f766c17818c34c53a60fa6b0f646d903335e218e8077ee8e8cc3c46a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency log