Vimeo player restful api documentation - vimeo

I am looking at a dart library that hits a specific vimeo url...
https://player.vimeo.com/video/{videoId}/config
Hitting this url returns a json file with a lot of fields. I am trying to find any docs that give a description of all of these fields. I have been unable to do so at this point.
When I got to the Vimeo API reference, it refers to language specific apis like the python api or the javascript api, not the restful api (or at least the portion I am looking for).
Does anyone know how to find docs that refer to the json returned from the previously listed URL?

I think you want to go to the API reference docs:
https://developer.vimeo.com/api/reference/videos#search_videos
On that page you can scroll down and review the Response (there are three areas to click: Details, Example and Reference). You want reference.

Related

google places JS API localized place type

I am currently working on a project using the google maps JS API. i would like to display the place type in a similar fashion to how a google search would result (example below).
Using the getDetails method in PlacesService (as show here), i can receive an array of types for a place, yet they are not descriptive as what a google search shows, and are not localized. is it possible to achieve using the API?
Currently, the API doesn't provide this information.
There are a couple of feature requests in the Google issue tracker that might match your requirement:
https://issuetracker.google.com/issues/35822953
https://issuetracker.google.com/issues/35827225
You can star these feature requests to add your vote and subscribe to further notifications.

Proper formatting for NASA API request URL

EDIT: NASA data can be accessed via the SODA API (see https://data.nasa.gov/developer), and the API referred to below seems to be deprecated.
I'm trying to use the NASA API (http://nasa.github.io/api-docs/#introduction) to pull information on NASA patents. The docs show what the JSON reponse should look like and list required parameters for the request, but I can't find any examples of a properly formed request URL. So far I have tried (with my API key):
https://api.nasa.gov/patents/optics?api_key=API_KEY
https://api.nasa.gov/patents/optics.json?api_key=API_KEY
I tested the API key out on an example GET request URL for a different data.gov agency and it returned a valid JSON response, but I've had no luck with the NASA requests.
Does anyone know the proper request format for NASA info from the data.gov API?
I think that there may be a be a better api to use that is actually on NASA's site here: https://data.nasa.gov/developer.
If you scroll down to "NASA Patents" you can see some documentation on how to use the api and a few sample requests to get you started, including how to filter on specific fields.
Reading the API documentation, it would seem that the category name (like optics in your example), should be passed a query parameter, not as part of URI as you are showing. I also don't see noted where they say they support https (of course I just skimmed the API). Try,
http://api.nasa.gov/patents?category=optics&api_key=API_KEY

Get the youtube playlist detail using the v3 API

http://gdata.youtube.com/feeds/api/playlists/PLAYLIST_ID
This will get the list data of a youtube channel , for example
http://gdata.youtube.com/feeds/api/playlists/UUY8zZ2vTM_ipmlSwy7CPFpw?v=3&alt=json
This, will get the data in JSON format. however, since the API has switched to V3 I wonder are there a URL that does the same thing?
Tried something like
https://www.googleapis.com/youtube/v3/playlists?part=snippet
&channelId=UUY8zZ2vTM_ipmlSwy7CPFpw
but no luck. Thanks for helping.
There is a difference between Channel & Playlist.
Check out this page for more information. https://code.google.com/apis/console/
There you need to go to "YouTube Data API v3 > youtube.channels.list" which will allow you to test the action you want to perform.

How to use the Washington, DC Metro API

I've been researching how I can take the transit info API that The Washington DC Metro Rail offers, and display it as HTML.
The documentation is on their website, but It does not include many examples. The only instructions I've found is to use one of three URLs.
I have figured out how to see the information using the below code. The problem is that the URLs below are generating all data as text only in my browser. I cannot figure out how to display selected data as HTML.
from their site:
Each method has 2 endpoints: REST and JSON.
URL (REST) example:
api.wmata.com/StationPrediction.svc/GetPrediction/A10?api_key=YOUR_API_KEY
URL (JSON) example:
api.wmata.com/StationPrediction.svc/json/GetPrediction/A10?api_key=YOUR_API_KEY
Additionally, developers can use JSONP if desired by adding a
"callback" parameter to the JSON call:
http://[url to JSON service]?api_key=[your_key]&callback=[name of
callback]
When using JSONP make sure that [name of callback] in the URL
displayed above is the name of a Javascript function needed to process
the JSON data.
Can anyone point me in the right direction for a tutorial or best way to get started?
Thanks!
You should try the WMATA interactive documentation.
http://developer.wmata.com/io-docs
If you've already registered for a key, just sign in, and your API key will be automatically populated into the interactive docs. The I/O Docs interface should help you easily navigate the resources/methods. If you have any other questions, feel free to ask here, and I can help you out.
I'm a platforms evangelist for Mashery, the company that helps WMATA/DC Metro manage their APIs.

