Giter Site home page Giter Site logo

snkr-findr-api's Introduction

👟SNKR FINDR🔎

A REST API created for sneakerheads. The SNKR FINDR API allows the user to obtain essential information on sneakers including:

  • Sneaker Name
  • Colorway
  • Product ID
  • Retail Price
  • Image URL
  • Release Date
  • Price map of each corresponding size

Getting Started

In order to make requests to the API, we will be using the Requests library.

  1. Begin by installing the library. Navigate to your project directory in terminal and type:
pip install requests
  1. Once the Requests library has been installed, make sure to import it in your project:
import requests
  1. You're all set to start using the SNKR FINDR API 👍

HTTP Requests

Now that you have the requests library installed, it's time to make some API requests.

Example:

import requests

#get the trending sneakers
popularSneakers = requests.get("https://snkr-findr.herokuapp.com/sneakers")

#get sneaker using product id (sneaker_id)
sneaker = requests.get("https://snkr-findr.herokuapp.com/sneakers/<sneaker_id>")

#get sneaker(s) using search
searchSneaker = requests.get("https://snkr findr.herokuapp.com/sneakers/search/<keyword>")

Sample JSON Response:

[
  {
    "displayed_size": 16,
    "image_url": "https://image.goat.com/attachments/product_template_pictures/images/043/946/217/original/567948_00.png.png",
    "lowest_price": 325,
    "name": "Air Jordan 1 Retro High OG 'Dark Mocha'",
    "query_id": "air-jordan-1-retro-high-og-555088-105",
    "retail_price": 170
  },
  {
    "displayed_size": 18,
    "image_url": "https://image.goat.com/attachments/product_template_pictures/images/023/941/742/original/482560_00.png.png",
    "lowest_price": 200,
    "name": "Air Jordan 1 Retro High OG 'Obsidian'",
    "query_id": "air-jordan-1-retro-high-og-obsidian-555088-140",
    "retail_price": 160
  },
  ....
  {
    "displayed_size": 18,
    "image_url": "https://image.goat.com/attachments/product_template_pictures/images/035/766/930/original/519961_00.png.png",
    "lowest_price": 199,
    "name": "Air Jordan 1 Retro High OG 'Royal Toe'",
    "query_id": "air-jordan-1-retro-high-og-royal-toe-555088-041",
    "retail_price": 170
  }
]

Technologies

This project was made with:

  • Python
  • Flask + Flask_Restful
  • Requests Library
  • Heroku

Data Source

Currently the API is only able to collect information from GOAT but the end goal is to obtain sneaker data from StockX, Stadium Goods, Flight Club and other Foot sites.

snkr-findr-api's People

Contributors

joseph1337 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.