Skip to main content

Search in API is a script that allows you to search among multiple pages of an API endpoint.

Project description

Search in API

https://img.shields.io/pypi/v/search_in_api.svg https://img.shields.io/travis/archatas/search_in_api.svg Updates Documentation Status

Search in API is a tool helping to debug import scripts or export APIs. It allows you to search for a specific tag and value among multiple pages of an XML API endpoint or key and value among multiple pages of a JSON API endpoint.

Use Case Example

Let’s say, you have an XML API that provides a playlist of songs. It’s a looooong paginated list and there is no search implemented. You have an urge to find that particular song with a title having a word “Journey” and to check who is playing it. If the songs are listed chronologically by the date added, you would need to search from page to page until you finally get it. This tool does exactly that for you. There you can enter the URL of the first page of XML API or JSON API, enter the tag or key “title”, and the value “Journey”, and a few moments later it will show you the page URLs of the API that contain songs with the word “Journey” in it.

XML and JSON API Endpoints

The XML API endpoint should necessarily have /meta/next/ node defining the URL of the next page as in this XML example.

Similarly the JSON API endpoint should necessarily have the ['meta']['next'] key defining the URL of the next page as in this JSON example.

Features

  • Search for pages with specific occurrences of tag/key and value in multi-page XML or JSON API endpoint.

  • Command-line and graphical user interface.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

1.0.0 (2020-02-05)

  • Python 2 support dropped.

0.7.0 (2019-01-24)

  • Supports both, XML and JSON, API endpoints.

0.1.0 (2018-03-09)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

search_in_api-1.0.1.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

search_in_api-1.0.1-py2.py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page