Skip to content
This repository was archived by the owner on Apr 1, 2019. It is now read-only.

mozilla/embedly-proxy

Repository files navigation

Embedly Proxy

A simple python/flask app which proxies requests to the embed.ly service and masks the application API key.

Build

Circle CI

API Interface

Extract V1

This V1 API is no longer supported.

Fetch Metadata V2

Fetch metadata for a provided list of URLs from remote metadata services.

None

  • Data Params

  • Request Headers

    The POST body must be a JSON encoded dictionary.

    content-type: application/json

  • Success Response:

    • Code: 200

    JSON encoding

    {
      urls: {
        "<url1>": <embedly metadata>,
        "<urln>": <embedly metadata>,
      },
      error: ""
    }
    
    ex success:
    
    {
      urls: {
        "https://www.mozilla.org": {
          <embedly metadata>
      },
      error: ""
    }
    
    ex failure:
    
    {
      urls: {},
      error: "The Content-Type header must be set to application/json"
    }
    
  • Error Responses:

    • Code: 400

    The server received a malformed request.

    • Code: 500

    The server was unable to satisfy the request.

  • Sample Call:

      curl -X POST -d '{"urls":["https://www.mozilla.org"]}' -H 'content-type:application/json' https://embedly-proxy.services.mozilla.com/v2/metadata
    

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages