search-in-api

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


Keywords
search_in_api
License
MIT
Install
pip install search-in-api==1.0.1

Documentation

Search in API

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.