Questions tagged [api]

API stands for Application Programming Interface. A program's API defines the proper way for a developer to request services from that program.

An application programming interface (API) is a source code based specification intended to be used as an interface by software components to communicate with each other. An API may include specifications for routines, data structures, object classes, and variables.

An API specification can take many forms, including an International Standard such as POSIX or vendor documentation such as the Microsoft Windows API, or the libraries of a programming language, e.g. Standard Template Library in C++ or Java API.

An API differs from an ABI (Application Binary Interface) in that the former is source code based while the latter is a binary interface. For instance POSIX is an API, while the Linux Standard Base is an ABI.

137 questions
47
votes
7 answers

How (il)legal is it to get data from a 100% accessible but not "exposed" API

I found a website that provides a huge filterable table with up-to-date data about cities in a country. This site uses an infinite scrolling approach to load the rows for the table. By exploring the site using Chrome's Developer Tools, I found it…
MikO
  • 581
  • 1
  • 4
  • 7
21
votes
6 answers

What’s the Difference Between a webhook and an API?

Programmers who make a request to an API will then receive a response. For example, using Web API to send an email, you’d pass the email contents with the request. If all goes well, you will receive a response declaring success. To use a webhook,…
Josip Ivic
  • 3,888
  • 2
  • 24
  • 51
20
votes
4 answers

What is the correct HTTP status code for: "This version of this API has been discontinued"?

I have a RESTful API. There are 3 versions of it: v1, v2, and v3. I am about to publish v4, and we have decided to discontinue v1, meaning that all requests to http://example.com/v1/resource will fail, but calls to http://example.com/v2/resource…
Brandon Yarbrough
  • 301
  • 1
  • 2
  • 5
12
votes
7 answers

What is an API key?

When we login to a service via a user account, we are normally required to provide an email and password (and on some occasions a username as well). But, when one website's API authenticates to another website's API (automatically), a personal email…
almeroz
  • 121
  • 1
  • 4
7
votes
1 answer

The Node Express server is returning "304 Not Modified" responses, but only after querying the database

I'm just diving into web developent, my current passion is Express (Node.js). I've noticed then i often recieve HTTP/1.1 304 Not Modified either for static content and (!) for my json API requests (when data is still the same, so this is actually…
7
votes
1 answer

Preserve Facebook comments when the site changes domain name

I'm going to be changing the domain name of one of my sites. I'll use 301 redirects. One thing that I can't figure out is how to preserve all the comments that users have made on the page through Facebook. We use the Facebook developer comment…
Stephen Ostermiller
  • 99,822
  • 18
  • 143
  • 364
5
votes
5 answers

JavaScript to stream video files

Is there a JavaScript API for streaming WMV/AVI/MOV files?
user1561
5
votes
1 answer

creating unlimited sub domains programmatically through api

Note Consider each subdomain as unique application instance For information about application architecture visit https://stackoverflow.com/questions/11272776/using-phusion-passenger-nginx-running-same-rails-app-with-multiple-instance I am having…
Sam
  • 195
  • 2
  • 8
5
votes
1 answer

How To Get Alexa Sites Linking Using PHP

I am planning to get the Alexa sites linking of a given website. I am looking to do this in PHP. Please suggest me is Alexa providing any API. Is there any tool? Is it free? Is there any API that I can use?
vvr02
  • 151
  • 1
5
votes
1 answer

Amazon Affiliate search using a movie title

I am currently working on a movie trailer site. I have over 300 movies and I do not want to add an amazon affiliate link to each one individually. Does amazon offer any sort of api that will allow me to use a movie title to search for a dvd on…
Matt Walker
  • 135
  • 6
5
votes
2 answers

Domain registration partnership + availability check

I would like to create a simple module for my website that prints keywords and tells the user if the keyword is available to register as domain. Is there any domain name registrar who gives any kind of api to do this? I would like to show something…
biphobe
  • 151
  • 3
5
votes
1 answer

What is the best currency API out there?

I may be asking an odd question, but webmasters seem like a decent place to post this. I'm in the search for an accurate, easy API (such as using JSON or XML) so I can use my web application. I've been trying Google's secret API, but it's dependency…
MacMac
  • 247
  • 4
  • 10
5
votes
0 answers

Which domain registrar offers the most complete API?

I am looking for a domain registrar that offers an API that would allow changes like name servers to be made programmatically. GoDaddy do not seem to offer this, so I figured this might be a good forum to find out who does.
jnthnclrk
  • 93
  • 8
4
votes
1 answer

Creating a "presentable"/filtered twitter profile widget

I would like to include a subset of tweets I make on my professional web development site. Now, twitter provides two applicable widgets: a profile widget and a search widget Unfortunately, the profile widget shows everything I tweet (including…
Kzqai
  • 1,332
  • 2
  • 9
  • 22
4
votes
1 answer

Is there a free file hosting service with an exposed API for accessing content (or hotlinking for GETs)?

For a small business site we are looking at possibly free file hosting solutions such that a file can be uploaded by the user and our backend (Java) web service is able to update/modify the data at the file hosting service. Fetching the data could…
PhD
  • 143
  • 1
  • 4
1
2 3
9 10