Coder Social home page Coder Social logo

amamenko / owen-wilson-wow-api Goto Github PK

View Code? Open in Web Editor NEW
223.0 4.0 16.0 1.07 MB

JSON API for actor Owen Wilson's 'wow' exclamations in movies

Home Page: https://owen-wilson-wow-api.onrender.com

License: MIT License

JavaScript 95.24% HTML 2.04% CSS 2.70% Procfile 0.01%
owen wilson wow api

owen-wilson-wow-api's Introduction

MIT License LinkedIn


The Owen Wilson Wow API

A free JSON API for actor Owen Wilson's
'wow' exclamations in movies

API Link: https://owen-wilson-wow-api.onrender.com

API Documentation: https://wow.readme.io

Usage

Random "Wow"

Retrieve a random "wow" in JSON format - https://owen-wilson-wow-api.onrender.com/wows/random

Example Response:

[
  {
    "movie": "Marley & Me",
    "year": 2008,
    "release_date": "2008-12-25",
    "director": "David Frankel",
    "character": "John Grogan",
    "movie_duration": "01:55:32",
    "timestamp": "00:08:04",
    "full_line": "Wow. They really gave you a lot of space.",
    "current_wow_in_movie": 1,
    "total_wows_in_movie": 3,
    "poster": "https://images.ctfassets.net/bs8ntwkklfua/1k95TZRiTlZtAOpLjysOnF/69881667de3e849853ee1d4a9d3ab92e/Marley___Me_Poster.jpg",
    "video": {
      "1080p": "https://videos.ctfassets.net/bs8ntwkklfua/4nhhv7zq9vz1FpCchP4hOY/affe02a7b8d1b597c7ca60b45adaacc5/Marley___Me_Wow_1_1080p.mp4",
      "720p": "https://videos.ctfassets.net/bs8ntwkklfua/2ggG9a2f5bHhOCMTObD9kF/d7ffc47c4d3f148a24d0fd2c1a312c87/Marley___Me_Wow_1_720p.mp4",
      "480p": "https://videos.ctfassets.net/bs8ntwkklfua/1mX1xE5VgDpkQeTueSuZzX/41850f8b5b38aa76c3131c026fca387a/Marley___Me_Wow_1_480p.mp4",
      "360p": "https://videos.ctfassets.net/bs8ntwkklfua/2b6IvSW4MdXrBPheGa8faO/e9f893766d75c311c96d85ffbcd04faf/Marley___Me_Wow_1_360p.mp4"
    },
    "audio": "https://assets.ctfassets.net/bs8ntwkklfua/5UNHWK6YJrKFAXboH8rqGe/b071fc733b9647ada4a8cad7550a2e1b/Marley___Me_Wow_1.mp3"
  }
]

Multiple Results

Retrieve a specific number of random "wow" results - https://owen-wilson-wow-api.onrender.com/wows/random?results=5

Example Response:

[
  {
    "movie": "Cars 3",
    "year": 2017,
    "release_date": "2017-05-23",
    "director": "Brian Fee",
    "character": "Lighting McQueen",
    "movie_duration": "01:42:25",
    "timestamp": "00:26:11",
    "full_line": "Wow.",
    "current_wow_in_movie": 4,
    "total_wows_in_movie": 10,
    "poster": "https://images.ctfassets.net/bs8ntwkklfua/43fOBsgY8iOJL0dijvFnfl/ea361efc5131a859c173ab5dd3fdfe1e/Cars_3_Poster.jpg",
    "video": {
      "1080p": "https://videos.ctfassets.net/bs8ntwkklfua/7G6jLS5xfYBOepUxkW7R3c/c78d22f63ba51f371a1550834888b9ca/Cars_3_Wow_4_1080p.mp4",
      "720p": "https://videos.ctfassets.net/bs8ntwkklfua/lIhPcmNS5L4DnpY41EpUA/96b0c5b44acf3fe16e68d1e67156d41c/Cars_3_Wow_4_720p.mp4",
      "480p": "https://videos.ctfassets.net/bs8ntwkklfua/1h3am3BfJYUm0VXV4uKF9P/e75775ec0621889efd40ce1bc372735a/Cars_3_Wow_4_480p.mp4",
      "360p": "https://videos.ctfassets.net/bs8ntwkklfua/6eO8c3ojQA4rWMlE1hMMOa/c3a9ce4c01b2d342b33144c9f90b9e3e/Cars_3_Wow_4_360p.mp4"
    },
    "audio": "https://assets.ctfassets.net/bs8ntwkklfua/6aJuGg3bTjqd20j59vP1Wv/6cb60311194d3a9aa040882911a5f516/Cars_3_Wow_4.mp3"
  },
  {
    "movie": "The Big Year",
    "year": 2011,
    "release_date": "2011-10-14",
    "director": "David Frankel",
    "character": "Kenny Bostick",
    "movie_duration": "01:43:09",
    "timestamp": "00:44:48",
    "full_line": "Wow!",
    "current_wow_in_movie": 1,
    "total_wows_in_movie": 3,
    "poster": "https://images.ctfassets.net/bs8ntwkklfua/pCjGOhbTCQVjLRN9zTwIi/ce7cdf4b40f3549326d881697aa468a1/The_Big_Year_Poster.jpg",
    "video": {
      "1080p": "https://videos.ctfassets.net/bs8ntwkklfua/2IZMW5Aeytz5rtu5MzcFk8/f675c3f6ef153c5df0c81679c80677d4/The_Big_Year_Wow_1_1080p.mp4",
      "720p": "https://videos.ctfassets.net/bs8ntwkklfua/2K0XjRiHYd8zbdYcmiTMH4/b2e4a9b02db184a4d4bd71fe15ab37a9/The_Big_Year_Wow_1_720p.mp4",
      "480p": "https://videos.ctfassets.net/bs8ntwkklfua/6QMkzBk6HrfuVxVT97mQg/5877904b163d7ccdc4baa92d449858d8/The_Big_Year_Wow_1_480p.mp4",
      "360p": "https://videos.ctfassets.net/bs8ntwkklfua/5SFeCoTmyTUEJYtK0kOO92/462afffbd6315182db59271f99a5a829/The_Big_Year_Wow_1_360p.mp4"
    },
    "audio": "https://assets.ctfassets.net/bs8ntwkklfua/45tt9xH4Uf3Rgt0EJtykZZ/b5cef0c5d09d368359f4a9c0e66a6663/The_Big_Year_Wow_1.mp3"
  }
]