When using the Google Places API, what is the difference between "using the JavaScript library" and "calling the API directly"?

I have seen the two forms of reference to the Google Places Library/Service, using JavaScript vs calling the API directly, a number of times, but I don't understand the difference. The Google Docs don't describe anything about two methods of accessing the API.
For example, this question talks about 2 ways of accessing the API: OVER_QUERY_LIMIT in a loop
And it appears that there is some type of direct web access taking place in this question: Querying Google Places API using jQuery
Is this something where there was an old way that involved formatting URL parameters and the new way is by utilizing the JavaScript library calls?
FINAL SUMMARY EDIT: There are two distinct ways of requesting data from Google, as described in #Dan Nissenbaum's answer below. And since my original question, the QUERY_LIMIT question referenced above has been edited to also include more information about the two options.
Perhaps you are referring to the distinction between the Google Places API that is intended for use on the SERVER (i.e., utilizing PHP to call the Google Places API directly), and using the completely different approach of the Google Places Javascript Library in which the BROWSER executes Javascript using the Javascript library provided by Google (that internally wraps calls to the Google Places API, so that you, as a Javascript programmer, only need to understand the Javascript library provided by Google, and use that)?
Here are the two scenarios.
Scenario #1: Use the API directly. For this method, you must refer to Google's API documentation for the Google Places API: https://developers.google.com/maps/documentation/places/.
Using this API works as follows (giving a simple example only). Say you want to retrieve places within 1000 meters of latitude=-27.2531166, longitude=138.8655664. You need to hit a URL as described by the API documentation: https://developers.google.com/maps/documentation/places/#PlaceSearchRequests.
In this example, the URL looks like this (it's long):
https://maps.googleapis.com/maps/api/place/search/json?location=-27.2531166,138.8655664&radius=1000&sensor=false&key=AddYourOwnKeyHere
You need a key for your personal use, which I assume you have. There are other options you can specify, such as limiting the results to restaurants, etc.
When you hit this URL, the data will be returned in either JSON, or XML format, as specified by the text json in the URL above (use the text xml for xml). This data is returned exactly like data is returned from any URL call when you hit a URL in your browser.
You can test this by simply typing the URL directly in your browser, and see the results.
To use the API directly from code, you will need to use code that hits the external URL above within code and retrieves the results within code (for example, using the PHP CURL library, or using AJAX in Javascript).
Scenario #2: You use the Javascript library that Google provides that wraps the API, so you don't need to deal with it. I'll update the answer with more details about this, if you don't know what this is.
The docs do discuss the two different approaches. The Places Library utilizes the Google Places services from within the JavaScript Google Maps API. If you are using the Google Maps API in a browser, this is probably the approach for you:
https://developers.google.com/maps/documentation/javascript/places
There is also a web service, which allows you to query directly from your application. You query it using direct http calls to Google services. If you need access to the data on your server or a mobile device, this is the approach you want to take:
https://developers.google.com/maps/documentation/places