Skip to the content.

Introduction to HTTP Requests and APIs

What is an HTTP Request?

Example Request:

POST /v2/articles/search?offset=10&limit=1 HTTP/1.1
Host: api.figshare.com
Content-Type: application/json
Authorization: Bearer b2be49036a3158c5edd5a0553ae9

{"search_for": ":tags: test"}

What is an API?

It’s an interface which allows other applications to use the functionality of a software system. You send in an HTTP request and receive a response.

REST

JSON

JSON is a format that provides information in a structured way.

Learn more about Figshare’s metadata schema

HTTP status codes

HTTP requests generate status codes. These are a standard (and the easiest) way to understand what happened with your requests Some common status codes:

HTTP request Body

The body is the actual data sent to the server

HTTPS