Specify year

Retrieve a random "wow" from a specific year - https://owen-wilson-wow-api.onrender.com/wows/random?year=2011

Specify movie

Retrieve a random "wow" by the name of the movie it appears in - https://owen-wilson-wow-api.onrender.com/wows/random?movie=zoolander

Specify director

Retrieve a random "wow" from a movie with a particular director - https://owen-wilson-wow-api.onrender.com/wows/random?director=wes%20anderson

Specify movie occurrence number

Retrieve a random "wow" by the number of its occurrence in a movie - https://owen-wilson-wow-api.onrender.com/wows/random?wow_in_movie=2

Sort multiple results

Sort multiple random results by either movie, release_date, year, director, or number_current_wow. Sort direction can be either asc (ascending) or desc (descending) - https://owen-wilson-wow-api.onrender.com/wows/random?results=10&year=2017&sort=movie&direction=desc

Ordered "Wow"

Retrieve a specific "wow" by its index in the chronological order of all results - https://owen-wilson-wow-api.onrender.com/wows/ordered/0

Multiple Ordered "Wow" Results

Retrieve all "wow" results between a first index and a second index, inclusive, in the chronological order of all results - https://owen-wilson-wow-api.onrender.com/wows/ordered/3-7

All Movies

Retrieve all names of movies in which Owen Wilson says "wow" - https://owen-wilson-wow-api.onrender.com/wows/movies

All Directors

Retrieve all directors of movies in which Owen Wilson says "wow" - https://owen-wilson-wow-api.onrender.com/wows/directors

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Owen Wilson Wow API - [email protected]

Avraham (Avi) Mamenko - [email protected]

API Link: https://owen-wilson-wow-api.onrender.com/

API Documentation: https://wow.readme.io

Disclaimer

The Owen Wilson Wow API is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Owen Wilson, or any of his subsidiaries or affiliates. All motion pictures, products, and brands mentioned on this website are the respective trademarks and copyrights of their owners.

Acknowledgements

Media Attention

owen-wilson-wow-api's People

Contributors

amamenko avatar calebwilson706 avatar fahimfba avatar kanadgupta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

owen-wilson-wow-api's Issues

[FEATURE] Get all wows for a specific movie

Describe the solution you'd like
I'd like to be able to get a list of all of the wows in a specified movie ie. wows/all?movie=cars

I'm not specifically set on the url path but would love to see this implemented. Im happy to give it a go if you accept PRs

Missing the issue templates

The project is currently missing the issue templates which help the audiences to interact with the project having some specific issues. If you would want to add them, then I would like to add a PR with some relevant issue templates.

Please let me know what you think about this.

Open API 3 spec?

Such a fun API. Great work!
I would love an Open API 3 specification yaml so I can really easily import this into Postman! I can already think of some great applications of this API for demoing Postman and Swagger actually.

Cross-Origin Request Blocked: Unable to fetch from server in project.

I wanted to have a little play around and perhaps build a funny front end (React + TS), and just doing some preliminary api checks.
And am receiving this error.

If i'm not mistaken i believe on the backend side you need to enable access-control-allow-origin: * to allow users to fetch results in their own apps.

Error below:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://owen-wilson-wow-api.herokuapp.com/wows/movies. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://owen-wilson-wow-api.herokuapp.com’).

Please correct me if i'm wrong.

This is the code i'm running.

const getWow = (): Promise<Response> => {
  return fetch('https://owen-wilson-wow-api.herokuapp.com/wows/movies')
}

const fetchWow = () => {
  getWow().then((w) => {
    console.log(w.json)
  })}

Attached to a button onclick.

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.